On 21/01/2015 at 06:40, xxxxxxxx wrote:
Hi there, this code of Sebastian's :
def message(id,data) :
if id == c4d.MSG_DESCRIPTION_CHECKUPDATE:
# check if button
if data["descid"].dtype == c4d.DTYPE_BUTTON:
# get id
buttonID = data["descid"].id
works great to catch button presses of user data on the python tag itself.
But I can't work out how to catch button presses on user data of the object to which the tag is attached.
My purpose : I have a head controller with a load of sliders for face shapes. I have created 2 user data buttons on the controller : to either key all sliders or zero all sliders. I can deal with all the other code (in fact I have it already) but I can't work out how to catch the button presses.