On 28/01/2013 at 07:12, xxxxxxxx wrote:
Hi everybody, I'm newbie with this api although I've experience programming (not precisely python or coffee :angry:) I've found than many times I wish fire a event..for example
the user select knife..I can't found in the documentation (I've not reading this so deep sorry) how know when the tool is used...would be interesting can use event-handler or nice callback for chain events:
c4d.CallCommand(<knife tool code> , lambda vectorOfCut: print("you cut in "+ vectorOfCut))
c4d.CallCommand(<knife tool code> , lambda _: c4d.CallCommand(<other tool>, print("both tools executed"))) #here when the first tool is executed fire my other tool
although the python lambdas are really limited I think than maybe this would be a good feature and not so hard to implement :wink: ...