Community
Maya Forum
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Rename certain string when importing FBX.

0 REPLIES 0
Reply
Message 1 of 1
8beat1
78 Views, 0 Replies

Rename certain string when importing FBX.

Hello,

I'm trying to merge import fbx file onto the rig already in the scene.

We were importing atom file using this code and it was working fine.

        options = "targetTime=3;option=insert;match=string;selected=childrenToo;search=XXX;replace={};".format(prefix)
        cmds.file(file_path, i=True, type="atomImport", options=options)
 
Problem is that we decided to import fbx instead of atom. Below didn't work.
        options = "targetTime=3;option=merge;match=string;selected=childrenToo;search=xxx;replace={};".format(prefix)
        mel.eval('FBXImportMode -v merge')
        pm.mel.FBXImport(f=file_path,t=1,options=options)
 
How can we achieve this using File() or FBXImport()?
Thank you in advance.
0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report