reference = pm.createReference(referenceFile)
referenceNode = pm.referenceQuery(reference, referenceNode=True)
pRNode = pm.PyNode(referenceNode)
I've encountered an issue thats frustrating me.....
The .lock() .unlock() commands for references in PyMel dont seem to function. Can anyone else get locking & unlocking of layers working in Pymel?
Simple reproduction steps:
1) Open a new scene
2) Reference a random scene of your choosing
3) Attempt to lock the reference
newRef = pm.system.createReference('PATHTOSCENE')
You will notice that you can .load() / .unload() references in the same manner and they work fine, it's just lock / unlock that seem to fall down
I've tried locking / unlocking the reference by setting the ".locked" attribute as well but with the same results, the command executes without error but to no result.
If anyone can reproduce this issue without a solution then I'll just have to resort to using maya.cmds for this part of my tool....... :sigh:
Thanks in advance!