Preferences Setup File -Thanks Jason, David and Andre 2004-03-09 - By lyal
Back Thanks guys that�s it, I appreciate the time you took to reply.
-- --Original Message-- -- From: owner-xsi@(protected) [mailto:owner-xsi@(protected)] On Behalf Of Jason Brynford-Jones Sent: Wednesday, 10 March 2004 1:00 AM To: XSI@(protected) Subject: RE: Preferences Setup File - EVENTS
There are events in XSI which will call a script after you do newscene (or others)
Example. Make a script of what you want to do: IE Boundary flags and ambience (Use this as a template for others)
sub XSIApplication_OnEndNewScene( CustomData )
'script goes here
set oRoot = ActiveProject.ActiveScene.Root SetValue "Views.*.*.camvis.attrselboundaryflags", True SetValue oRoot & ".AmbientLighting.ambience.red", 0 SetValue oRoot & ".AmbientLighting.ambience.green", 0 SetValue oRoot & ".AmbientLighting.ambience.blue", 0
'script end end sub
'Save all of this, beginning with sub...
Save this script and call it whatever you want : EG C:\Event.vbs
Now use another script to call this script and create the event
'put this in the script editor and run
filename = "C:\Event.vbs" language = "VBScript" Application.Advise "OnEndNewScene",filename,,language,"MyEvent",,,TRUE
'MyEvent is just the name I chose for this event - you can change MyEvent to anything you want
That's it! - The event has been logged and will be called when you do newscene.
To see the event. Go to File>Addon>Events
Chinny
PS to see more types of events - open the help pages and look up events
OnBeginNewScene: just before flushing the current scene and starting a new one. OnEndNewScene: just after creating a new scene. OnBeginSceneOpen: just before flushing the current scene and opening a different one. OnEndSceneOpen: just after opening a scene. OnBeginSceneSave: just before saving a scene. OnEndSceneSave: just after saving a scene. OnBeginSceneSaveAs: just before saving a scene under a new name. OnEndSceneSaveAs: just after saving a scene under a new name. OnTerminateApp: when XSI is closed. OnSelectionChange: just after the selection is changed.
-- --Original Message-- -- From: owner-xsi@(protected) [mailto:owner-xsi@(protected)] On Behalf Of Andr� Adam Sent: Tuesday, March 09, 2004 7:00 AM To: XSI@(protected) Subject: Re: Preferences Setup File
Not to my knowledge. XSI saves stuff like preferred interaction models and basically everything you find in the preferences menu, but not viewport specific settings. However, it does save the settings you want to preserve with the scene, so you can setup an empty customized scene you simply load up when starting a new project.
-Andr�
--- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
--- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
|
|