It is currently 19 Jun 2013, 19:37

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: script command openscene [edit, solved]
PostPosted: 18 Jun 2012, 12:13 
Offline
User avatar

Joined: 09 Jun 2009, 15:45
Posts: 817
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:
Application.OpenScene("path\scenename.scn", "", "")


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group