Go to: Synopsis. Return value. Flags. MEL examples.

Synopsis

marker [-attach] [-detach] [-frontTwist angle] [-orientationMarker] [-positionMarker] [-sideTwist angle] [-time time] [-upTwist angle] [-valueU float] [string]

marker is undoable, queryable, and editable.

The marker command creates one or two markers, on a motion path curve, at the specified time and location. The optionnal string argument is the parent object name.

One can specify "-pm -om" option to create both, a position marker and an orientation marker.

Since there is only one keyframe for each marker of the same type, no more than one marker of the same type with the same time value can exist.

The default marker type is the position marker. The default time is the current time.

Return value

string[](name of the created markers)

In query mode, return type is based on queried flag.

Flags

attach, detach, frontTwist, orientationMarker, positionMarker, sideTwist, time, upTwist, valueU
Long name (short name) Argument types Properties
-attach(-a) create
This flag specifies to attach the selected 3D position markers to their parent geometry.
-detach(-d) create
This flag specifies to detach the selected position markers from their parent geometry to the 3D space.
-frontTwist(-ft) angle query
This flag specifies the amount of twist angle about the front vector for the marker.
Default is 0.
When queried, this flag returns a angle.
-orientationMarker(-om) query
This flag specifies creation of an orientation marker.
Default is not set..
When queried, this flag returns a boolean.
-positionMarker(-pm) query
This flag specifies creation of a position marker.
Default is set.
When queried, this flag returns a boolean.
-sideTwist(-st) angle query
This flag specifies the amount of twist angle about the side vector for the marker.
Default is 0.
When queried, this flag returns a angle.
-time(-t) time query
This flag specifies the time for the marker.
Default is the current time.
When queried, this flag returns a time.
-upTwist(-ut) angle query
This flag specifies the amount of twist angle about the up vector for the marker.
Default is 0.
When queried, this flag returns a angle.
-valueU(-u) float query
This flag specifies the location of the position marker w.r.t. the parent geometry u parameterization.
Default is the value at current time.
When queried, this flag returns a linear.

Flag can appear in Create mode of command Flag can appear in Edit mode of command
Flag can appear in Query mode of command Flag can be used more than once in a command.

MEL examples

// Create a simple motion path animation:

// create a path, e,g, a curve
string $path = `curve -d 3 -p -10 0 0 -p -6 0 10 -p -3 0 -10 -p 10 0 0 -k 0 -k 0 -k 0  -k 1 -k 1 -k 1`;

// Create an object, e.g. a sphere
string $object[] = `sphere -ch off -axis 0 1 0`;
scale 0.5 2.0 0.2;

// animate the object using a motion path with follow on
pathAnimation -f 1 -stu 0 -etu 30 -c $path $object[0];

// change the current time to be frame 20
currentTime -edit 20;

// Create a position marker on the path, at curve parameter value
// 0.75 and at current time:
marker -u 0.75 $path;

// Create an orientation marker on the path, at time 15:
marker -om -t 15 $path;

// Create a position marker and an orientation marker on the path,
// at curve parameter value .35 and at time 10:
marker -pm -om -t 10 -u 0.35 $path;