[Maya-Python] attributeAffects and input output name?

2018-11-15 Thread miarmy
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 inp

Re: [Maya-Python] attributeAffects and input output name?

2018-11-18 Thread 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? On Thu, 15

Re: [Maya-Python] attributeAffects and input output name?

2018-11-20 Thread Michael Boon
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. On Sunday, 18 November 2018 19:58:53 UTC+11, Marcus Ottosson wrote: > > I can’t tell for sure, not without