My node compute function Does not work properly!!

31 views
Skip to first unread message

miarmy

unread,
Sep 18, 2018, 4:08:32 PM9/18/18
to Python Programming for Autodesk Maya
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:

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 

Michael Kato

unread,
Sep 18, 2018, 4:55:04 PM9/18/18
to Python Programming for Autodesk Maya
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...
Reply all
Reply to author
Forward
0 new messages