cmds.file mapPlaceHolderNamespace and importing

71 views
Skip to first unread message

Sveinbjörn J. Tryggvason

unread,
Dec 8, 2014, 10:26:11 AM12/8/14
to python_in...@googlegroups.com
Hey guys,

I'm looking at an old project from someone else that used reference edits a lot and I am having difficulty applying the edits since they use placeholder namespaces so I have no idea how this worked back when it was originally made (maya 2012 or something like that)

In the editMa file there are two placeholder namespaces, <main> and <edit>. <main> gets replaced with whatever I put in under the appyTo flag, the problem I'm having is with the <edit> placeholder namespace. The way I understand it is that I could use the mapPlaceHolderNamespace flag which takes two argumens one of which is a reference node but I can't seem to get that to work. I have also tried using the replaceNames flag but that doesn't seem to do anything as well as the swapNamespace which I would think would have worked since that seems to be the only way in a pre-2014 maya to achieve this unless I am fantastically mistaken (which could very well be the case).

Here is the file command I am running

mc.file('path/to/file.editMA',
         i=True, 
         type='editMA',
         namespace='char:N0_edit',
         applyTo:'char:N0RN',
         mapPlaceHolderNamespace=('<edit>','char:N0_editRN')
       )

(as you can see there are nested namespaces involved as well)

Any ideas or idiot mistakes I'm doing?

Cheers,
Svenni

Macbeth R.

unread,
Mar 31, 2017, 7:15:20 AM3/31/17
to python_in...@googlegroups.com
Hey you find and answer to this?

Thanks!

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAGeGtRh%3DWBoakmdWqdF63TP192g4rWBHr1C_zX7L%2BE-qMTEK4Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages