you mixed up data_handle_unit with data_handle_value on line 39
just switch it and it works fine

Quoting DayDreamer <[email protected]>:

Hi, I have created the custom depend node, but it doesn't seems to work.

Description:
It creates a node named "multiplyUnit", having attributes "unit" and "value", multiplication of both result into the output.

Issue:
When I change the attribute "unit", the value of attribute "value" also changes, which is wrong, hence the output is also incorrect.

Verbose:
      Added a "print" statement in the compute method.

Note:
    The plugin(multiplyUnit.py) is attached.

Thanks in advance for any help.

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.




---------------------------------------
Yukio Satoh
VFX Artist // TD

www.satoh.ch
www.elefantstudios.ch
---------------------------------------

--
You received this message because you are subscribed to the Google Groups "Python 
Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to