PDA

View Full Version : Importing fbx on maya start


masteranza
11-12-2009, 07:31 AM
Hi!
I'm working on a cross 3d application bridge and I need two things:
1. start new instance of Maya with an .fbx file
2. Import and .fbx file to an opened instance of maya.

For the first part of the problem I've tried several combinations starting maya from command line, like

maya.exe -file "C:\teapot.fbx"
or
maya.exe -source "C:\open.mel"
where open.mel was:
file -i "C:\teapot.fbx"

but none of this worked.


Please help, I would really appreaciate it.

norbertnacu
11-13-2009, 09:17 AM
Hello There,
Here are some options you can do (I dont have maya infront of me).

1. modify your userSetup.mel
- call the script to open/import your fbx file
2. pass the file when you open Maya (maya c:/openImport.mb).
- inside that file (openImport.mb), you have a script node that's calling an open/import fbx command.
3. create a scriptJob, when that file is opened trigger an open/import fbx command.
4. modify the startup script in Maya (be very very very careful with this approach), if you know what you're doing this technique is not too bad. I modified the default Maya scripts, cause some of our environment artist wanted to have some special LOD system on startup. What you can do is get all default users (animators in your case?) run a script when they open that those file(s).


I'm pretty sure there are better techniques out there.


Thank You,
Norbert Nacu

masteranza
11-15-2009, 08:19 PM
thanks for a lot of hints I'll try this :)

CGTalk Moderation
11-15-2009, 08:19 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.