3D Lingo Dictionary > O-S > resetWorld

 

resetWorld

Syntax

member(whichCastmember).resetWorld()
member(whichTextCastmember).resetWorld()

Description

3D command; resets the member's properties of the referenced 3D cast member to the values stored when the member was first loaded into memory. The member's state property must be either 0 (unloaded), 4 (media loaded), or -1 (error) before this command can be used, otherwise a script error will occur.

This command differs from revertToWorldDefaults in that the values used are taken from the state of the member when it was first loaded into memory rather than from the state of the member when it was first created.

Example

This statement resets the properties of the cast member named Scene to the values they had when the member was first loaded into memory.

member("Scene").resetWorld()

See also

revertToWorldDefaults