thinkcooper opened this issue on Apr 10, 2012 · 94 posts
uli_k posted Sat, 14 April 2012 at 2:47 PM
Quote - Does that mean we can script ERC now? I have to investigate that. That would be "awesome".
That's the idea, yes. Let us know if anything is missing. Here are some quotes from the updated PoserPython manual to get you going:
ValueOp Codes
The constants below name types of value operations that can be attached to a parameter. The parameter then is either being set by a Python callback (kValueOpTypeCodePYTHONCALLBACK) or is being combined with another parameter through a mathematical operation (ERC) or a list of key/value pairs.
kValueOpTypeCodeDELTAADD
kValueOpTypeCodeDIVIDEBY
kValueOpTypeCodeDIVIDEINTO
kValueOpTypeCodeKEY
kValueOpTypeCodeMINUS
kValueOpTypeCodePLUS
kValueOpTypeCodePYTHONCALLBACK
kValueOpTypeCodeTIMES
AddValueOperation
Add a value operation of the specified type to this parameter. The source parm is a different parameter, that serves as key when valueOpType is kValueOpTypeCodeKEY or as operand in a math operation for kValueOpTypeCodeDELTAADD, kValueOpCodeADD, kValueOpTypeCodeDIVIDEINTO, kValueOpTypeCodeMINUS, kValueOpTypeCodePLUS and kValueOpTypeCodeTIMES.
DeleteValueOperation
Deletes the value operation at the given index.
NumValueOperations
Returns the number of value operations on this parameter. Return 0 if there are no value operations on this parameter.
ValueOperations
Returns the list of value operations on this parameter. Return None if there are no value operations on this parameter.