hello,
I though about sharing someting strange that occured to me. I had a method that contained
MPlug.destinations() which as an art requieres an MPlugArray(). For some reason, probably because I was in a hurry and I didn't thought about it, I casted all the MPlugs from
MPlug.destinations() into a python list. Let's call it foo=list().
And that's where I started getting crashes. For instance, if I did something like
foo[0], which is supposed to hold an MPlug, maya return the MPlug okey, but if I did foo[0].isNull() it returned True and then crashed.
Whereas if you don't use a python list, and query directly the MPlugArray (e.g, myMPlugArr[0].isNull) it returns False and everything is ok.
So my question more out curiosity than anything else. I know python lists are mutable objects, but not sure how or if that could be related.
Cheers,
R