Hi, I’m trying to export a fluid simulation from Blender to Softimage XSI. I have absolutely no experience with Python, beyond these attempts, so I’m pretty lost regarding an error I keep getting. I seem to have successfully exported the fluid from Blender, but when I run the import script in XSI I get an error. The script looks like this:
Hi, I’m trying to export a fluid simulation from Blender to Softimage XSI. I have absolutely no experience with Python, beyond these attempts, so I’m pretty lost regarding an error I keep getting. I seem to have successfully exported the fluid from Blender, but when I run the import script in XSI I get an error. The script looks like this:
Clement Mallard 12/27/2005
for i in range(10): #Number of frames
Application.ObjImport(‘c:\ emp\fluid1-%.4d.obj’ %(i+1), 1, 0, 0, 0, 0, 0 )
Application.SetValue(“Cube_Cube.Name”, “fluid1-%d” %(i+1), “”)
Application.SetKey(“fluid1-%d.visibility.rendvis” %(i+1), (i+2), 0, “”)
Application.SetKey(“fluid1-%d.visibility.rendvis” %(i+1), (i+1), 1,"")
Application.SetKey(“fluid1-%d.visibility.rendvis” %(i+1), (i), 0, “”)
Application.SetKey(“fluid1-%d.visibility.viewvis” %(i+1), (i+2), 0, “”)
Application.SetKey(“fluid1-%d.visibility.viewvis” %(i+1), (i+1), 1,"")
Application.SetKey(“fluid1-%d.visibility.viewvis” %(i+1), (i), 0, “”)
print “Finished”
And the error I get at the bottom says this:
Traceback (most recent call last):. File"<Script Block>", line 5, in ?. Application.SetValue(“Cube_Cube.Name”, “fluid1-%d” %(i+1),""). File",COMObject…: The parameter is incorrect. (0X80070057) - [line 5]
It also highlights the line of script in the script editor that says:
Application.SetValue(“Cube_Cube.Name”, “fluid1-%d” %(i+1), “”)
What happens when I run the script, beyond the error, is that my fluid object is imported, but only the first frame of the animation. It is my understanding that the export should create an object for every frame of the simulation, in place of actual animation, but I’m only getting the one object. I don’t know if this is being caused by the script error, or is a separate issue.
Any help at all would be greatly appreciated. I am completely lost.
Thanks,
Lauren