Mailing List
Home
Forum Home
Softimage
Carrara
trueSpace
Dir3d-l
Maya - a powerful 3D animation and visual effects software
Macromedia Flash Development
Subjects
Cameras
scaleDown command
black out solved
Aircraft Tutorial
Mathematical XYZ ?
Its done This vs That
Its done first week
recommendations for screen video captures?
3DExplorer "Oddity "
New Director
ProTeam renewals
Fuel 's new websites (X post)
Blue peter create a make toy
targeting groups question
XPost: Shockwave 3D game ( sort of )
RES: RES: RES: Fish Modeling
Emitting particles from object intersection
Fuel 's new websites (X post)
Texturing
Big Break Contest Videos
New Plugins
Models and Texture on my updated site
Error Installing Patch tS6 6
Plasma?
Looking for Inspiration
Weird EMail Q
It 's done first week ?
Cherry not cranberry
New game
Camera Animation Problem
Particle plugins?
 
Scriptquestion camera and viewport

Scriptquestion camera and viewport

2005-05-19       - By Patrick Boucher

 Back
Reply:     1     2     3     4     5  

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