Scriptquestion camera and viewport 2005-05-19 - By Patrick Boucher
Back Oh yeah... Unfortunately you can't set the viewports to one of the standard cameras (Top, Front, Right, User and Spot), it has to be one of the cameras in the scene...
You can get the name of a standard cameras if it's in the viewport but it will return funnyness: '&Front' for front, '&Top' for top, '&Right' for right and '&User' for user camera but 'Spot' for the spot camera.
It'll be up to you to convert these hints to Views.ViewX.WhateverCamera and do a Application.Dictionnary.GetObject(myConvertedCameraString) to get to the actual camera object.
Hope this all helps...
-- 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
|
|