Skip to content

Instantly share code, notes, and snippets.

@hanswillem
Last active September 27, 2016 14:21
Show Gist options
  • Save hanswillem/caeb0a6dc89d9e7ec48d to your computer and use it in GitHub Desktop.
Save hanswillem/caeb0a6dc89d9e7ec48d to your computer and use it in GitHub Desktop.
Code to make use of the user data button
#put the code in a python tag
#add a user data button to the tag
import c4d
#user data button
def message(id, data):
if id == 17:
print "UserData-ID: ", data["descid"][1].id
def main():
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment