Discussion:
[Maya-Python] attributeAffects and input output name?
miarmy
2018-11-15 17:59:01 UTC
Permalink
hi.

how can i know Which of input attributes run compute function of my
node???(in compute function )



example, i have:

attributeAffects(inputA, ouputB);

attributeAffects(inputB, ouputB);

attributeAffects(inputC, ouputB);

attributeAffects(inputD, ouputB);


Which of inputs(inputA or inputB or...) run compute function ???
..........
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/e78e1719-4a74-407c-8bf3-92e655212d1d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Marcus Ottosson
2018-11-18 08:58:36 UTC
Permalink
I can’t tell for sure, not without an example of sorts, but it looks like
you’ve got the answer in the question. attributeAffects is how you tell
Maya which attribute should trigger your compute function. What have you
tried so far, and what happens? What did you expect to have happen?
Post by miarmy
hi.
how can i know Which of input attributes run compute function of my
node???(in compute function )
attributeAffects(inputA, ouputB);
attributeAffects(inputB, ouputB);
attributeAffects(inputC, ouputB);
attributeAffects(inputD, ouputB);
Which of inputs(inputA or inputB or...) run compute function ???
..........
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
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/e78e1719-4a74-407c-8bf3-92e655212d1d%40googlegroups.com
<https://groups.google.com/d/msgid/python_inside_maya/e78e1719-4a74-407c-8bf3-92e655212d1d%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
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/CAFRtmODvyS31xWnA0JAh-8Z1pVZ4exCTW1EWm-8zSJcbrre%3DVQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Michael Boon
2018-11-21 03:56:17 UTC
Permalink
The compute function won't be run until you ask Maya for outputB, right?
Changing the inputs just flags the output as dirty, and then accessing the
output causes the calculation to be done.
Post by Marcus Ottosson
I can’t tell for sure, not without an example of sorts, but it looks like
you’ve got the answer in the question. attributeAffects is how you tell
Maya which attribute should trigger your compute function. What have you
tried so far, and what happens? What did you expect to have happen?
Post by miarmy
hi.
how can i know Which of input attributes run compute function of my
node???(in compute function )
attributeAffects(inputA, ouputB);
attributeAffects(inputB, ouputB);
attributeAffects(inputC, ouputB);
attributeAffects(inputD, ouputB);
Which of inputs(inputA or inputB or...) run compute function ???
..........
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
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/e78e1719-4a74-407c-8bf3-92e655212d1d%40googlegroups.com
<https://groups.google.com/d/msgid/python_inside_maya/e78e1719-4a74-407c-8bf3-92e655212d1d%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
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/53d994ad-89c9-4514-8ff6-68a1b68cb763%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...