PDA

View Full Version : scripting opening scenes.


pelos
07-28-2008, 10:55 AM
hi guys i am new at scripting,
i was looking on the xsi help but for something easy to do, to start knowing where to go.
i want to open a scene and render, easy.
i don't know if i need to
"get" a scene?
"call" it?
how do i start on this?

thanks for the patience,i have seen very hardcore scrips here.

pelos
07-28-2008, 11:05 AM
OpenSceneVBScript Example
'--------------------------------------------------------- ' VBScript example : Opening scenes. This script demonstrates ' how to open scenes. Note: this script destroys the current ' scene in XSI without warning. '--------------------------------------------------------- ' First clear the current scene. NewScene , False ' Now find a scene to open. SceneFile = Application.InstallationPath( siFactoryPath ) & "\Data\XSI_SAMPLES\Scenes\Simulation_Fluid_TapWater .scn" OpenScene SceneFile, False ' Now open it again, except apply auxiliary data. OpenScene SceneFile, False, True
k i got this. what is the difference between the auxiliary data?
i understand that the "false" comment is when we want to save the previous scene. and we say no, to open the one we want.
do i have to tell xsi the project and then the scene, or only the scene?

Dennis Leong
08-11-2008, 02:25 PM
Just open it using OpenScene. Render using the RenderPasses command.