On 11/05/2018 at 22:15, xxxxxxxx wrote:
I have been using the following function to handle user data button presses:
def message(id, data) :
if id == c4d.MSG_DESCRIPTION_COMMAND:
messageDataId = data["id"][0].id
if messageDataId == c4d.ID_USERDATA:
userDataId = data["id"][1].id
if userDataId == 1:
print "button 1 pressed"
elif userDataId == 2:
print "button 2 pressed"
Is there a way to get the button's name or short name from the message data or id?