PDA

View Full Version : fbx plug-in problems via maxscript...


biggyninja
05-05-2009, 05:40 AM
Ive encountered a problem with importing using the max 2009 plug ins. Basically when i import fbx files manually i get no problem, but when i import in the fbx file using a maxscript script no animation comes through.

Once ive imported an fbx file manually then the script works thereafter, but it doesnt work until i have to do this. Ie i cant open max and run the script. I have to manually import a fbx file first.

Does anyone know a way around this?

(maxscipters welcome, i can show the script if need be...)

Neill
05-05-2009, 07:51 AM
Hi, show the script please. I have done fbx importing using maxscript without any problem.

Ive encountered a problem with importing using the max 2009 plug ins. Basically when i import fbx files manually i get no problem, but when i import in the fbx file using a maxscript script no animation comes through.

Once ive imported an fbx file manually then the script works thereafter, but it doesnt work until i have to do this. Ie i cant open max and run the script. I have to manually import a fbx file first.

Does anyone know a way around this?

(maxscipters welcome, i can show the script if need be...)

biggyninja
05-05-2009, 08:04 AM
fbxPath = getFiles "O:\art\anim_files\*.fbx"
for f in fbxPath do

FbxImporterSetParam "Mode" "exmerge"
FbXImporterSetParam "Animation" true
importFile f #noPrompt using: fbximp

newName = getFilenameFile f
myPath = "O:\art\\anim_files\\"
saveMAXFile (myPath + newName + ".max")

this is the fbx file import part. brings in fbx file and saves the maxfile according to the imported files name.

Neill
05-05-2009, 08:27 AM
> Once ive imported an fbx file manually then the script works thereafter, but it doesnt work until i have to do this.

Your set param function is not working, try to make a preset of importing params in fbx plugin and make it current. After that run your script.

biggyninja
05-05-2009, 08:42 PM
Hi neill, yeah this seems to be the problem... In previous plug-ins i could set the import settings once and it would remember them. In this plug-in version (max 2009) it seems to forget my settings everytime i close and re-open max. Its rather frustrating. Do you know if max keeps the default information anywhere? Do you use the 2009 plug-ins? Its more likely im doing something wrong, but its always worked for me before :(
We will be moving to max 2010 soon, so im hoping this will fix the problem...

CGTalk Moderation
05-05-2009, 08:42 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.