Message 1 of 3

Not applicable
08-18-2019
04:39 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello.
I have a maya file that references another maya file.
DAG path strings look like this:
|root_skeleton|rig:Geometry|rig:skeleton_effects|rig:skeleton_effectsShapeOrig
I can obtain the namespace which is ":rig".
Now I need to get the local path for a node within referenced file, e.g.
|Geometry|skeleton_effects|skeleton_effectsShapeOrig
The easy but dirty approach is to transform ":rig" => "rig:", then delete everything before first namespace occurance and finally delete the remaining namespace substrings.
But I wonder is there a Maya API to get the local path without namespace in a cleaner way?
Solved! Go to Solution.