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
--
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 [email protected].
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.