# Traceback (most recent call last):
# File "/tmp/TOOLS_INSTALL/cent5_x86_64_py26/MayaAssets-Project/MayaAssets/library/maya/python/importComponentReference.py", line 127, in importComponentReferences
# pm.cmds.file(importReference=True,referenceNode=ref.refNode)
# TypeError: Flag 'referenceNode' must be passed a boolean argument
Is Pymel a bit stricter now? I could of sworn this used to work. I have to resort to the following mel
pm.mel.eval("file -importReference -referenceNode " + ref.refNode)
The docs say it takes a boolean, but the mel code for importing a reference within the reference editor uses a reference node name scripts/others/referenceEditorPanel.mel
You might try:
pm.cmds.file(ref.refNode, referenceNode=True, importReference=True)