SimulationEnvironments (Scene)
Introduced
4.2
Description
Returns a SimulationEnvironmentCollection containing the SimulationEnvironment objects associated with the scene. This list contains all simulation environments under the Environments container ("Scene.Environments").
C# Syntax
// get accessor SimulationEnvironmentCollection rtn = Scene.SimulationEnvironments;
Examples
Python Example
# # This example demonstrates how to create and access simulation environments # Application.NewScene( "", 0 ) # First create some new environments Application.CreateEnvironment( "TestEnvironment1" ) Application.CreateEnvironment( "TestEnvironment2" ) Application.CreateEnvironment( "TestEnvironment3" ) oEnvironments = Application.ActiveProject.ActiveScene.SimulationEnvironments for env in oEnvironments : Application.LogMessage( env.Name ) # Expected result: #INFO : TestEnvironment1 #INFO : TestEnvironment2 #INFO : TestEnvironment3
See Also
|
|
Autodesk Softimage v7.5