v4.2
Returns the currently active SimulationEnvironment. All elements that are part of a rigid body simulation are controlled within a simulation environment. A simulation environment is created as soon as you make an object into a rigid body. You can also create environments so that you can have multiple simulation environments in one scene.
// get accessor SimulationEnvironment rtn = Scene.ActiveSimulationEnvironment; |
/* This example demonstrates how to get the current simulation environment */ var oCurrentEnvironment = ActiveProject.ActiveScene.ActiveSimulationEnvironment; if ( ClassName(oCurrentEnvironment) == "" ) { CreateEnvironment( "myActiveEnvironment" ); } var oNewCurrentEnvironment = ActiveProject.ActiveScene.ActiveSimulationEnvironment; LogMessage(ClassName(oNewCurrentEnvironment)); // Expected result: //INFO : SimulationEnvironment |
Scene.SimulationEnvironments SimulationEnvironment SimulationEnvironmentCollection CreateEnvironment CreateEnvironmentCache MergeSimulationEnvironments SetCurrentEnvironment