Hi, I have a Python Generator that uses fields with SampleListSimple() function. It should change the position of generated geometry based on provided field sample values. Fields are connected to Pyhton Generator with User Data -> Field List. It works good, I can tweak field values and Pyhon Generator updates accordingly, but if I try to turn off / turn on / add / remove field from field list, Generator is not updated accordingly to that event (however if I turn off field itself, not in user data but in objects tree, generator updates well).
So far I managed to get that event:
def message(id, data):
if(id==c4d.MSG_DESCRIPTION_POSTSETPARAMETER):
flId = eval(str(data['descid']))[1][0]
if flId == 1:
myFieldList = op[c4d.ID_USERDATA, 1] #trying update global FieldList value, no sucess
I've tried to push "force update" button on this event, but got error that says button execution should be only from main thread. So the question -- how to properly refresh Python Generator when parameters of fields in FieldList User Data (such as turn on/off, name, blending, opacity) are changed?