Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

Including "!" in object namespace

Including "!" in object namespace

michaelconner22
Community Visitor Community Visitor
145 Views
0 Replies
Message 1 of 1

Including "!" in object namespace

michaelconner22
Community Visitor
Community Visitor

I am using Maya to do terrain work for a Unity project that uses an object naming convention for its meshes like this, "General_!_Dirt_!_FSX_!_None". I do not see any way to import the OBJ while retaining that naming convention. When I attempt to manually change the name in the Outliner, I get this error in the Script Editor.

 

rename "General___Dirt_A_FSX___None" "General_!_Dirt_A_FSX_!_None";
// Warning: line 1: New name contains invalid characters. Illegal characters were converted to "_".
// Result: General___Dirt_A_FSX___None

 

I got a very similar error log in the Script Editor when I attempted to use the Pattern Rename v2.0 in Bonus Tools.

 

bt_patternRename;
// Warning: Add: Replace string: no spaces or special characters allowed - nothing added!
// Warning: Update: No spaces or special characters in replace string allowed - input ignored

 

Is there a way to bypass this block or tool inside Maya that will change it back to the original naming convention on or before export? 

0 Likes
146 Views
0 Replies
Replies (0)