Collada plugin for
After Effects

More info here
Plugins and Scripts > trueSpace > Development

Demos

height node

Height field node

point cloud test

A fast version of the Caligari Image Cloud script created by Norm Fortier and based on the SDK height field sample code.

Connectors:

  • Bitmap - texture image for the mesh faces if they are visible
  • Height field - texture to control the height and color of the points
  • Height segments - vertical resolution of the mesh
  • Method - how the height is generated
    • 0 - average value of the red, blue and green of the pixel
    • 1 - use the blue value
    • 2 - use the green value
    • 3 - use the red value
    • 4 - intensity/luminance (0.3*red + 0.59*green + 0.11*blue)
    • 5 - use the alpha value of the image
  • Multiplier - scale for the displacement values
  • Point alpha - if checked the transparency value of the points is determined by the alpha channel of the image
  • Point size - how large the points are
  • Surface Opacity - how opacity of the mesh faces, 0=invisible
  • Width segments - the horizontal resolution of the mesh

The plugin package is required to use this script. Download the plugin package here.

A bare bones height field node can be created by running a command:
Node.Create('Clintons3D Package/Height field',Space.CurrentScene());

April 17, 2014

Speech for trueSpace

This script demonstrates the use of the Microsoft Speech API using a jscript command node.

Voices:

  • winXP - Sam
  • Win7 - Anna
  • Win10 - David and Zira
August 14, 2015

Save-As Dialog for trueSpace v1

This script demonstrates the use of a Save-As dialog for scripts.

The plugin package is required to use this script. Download the plugin package here.

Code:

filedata = System.CreateDO('Clintons3d Package/File Save As data');
filedata.SetName("My special (*.bob)~*.BOB~Collada Files (*.dae)~*.DAE~All Files (*.*)~*.*~~");
file = filedata.GetName();

System.Alert(file);

uses "~" as a delimiter between the description and the extension and end the string with 2 ~'s

November 22, 2009
square creator

Square Geometry Creator for trueSpace

This script will create a single 4 sided polygon square with uv coordinates assigned. Click the link or picture to download the script

September 5, 2009
hud demo

Heads Up Display for trueSpace

This script demonstrates the use of the widget marker sets(IRfMarkerVisualizationDisp and IRiWidgets) to create a working analog/digital clock that always faces the viewer.

June 20, 2010
color cube

RGB Color Cube

A simple colored cubes generator. It uses a constant color to remove light interactions.

June 20, 2010
rgb points

RGB Color Points

A cube made of vertices. Uses IRdVertexVisualizationStream.

June 20, 2010

Light Passthrough and Light Attribute Transfer for trueSpace7.61 and Light Cone Color

2 part script for transferring a lights spot angle and color to an objects position, rotation and scale. One script goes inside the light. The other resides at the scene level.

Usage:

  1. Place the lightPassthrough script node inside the light encapsulator.
  2. Export the 2 output connectors, "angleOut" and "colorOut"
  3. Connect the "angleIn" to the outside through the "Angle" connector on the encapsulator.  Skip this step if the light isn't a spot light or the cone angle isn't animated.
  4. Connect the "colorIn" to the outside via the "Color" input connector.
  5. Add the lightAttrTransfer node to the scene level.
  6. Expand the light and connect the angleOut to the spotAngle input of the lightAttrTransfer node.
  7. Connect the colorOut of the light to the lightColor input of the lightAttrTransfer.
  8. Connect the matrixOut of the lightAttrTransfer to an object in the scene.

Now when the scene is exported to collada format the object's transforms will hold the cone angle and color animations for the light. Rotate X will hold the spot angle in degrees. Scale XYZ and Translate XYZ will hold the color values. Translate X is only valid if imported with a scale of 1. If pick whip on scale in After Effects then divide by 100 since AE converts scale 0-1 to 0-100.

Note: There is a script for an Enhanced Collada export that includes light cone and color animation export.

September 16, 2009

Camera FOV Attribute Transfer for trueSpace7.61

Script for transferring the camera FOV to an objects position, rotation and scale.

Usage:

  1. Set camera to "Exp" aspect in the LE
  2. Connect Camera output to the cam input
  3. Connect the MatrixOut to some object in the scene

Now when the scene is exported to collada format the object's transforms will hold the FOV animation for the camera. Rotate X will hold the fov in degrees. Scale X and Translate X will hold an After Effects compatible zoom value. Translate X is only valid if imported with a scale of 1 and the After Effects zoom is via pick whip and multiply by the composition height. If pick whip on scale also divide by 100 since AE converts scale 0-1 to 0-100.

Note: The collada exporter exports the camera fov from model space values and ignores the work space fov value.

Note: There is a script for an Enhanced Collada export that includes the camera's fov animation.

September 16, 2009

Procedural Modeling - Stool

stool

Adapted from a 3DBuzz Houdini Tutorial

Notes:

  • Watchdog responds to all connectors of single script object - one changes and all will send a signal to the watchdog. Maybe better to have changes that require a command script execution be on their own nodes.
  • uses an external mesh object parent for the leg, acting as a pivot for the leg
  • combines meshes via a command script combined with a Csg operation node
  • command node calls second command using ScriptObject.Execute to force synchronous update for truespace items
  • the masterControl node outputs were created via a utility script, Generate Outputs
April 11, 2019

Flip Animation Scene

Inspired by Blender Animation nodes

Animation Nodes #5: Flipping Out (Tile Flip Example) by Zach Hixson

flip tile node tree

Notes:

  • torus distance from each tile is used to determine the amount of rotation on a tile
  • GridArray_Cube node is an updated script derived from the soon to be old grid array script utility
  • The distances script object computes distances from each tile to the torus outputing a number array.
  • The Number Array MapRange script object scales the values of the distances number array to result in a rotation in pitch between 0 and 180 degrees for each tile.
  • The FlipCones node performs the rotations of the tiles found inside the GridArray_Cube node using values from the number array output of the MapRange node.
  • The target tiles are defined by selecting the first clone, "meshObj"
April 11, 2019

Look At Demo Object

look at math found: https://docs.microsoft.com/en-us/previous-versions/windows/desktop/bb281710(v%3Dvs.85)

the matrix lookat script function is not working in truespace.

Move either sphere to see the lookat behavior

April 11, 2019

Sphere Collapse Scene

Inspired by Blender Animation nodes

Animation Nodes #6: Imminent Collapse (Imploding sphere effect) by Zach Hixson

Usage:

  1. select the Cube
  2. press the Copy Mesh button to populate the cubes
  3. press the Look at Center button to orient the cubes
  4. press the Select Effector to select the Torus
  5. move the Torus around

Notes:

  • Blender icosphere with 4 sub divs = 642 vertices. truespace set sphere resolution to 8 to match
  • predates the lookat math - instead uses a tailref cube connected to a headref cube via a lookat node
    • the headref is placed at (0,0,0)
    • the tailref is placed at the vertex locations of the larger sphere
    • the tailref rotation is read and copied to the individual cube matrix

Countdown Scene

Inspired by Blender Animation nodes

Stylish procedural countdown with Animation Nodes by Blenderust

Notes:

  • Final mesh output uses a "mesh instancer" node
  • Uses 3 array point accumulators to create the grid of position values for the hexagonal shapes
  • The countdown text and an invisible cube are joined together with a csg node set for intersection mode. The cube is moved to the position of each array point and the csg resulting mesh is read in. If the resulting mesh is not empty, then that hexagon shape moves up.
  • The noise motion comes from a image cloud node
  • The wave image is made from the linearGradient image included in the trueSpace Unofficial Update combined with an image curve node. It is animated using an image crop node.
  • The material uses a vertex shader to blend between the colors.
  • Uses animation of a torus going up and down to control the numbers motion. RsAnim.PutFrame is used to set the time on the torus, then it's z value was read in as a control. PutFrame only effects the one item and does not effect the rest of the scenes animations.

Instancer.RsObj - used to create a single mesh from many copies.

Array Points.RsObj - creates a 1D line of vertices given a count and offset values

Array Points Accumulator.RsObj - same as array points but takes a vertex list input to create 2D and 3D vertex arrays

TruePause

A pause script node that does not freeze all trueSpace processes while it runs. This makes it possible to use a pause for something like waiting for a file to finish writing.

This is a drop in replacement for the Pause Activity node. PauseTime is in mlliseconds.

true pause script

Note: the pause activity will tend to spam the Log/Output Console with timer messages. Increasing the Period will reduce the frequency of the messages, especially for longer pause times.

March 20, 2024

  • fix bug where long pause will prevent scene item panels in the stack from updating - looking frozen

July 8, 2021

  • undo friendly version
July 1, 2020

Autoload Template

Template to use as a model for auto installers compatible with the persistent install system.

  • based on the quad toolbar installer
  • has checkbox to activate - not needed with new install button format
  • clears recent files list
  • resets toolbars
  • replace buttons and scripts and rename for a new installer

June 9, 2024

  • update for load on demand style scripts

June 28, 2023

  • update to uu9 toolbar resets from trueBlue

October 25, 2022

  • update to the latest toolbar resets from trueBlue

February 8, 2022

  • new format with install button and only auto run when batched

August 28, 2021

  • added latest toolbar resets from trueBlue

September 21, 2020

  • add sample node for widget installations
September 11, 2020

Wait for file to write

trueSpace will start to write files and immeditely return to running other code. This node is used to wait for the complete write before moving forward to other tasks.

Usage:

  1. var pause = 1000;
  2. var WaitFS = Node.AccessFnSet(System.ThisOwner() + "/WaitForFileToWrite/WaitFS");
  3. WaitFS.SetFileName(filename);
  4. Node.Value(System.ThisOwner() + "/WaitForFileToWrite/TruePause", "PauseTime") = pause;
  5. save the file

PauseTime is how long to wait after the last file update time. Useful for the case where the file is updated several times before the final write. In the sample above, 1000 => 1 sec of no updates is used as an indicator that it's done writing the file.

January 29, 2021

Procedural Room

room

Room uses booleans to cut out holes for the door and the window. The script has controls for size and for which wall the window and door appear.

Notes:

  • all csg nodes are at the same heirarchy level
  • each csg node has a render attribute so the door, window and previous steps of the booleans can be hidden
  • units are in inches and feet
June 18, 2021
June 5, 2013