MAXScript Extensions > MAXScript Extensions for character studio > Mixer MAXScript Extensions >

# MxTrackGroup Class

| Character Studio - Quick Navigation

Properties

    name: string

    numTracks: integer, not settable

Methods

    getTrack <trackgroup:mxtrackgroup> <index:integer>

If index is in the correct range, this returns an mxtrack. Otherwise, it returns false.

    getFilter <trackgroup: mxtrackgroup> <trackid:string>

    trackid must have one of the following values:#lftArm, #rgtArm, #lftHand, #rgtHand, #lftFoot, #rgtFoot, #lftLeg, #rgtLeg, #lftPony, #rgtPony, #head, #horizontal, #vertical, #rotation, #spine, #pelvis, #tail, #prop1, #prop2, #prop3.

This returns true or false, depending on whether the indicated track is on or off in the trackgroup's filter.

    setFilter <trackgroup: mxtrackgroup> <trackid:string> <onOff:boolean>

trackid must have one of the values listed above. This turns the filter on or off for one of the tracks. If the track is not one of the accepted strings, this returns false. Otherwise, it returns true.

    cleartrackgroup <trackgroup: mxtrackgroup>

This deletes all clips from the trackgroup.

    appendTrack <trackgroup: mxtrackgroup> <tracktype:string>

    tracktype must be either #layertrack or #transtrack .

This appends a track of the specified type to the end of the track array. The new track will appear at the top of all the tracks in the trackgroup. Returns true.

    insertTrack <trackgroup: mxtrackgroup > <index:integer> <tracktype:string>

    tracktype must be either #layertrack or #transtrack .

If index is in the correct range, this inserts a new track of the specified type at that index. An index of 1 is the lowest track in the trackgroup. Returns true if the index is in the correct range. Otherwise returns false.

    deleteTrack <trackgroup: mxtrackgroup > <index:integer>

If index is in the correct range, this deletes the track at that index.

An index of 1 is the lowest track in the trackgroup. You are not allowed to delete the last track in a trackgroup, since trackgroups without tracks are not allowed. You can clear the track of clips using ClearTrack(). Returns true if track was deleted, false if not..

#### See Also

- Mixer MAXScript Extensions

- MAXScript Extensions in character studio