maya python force rename illegal Node name while import

maya python force rename illegal Node name while import

pixelmolkerei
Enthusiast Enthusiast
787 Views
0 Replies
Message 1 of 1

maya python force rename illegal Node name while import

pixelmolkerei
Enthusiast
Enthusiast

If we batch import objs from a folder with the command:

 

imported_objects = cmds.file(f_name, i=True, mergeNamespacesOnClash=False, renamingPrefix='GEO_'+ f_name , returnNewNodes=True)

 

We still have meshes with illegal or non names, specially if the obj was exported from a file containing referenced objects.

 

Is there any solution to force rename while importing?

 

The Shape name in the OBJ is defined: for example:

g 3360-0008:8
# 51_34_1110_Tray_module_small_(no_content)+:+3360-0008:8
s off

 

 

 

 

0 Likes
788 Views
0 Replies
Replies (0)