User Guide
342 APPENDIX E
leg = scene.getInstanceFromIndex(0);
getInstanceCount()
Returns the number of instances in the scene.
instanceCount = scene.getInstanceCount();
getRepository()
Gets a reference to the scene repository.
repository = scene.getRepository();
getTimeElem(index or name)
Gets a reference to the specifi ed time element. The argument can either be a string or a numeric index.
walkTimeElem = scene.getTimeElem(“Walking”);
getTimeElemFromIndex(index)
Gets a reference to the specifi ed time element. The index must be an integer greater than or equal to zero.
walkTimeElem = scene.getTimeElemFromIndex(0);
getTimeElemCount()
Returns the number of time elements (animations) in the scene.
animCount = scene.getTimeElemCount();
resetTimeElem()
Resets a named time element to the beginning of its time interval and evaluates the time.
scene.resetTimeElem(“Walking”);
rewindTimeElem()
Rewinds a named time element to the beginning of its time interval but does not evaluate the time.
scene.rewindTimeElem(“Walking”);
startTimeElem()
Starts a named time element playing from its current time value.
scene.startTimeElem(“Walking”);
stopTimeElem()
Stops a named time element at its current time value.
scene.stopTimeElem(“Walking”);
triggerTimeElem()
Rewinds and starts a named time element playing from the beginning of its time interval.
scene.triggerTimeElem(“Walking”);










