Discussion:
[Maya-Python] My node compute function Does not work properly!!
miarmy
2018-09-18 20:08:32 UTC
Permalink
hi! My node only works when it's attributes are displayed in attribute
editor or channel Box window!!!!
How to fix this problem??
For example:
https://textuploader.com/dvpzd

in this node, I want the compute def to run when my shape that is
connected to my node, is moved.... but this example is true when showing my
node attribute in attribute editor window

Excuse me,I don't speak English as well as you
--
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 python_inside_maya+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/fd210b08-2910-4ab5-a28f-d0cbe00616be%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Michael Kato
2018-09-18 20:55:04 UTC
Permalink
This is probably not actually correct, but if you change

self.attributeAffects(self.aaaAttr, self.inMeshAttr)
self.attributeAffects(self.inMeshAttr, self.tttAttr)

to just

self.attributeAffects(self.aaaAttr, self.tttAttr)

it does start triggering the compute for me. Doesn't make a lot of sense
why though...
Post by miarmy
hi! My node only works when it's attributes are displayed in attribute
editor or channel Box window!!!!
How to fix this problem??
https://textuploader.com/dvpzd
in this node, I want the compute def to run when my shape that is
connected to my node, is moved.... but this example is true when showing my
node attribute in attribute editor window
Excuse me,I don't speak English as well as you
--
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 python_inside_maya+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/9e623866-0117-4cd9-bdf5-d5d4ef9a5732%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...