I have a node with an attr that will have multiple output plugs, constrainTrans, constrainTrans, ... , constrainTrans[n].
When the compute function is called to clean one of these plugs, say
constrainTrans[j], I need to determine within the function call whether or not another specific plug is clean or dirty, say constrainTrans[k]. How do I do this?
The MDataHandle class doesn't seem to have a method for querying the dirty state.
MDataBlock has an 'isClean' method, but I don't know if it's usage supports passing a plug with and element index or whether it's just meant to take the entire attribute. Can anyone please advise?
In otherwords, if 'data' is the data block:
I think this is correct usage:
data.isClean (constrainTrans, &returnStatus);
But is this legal as well:
data.isClean (constrainTrans[k], &returnStatus);
If this doesn't work, is there some other approach to this problem that I can try? Thanks a tone for any help at all, I'm in a terrible bind.