On 10/10/2016 at 11:15, xxxxxxxx wrote:
Hello there,
The "CallCommand" work correctly in code 01 but in the code 02 doesn't work.
is it posssible to Call Command by clicking on the button Add Hair? (see screenshot below)
Code 01 :
import c4d
def main() :
c4d.CallCommand(1018401)
Code 02 :
import c4d
def main() :
obj = op.GetObject()
AddHair = obj[c4d.ID_USERDATA,120]
if AddHair == 1 :
c4d.CallCommand(1018401)
c4d.EventAdd()
obj[c4d.ID_USERDATA,120] = 0 # AddHair = 0
Thanks