3D Lingo Dictionary > O-S > revertToWorldDefaults |
![]() ![]() ![]() |
revertToWorldDefaults
Syntax
member(whichCastmember
).revertToWorldDefaults()
Description
3D command; reverts the properties of the specified 3D cast member to the values stored when the member was first created. The member's state
property must be 4 (loaded) or -1 (error) before this command can be used, otherwise a script error will occur.
This command differs from resetWorld
in that the values used are taken from the state of the member when it was first created rather than from the state of the member when it was first loaded into memory.
Example
This statement reverts the properties of the cast member named Scene to the values stored when the member was first created.
member("Scene").revertToWorldDefaults()
See also
![]() ![]() ![]() |