"View B" default camera
-
keeper
- Posts: 19
- Joined: 07 Jul 2013, 09:39
"View B" default camera
How to setup default view of "View B" to something else than "Camera"? For example User view.
-
rray
- Moderator
- Posts: 1810
- Joined: 26 Sep 2009, 13:51
- Location: Bonn, Germany
Re: "View B" default camera
For the shelf shortcuts you can right click the shelf button and add
vw.setattributevalue "activecamera:b", "User"
to the script commands
For the initial view I don't know, you'll probably need to create a custom layout with a different cam set it the view properties.
vw.setattributevalue "activecamera:b", "User"
to the script commands
For the initial view I don't know, you'll probably need to create a custom layout with a different cam set it the view properties.
softimage resources section updated Sep 26th 2026
-
keeper
- Posts: 19
- Joined: 07 Jul 2013, 09:39
Re: "View B" default camera
Found a solution. A simple custom "Startup" event plugin with code:
// Callback for the Startup event.
function Startup_OnEvent( in_ctxt )
{
Application.LogMessage("Startup_OnEvent called",siVerbose);
// TODO: Put your code here.
var views = desktop.ActiveLayout.Views.Find("View Manager");
views.SetAttributeValue( "activecamera:b", "User");
// Return value is ignored as this event can not be aborted.
return true;
}
// Callback for the Startup event.
function Startup_OnEvent( in_ctxt )
{
Application.LogMessage("Startup_OnEvent called",siVerbose);
// TODO: Put your code here.
var views = desktop.ActiveLayout.Views.Find("View Manager");
views.SetAttributeValue( "activecamera:b", "User");
// Return value is ignored as this event can not be aborted.
return true;
}
-
AceMastermind
- Posts: 161
- Joined: 14 Jun 2009, 22:57
Re: "View B" default camera
You'll probably want to add another event for when you start a new scene too, I use what you have plus this(in vbs though) so that view 'B' defaults to 'User' at all times after launching the application.
Code: Select all
' Callback for the siOnEndNewSceneEvent event.
function siOnEndNewSceneEvent_OnEvent( ctxt )
Application.LogMessage "siOnEndNewSceneEvent_OnEvent called",siVerbose
' TODO: Put your code here.
set vw = Desktop.ActiveLayout.Views.Find( "View Manager" )
vw.setattributevalue "activecamera:b","user"
' This event can be aborted by returning true or false if you don't want to abort.
siOnEndNewSceneEvent_OnEvent = false
end function