Collada plugin for After Effects

More info here
Plugins and Scripts > trueSpace > Animation

Constraints for trueSpace7.61

constraints icon

Constraints are used to control the motion of one object with another object's motion.

persistent base install required

This script comes pre-installed in the Unofficial trueSpace Updates - https://www.united3dartists.com/forum/viewforum.php?f=55

Clintons3dPlugin.rsx required

Installation:

  1. install the Unofficial update - strongly encouraged
  2. install the persistent base if not already installed
  3. drag the node into the link editor
  4. delete the node from the scene after install is complete

Usage and Controls

Left click to open the Reactive floating panel and the type selection panel in the panel view

Right click to open the type selection panel in the panel view

reactive constraints panel

Usage:

  1. select a scene level object to be controlled
  2. add the controller object from the scene level to the selection
  3. press the button to open the Reactive Constraint floating panel
  4. Maintain Offset to keep the relative location of the constrained object
  5. select axis - X, Y, Z to determine what position aspect will be constrained
  6. select axis - Xr, Yr, Zr to determine what rotation aspect will be constrained
  7. press Add Constraint to create a constraint on the controlled object
  1. select an object that is being constrained
  2. press Remove All Constraints to remove all the constraint relationships assigned to the selected item

Controls:

  • Maintain Offset - object won't jump the the controlled objects position when the constraint is applied
  • X, Y, Z - which axis will be position constrained
  • Xr, Yr, Zr - which axis will be rotation constrained
  • Use Selection Buttons - instead of pre-selecting objects before, use the buttons below to establish the selections
  • Selection Controlled Object - select the constrained object then press this button
  • Selection Controller Object - select the object that will do the constraining
  • Add Constraint - establish a constraint relationship
  • Remove All Constraints - control minimhe original mesh
  • Reset - sets the default values for the panel

Object Constraint Panel

constrainee panel

Reactive Constraint Controls

  • X, Y, Z - which axis will be position constrained
  • Xr, Yr, Zr - which axis will be rotation constrained
  • Weights strength value assigned to each controller object
  • Controller node name for the corresponding weight
  • Position Offsets position of the constrained object relative to the first controller object attached to it

General Constraint Controls

  • active - enables/disables constraint processing.
  • Show the same basic controls but without any formatting.
  • xFlag, yFlag, zFlag - axis position constrained
  • xrFlag, yrFlag, zrFlag - axis rotation constrained
  • xOffset, yOffset, zOffset - position offsets
  • "pWeight" "pWeight, 1" "pWeight, 2" ... - Weights
  • "controller" "controller, 1" "controller, 2" ... - controller node names

Widget based Constraint Controls

  • active - enables/disables constraint processing.
  • Show the same basic controls but without any formatting.
  • xFlag, yFlag, zFlag - not exposed, found inside the "pointConstraint" node
  • xrFlag, yrFlag, zrFlag - not exposed, found inside the "rotateConstraint" node
  • xOffset, yOffset, zOffset - position offsets
  • "Weight" "Weight, 1" "Weight, 2" ... - Weights
  • "controller" "controller, 1" "controller, 2" ... - controller node names

Constraint Types

constraint types selection panel
  • Reactive
    • Only works with scene level items. Does not work with grouped objects.
    • Free axes are available for animation keys.
    • No need to bake animation before rendering
    • Limited to 8 constraints per object.
  • General
    • Works with grouped objects.
    • Must bake keyframes before rendering.
    • No limit to the number of constraints.
    • If key frame animation is applied to the controlled(constrained) object then specific key values will need to be deleted.
  • Widget Based
    • Works with grouped objects.
    • Use with objects where their matrix values cannot be set directly, like IK handles
    • Must bake keyframes before rendering.
    • 2 subtypes: W Point and W Rotation
    • W Point can be used with IK handles
    • If key frame animation is applied to the controlled(constrained) object then specific key values will need to be deleted.
    • Constraints are driven by widget motion commands instead of setting the matrix directly.

Notes:

  • For General and Widget Based constraints - If you constrain an object in Z and then add key frames to the object, the Z portion of the matrix key frames will have to be deleted, otherwise the constraint is ignored during the animation
  • The various constraint types have not been tested together.
  • see below for notes based on the previous version of the scripts

Fixes from previous version

  • small update to the installer scripts for persistent installs - toolbar must be open to be reset properly
  • extra matrix connection was being made for each controlling object
  • zero value for weight now has no influence when only one controller is applied
  • removed the exports for the weight connectors and instead exported the entire constraint node. this makes all the values visible in the side panel and connectors don't need to be removed when the constraints are removed
  • would fail if contraints were not removed in the reverse order they were added
  • Unofficial Update Constriant - made passive keyframeable and renamed it to reactive
April 5, 2020

Constraints for trueSpace7.61

Constraints are used to control the motion of one object with another object's motion.

Tank Girl with feet point constrained to pedals pedals parented to crank and crank parented to wheel
click picture for video(303Kb, wmv 320x240)

Constraints are used to control the motion of one object with another object's motion.  You can have one object follow the rotation or translation of another object and the "follow me" effect can be restricted to specific axes.  Several objects can be used to control one object.  Each control object has a weight assigned in the controlled object so that they can share control and transfer control amongst them.  The translation also has the option to maintain the current object's location while applying the constraint.  One object can control several others, but a controlled object can have only one each of the 3 constraint scripts discussed below.  Each script has a remove constraint function that will remove all the constraints from an object.

If key frame animation is applied to the controlled(constrained) object then specific key values will need to be deleted.  If you constrain an object in Z and then add key frames to the object, the Z portion of the matrix key frames will have to be deleted, otherwise the constraint is ignored during the animation.

It is difficult concept to explain so video demonstrations are available for download below.  Click the pictures for the videos and the script objects.

Rotation Constraints

Download the script here.click the picture

Green cube constrained by the rotations of the blue and red cubes.
Click the picture for a video demonstration(6MB, WMV, 3:01).

The Rotation Constraint will cause the constrained object to follow another objects rotation values. Select the object to be controlled then select the controlling object and run the script.  One object can have several objects controlling it.  To remove the constraint select the constrained object and choose remove constraint.

Point Constraints

Download the script here.click the picture

Green cube constrained by the translations of the blue and red cubes.
Click the picture for a video demonstration(3.5MB, WMV, 3:29).

The Point Constraint will cause the constrained object to follow another objects translation values. Select the object to be controlled then select the controlling object and run the script.  One object can have several objects controlling it.  To remove the constraint select the constrained object and choose remove constraint.  This constraint is compatible with IK handles.

General Constraints

Download the script here.click the picture

Several colored shapes constrained by the white torus.
Click the picture for a video demonstration.(2 MB, WMV, 2:25)

The Constraint will cause the constrained object to follow another objects rotation and translation values. It is like a combination of point and rotation constraints.  Select the object to be controlled then select the controlling object and run the script.  One object can have several objects controlling it.  To remove the constraint select the constrained object and choose remove constraint.

easier subobject selection

  1. check preStore to use the new selection method
  2. select the constrainee object and then click the constrainee button
  3. select the constrainor object and then click the constrainor button
  4. push the add constraint button

Notes:

you tube here
September 4, 2009
June 5, 2013