script command openscene [edit, solved]

Discussions concerning programming of SOFTIMAGE©
Post Reply
User avatar
Maximus
Posts: 1105
Joined: 09 Jun 2009, 15:45

script command openscene [edit, solved]

Post by Maximus » 18 Jun 2012, 12:13

Hi guys,

i'm trying to create a custom button to open a specified scene i've already created for studio setup.
For example i have created 3 studio lighting setup, and i want to make 3 buttons, by using those i load the studio setup defined by the script button.
Anyone know if is it possible to do so? I've tried the "Open Scene" command but it prompts me to the browser where i have to pick the actual file, while i would like it does that automatic, like i specify exactly the path where the scene is and hitting the button makes Softimage load the scene.

Hope i was clear!

Thanks!

Edit: found solution was pretty easy, sorry for bother!

here is the code for anyone interested:

Code: Select all

Application.OpenScene("path\scenename.scn", "", "")

Post Reply

Who is online

Users browsing this forum: No registered users and 25 guests