3D Lingo Dictionary > L-N > newMotion() |
![]() ![]() ![]() |
newMotion()
Syntax
member(whichCastmember
).newMotion(name
)
Description
3D command; creates a new motion within the referenced cast member, and returns a reference to the new motion. A new motion can be used to combine several previously existing motions from the member's motion list via the map()
command. All motions within a referenced cast member must have a unique name.
Example
This Lingo creates a new motion in member 1 called runWithWave
that is used to combine the run and wave motions from the member's motion list:
runWithWave = member(1).newMotion("runWithWave") runWithWave.map("run", "pelvisBone") runWithWave.map("wave", "shoulderBone")
![]() ![]() ![]() |