Scriptquestion camera and viewport 2005-05-19 - By Patrick Boucher
Back Rob Wuijster wrote: > Hi, > > Just a quick question here: > > How can I script switching a camera in a certain viewport. Say viewport > B, switching from cam1 to cam2. > > I found a SetValue "Views.ViewX" statement but that doesn't work... > Still trying to grasp scripting here...
Once you have a hangle on the viewManager you can set the activecamera:[a|b|c|d] with the name of the camera you wish to have in there.
vm = Application.Desktop.ActiveLayout.Views('vm') vm.SetAttributeValue('activecamera:b', mySceneCam.Name)
-- Patrick Boucher TD - Coder - Resident geek Buzz Image Group Tel 514.848.0579 Fax 514.848.6371
www.buzzimage.com www.xsi-blog.com --- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
|
|