Stuck with some problem, I’m iterating over all attributes in given node and I’m trying to figure out if it is default values or not, using great function isDefaultValue() from MPlug object,
But. In many cases, this gives me Fatal error, during isDefaultValue() retrieving gives crashes on simple function call.
Maybe someone has met with such a problem before? maybe there is some type of attributes, in which I can not call these function?
Huge thanks in advance!
Thing i founded that fatal error rised during retriving default value in attribute, which have index in attribute path,
for example “pCube1.renderLayerInfo[-1].renderLayerColor” but i do not getting why it return -1 index, why MPlug returns negative one as index?