THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 12/04/2011 at 10:07, xxxxxxxx wrote:
Hello,
the python documentation states for DrawViews(...) :
"Redraws the editor views. Must be called from the main thread!"
So, how do I control which thread is calling my Python Node (or how to know which thread is calling)?
When I try to call the "add" button within the Mograph-Multishader by python:
multishader = material[c4d.MATERIAL_COLOR_SHADER];
c4d.CallButton(multishader, 1002) #MGMULTISHADER_ADD = 1002,
I get the error:
RuntimeError: Illegal operation. Invalid cross-thread call.
This happens from a Python Node within XPresso.
How can I prevent/control that ?
Thank you,
maxx