What is the script command for setting the current camera?

About Truespace Archives

These pages are a copy of the official truespace forums prior to their removal somewhere around 2011.

They are retained here for archive purposes only.

What is the script command for setting the current camera? // Scriptorium

1  |  

Post by frootee // Sep 10, 2007, 12:19pm

frootee
Total Posts: 2667
pic
Hi folks. I am interested in selecting a particular camera (or, rather, any object to become the camera view). What is the script command to do that?


Also, I recall in 6.6 that we had a icon that would allow us to select an object, then set the view to be From that object. What is that icon?


Thanks,


Froo

Post by trueBlue // Sep 10, 2007, 2:00pm

trueBlue
Total Posts: 1761
pic
Model has View from Object and I do not believe that has been implemented in Workspace.
This command will View from Selected Camera:
D3DView.SetActiveCamera('', '%WIN_ID%')

Post by stan // Sep 10, 2007, 3:51pm

stan
Total Posts: 1240
pic
you don't need the win id ..just use this once your camera is selected;)
D3DView.SetActiveCamera('', '')
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2024. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn