vcanim.gif (8357 bytes)SWC_sceneGetCurrent
Home ] Sales ] Products ] Services ] Support ] Downloads ]

 

 


SWC_sceneGetCurrent

Allocates and loads the current scene.

package require SWC

SWC_sceneGetCurrent context

context
A container for Softwish objects.

Scene-Specific Attributes:

AttributeName Get Set Fcrvs AttributeType Description
sceneName Y Y N string Name of the scene. This is a pathless file-name.
sceneID Y Y N string This is the name of the scene structure. This name may be passed to any SAA routine which requires a scene.

Return Value

If the procedure succeeds then the context is filled with scene name and scene ID. Procedure returns sceneID.

Example

SWC_sceneGetCurrent MyContext
Scene2
SAA_sceneGetNbModels $MyContext(sceneID) nbModels
set nbModels
10

This example allocates and loads the current scene. Call SAA function to get the number of models in this scene.

See Also

SWC_sceneGet

Behaviors Overview ] Behavior Evaluate ] Behavior Edit ] Debugger ] Console ] Find ] SAA Library ] SW library ] SWC library ] SWN library index ] SWU library ] Attributes Index ] Scripting Examples ]

copyright Video-Collage Inc.