Wow, that is annoying. Selecting 'skip' or 'abort file read' removes
sceneA's name string from refsSceneA (though it does keep the ref_edits).
You'd think it would still keep that info around.
I've had success find/replacing reference names in the ascii text files,
but haven't tried to fix this through Maya itself.
On Friday, October 26, 2012 10:20:21 AM UTC-7, elrond79 wrote:
>
> Suppose I have sceneA.ma, and refsSceneA.ma, where refsSceneA.ma contains
> a reference to sceneA. Then, I decide to rename sceneA.ma to sceneB.ma.
> When I then open up refsSceneA.ma:
>
>
> - I get a gui popup telling me about the missing sceneA.ma ref, and
> asking me what to do
> - I cannot get this gui to NOT to show up, even if I open the file
> with loadReferenceDepth="none"
> - I can't seem to install any gui callbacks which happen before
> this gui, and would allow me to fix the problem
> - If I select "skip", then when I get into the scene, I can't find any
> information about the broken reference
> - when I query for references in the scene, it seems that there are
> none
> - the reference NODE is still in the scene, but I can't query any
> information out of it
> - the leftover node's .fileNames attribute seems to be empty
> - even if I were to assume I could somehow figure out what the file
> SHOULD be without querying any information about it from the scene, I
> still
> can't fix it...
> - using cmds.file('sceneB.ma', loadReference="refNode",
> loadReferenceDepth="none") fails (it says it can't find sceneA.ma)
> - using cmds.file(unloadReference="refNode") also fails (also,
> passing in either sceneA or sceneB as a positional arg fails)
> - if I try to create a new reference, using cmds.file('sceneB.ma',
> reference=1, referenceNode="refNode"), it creates a NEW reference node,
> refNode1, which doesn't have any of my old reference edits
>
> I feel like there's got to be a way to solve this without human
> intervention, but for the life of me, I can't find it. If anyone has any
> ideas, it would be much appreciated!
>
> - Paul
>
--
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings:
http://groups.google.com/group/python_inside_maya/subscribe