Scene.RenderableCameras
 
 
 

Scene.RenderableCameras

Introduced

v12.0 (2014)

Description

Returns an SIObjectCollection containing all camera objects which can be used by Mental Ray and other renderers.

Use this instead of X3DObject.FindChildren2 to get the list of all renderable cameras.

C# Syntax

// get accessor
SIObjectCollection rtn = Scene.RenderableCameras;

Examples

JScript Example

/*
        This example demonstrates how to get the renderable cameras in the scene.
*/
// Start a new scene
NewScene("", false);
// List all renderable cameras
var cameralist = ActiveProject.ActiveScene.RenderableCameras;
for ( var i=0; i<cameralist.Count; i++ ) {
        LogMessage( cameralist(i).FullName );
}
// Expected result:
//INFO : Camera
//INFO : Views.ViewA.SequencerCamera
//INFO : Views.ViewB.SequencerCamera
//INFO : Views.ViewC.SequencerCamera
//INFO : Views.ViewD.SequencerCamera

See Also

X3DObject