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 12:22 PM

(This is related to adp001's suggestion to use a Python callback over there)

 I've managed to manually add a callback valueOp to my CR2 and with adp001's sample code I've got things working, except that the callback doesn't affect the parameter I thought it would. Here's the bit of the CR2 - BigNumber can go above 360, and I'm trying to use a callback to set BigNumberModulo to be BigNumber reduced modulo 360:

and here's my hacked version of adp001's sample (yes, I'm a debug print fiend):

...ah ! I think I've just seen why it does what it does... :)


The 3Dcheapskate (also available in DAZ and HiveWire3D flavours) 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.