LumaPictures / pymel

Python in Maya Done Right
Other
479 stars 130 forks source link

Add isNodeReferenced to PyNodes #363

Closed kartikg3 closed 8 years ago

kartikg3 commented 8 years ago

It would be a great convenience if we could add an isNodeReferenced() method (probably derived from referenceQuery?) as part of PyNodes.

I can get this out.

pmolodo commented 8 years ago

There's already two different ways to get this:

DependNode.isReferenced() (direct replacement)

DependNode.referenceFile() (will return None if it's not referenced)

pmolodo commented 8 years ago

Sorry I didn't see this before you made a commit!

kartikg3 commented 8 years ago

No worries. 'tis great fun going through PyMEL and tinkering anyway.