On 15/08/2015 at 04:47, xxxxxxxx wrote:
hi guys
i want to run some code upon the pressing of a button in user data, but i can't figure out how..
i've already read this discussion:
https://plugincafe.maxon.net/topic/8170/10644_how-to-use-the-new-userdata-button
but i don't fully understand it
for example, i think that this code (from the discussion above) is meant to be used in an interaction tag:
def message(id, data) :
if id == 18: # Don't know why 18 yet :(
for i in data['msg']: #seems to be the consistently changing thing
print i[c4d.DESC_NAME] #the number stays [c](https://www.google.com/search?client=safari&rls=en&q=consistent&ie=UTF-8&oe=UTF-8)onsistent aligning with different button presses
but if i blindly put this in the interaction tag nothing happens in the console upon the pressing of a user data button
i'm obviously missing something, i don't even understand what's a placeholder in that code an what is not
can somebody help?