I've been deep in referencing hell for the last few weeks, trying to
debug some issues with the way Maya handles namespaces and references
in our pipeline. Part of this is to do a fast checker that will give
the guys a heads up as to the health status of the ref scenes they're
working on. I'm basically trying to get a printout of all failed
referenceEdits for all loaded referenceNodes.
It looks like I've come across a possible bug in the way Pymel hadles
this. Code below is a simple test wrapper, in the scene I've got 3
references all pointing to the same file. I know that all 3 have
failed edits on them and if I run the below code using the
cmds.refQuery I get all 3 as fails + the count. But using either of
the Pymel blocks I only get the fails caught for the first ref, not
the other 3.
refNodes=[ref for ref in pCore.listReferences() if ref.isLoaded()]
for ref in refNodes:
print ref,
len(pm.referenceQuery(ref.refNode,successfulEdits=False,failedEdits=True,es=True))
print ref,
len(cmds.referenceQuery(str(ref.refNode),successfulEdits=False,failedEdits=True,es=True))
print ref, len(ref.getReferenceEdits(failedEdits=True))
anybody else come across issues with this?
thanks
Mark
--
http://groups.google.com/group/python_inside_maya