Forum: Poser Python Scripting


Subject: kValueOpTypeCodePYTHONCALLBACK doesn't seem to work

3dcheapskate opened this issue on Sep 22, 2021 ยท 13 posts


3dcheapskate posted Wed, 22 September 2021 at 11:57 AM

parm1.AddValueOperation(poser.kValueOpTypeCodePYTHONCALLBACK, parm2) doesn't seem to do anything.

The PoserPython Manual specifies kValueOpTypeCodePYTHONCALLBACK...

 


...but it's not listed as one of the OpTypeCodes for 'AddValueOperation()'...

...which I'd assumed was an error in the manual: you'll notice there's an kValueOpCodeADD which doesn't exist - I'd assumed that it was meant to be kValueOpCodePYTHONCALLBACK).

I run the following test code...


...save the figure, and then inspect the CR2. The DeltaAdd has been correctly added, but there's no sign of the PythonCallback



The 3Dcheapskate* occasionally posts sensible stuff. Usually by accident. And it usually uses Poser 11, with units set to inches. Except when it's using Poser 6 or PP2014, or when its units are set to PNU or something else.
*soon only to be available in two flavours - 
 DAZ and Renderosity