Viz Artist

Version 3.10 | Published May 03, 2018 ©

Time Displacement

images/download/attachments/27789173/viz_icons_timedisplace.png
Time Displacement allows you to use a gray-scaled alpha image for setting animation time offsets for all the objects in a group container. This is typically useful if you want to create some kind of randomized animation effect or that should follow a certain pattern.

What the function does is to create links between the animated containers and the pixels of the gray-scale image and then use the alpha level of each pixel to set the offset of the containers. The range from 100% alpha to 0% alpha on the pixels sets the offset level. By default 100% alpha sets no offset and 0% sets maximum offset.

Note: This plug-in is located in: Built Ins -> Container plug-ins -> Arrange

This section contains information on the following topics:

Time Displacement Properties

images/download/attachments/27789173/plugins_container_time_displace_editor.png

  • Image: Drag the alpha image you want to use for creating the containers offsets onto the drop zone here.

  • Invert: Inverts the link between the image pixels and offsets. 0% gives no offset and 100% gives maximum.

  • Image Width: Sets the height of the alpha image.

  • Image Height: Sets the height of the alpha image. The product of Image Width multiplied with Image Height should normally be the same as the number of containers that are to be used in the function.

  • Pixel Reference: Defines the way the pixels should be associated to the animated containers. You can choose between:

    • Order in Tree: The container order in the transformation tree decides how the pixels should be associated.

    • Name of Container: The container name sets the order in which the containers will be associated with the pixels.

  • Search Tree: Sets the search level of the function, when it decides which Sub-Containers to include in the function:

    • One Level: Only the first level of Sub-Containers is being included in the function.

    • Recursive: All levels of Sub-Containers are being included.

  • Threshold Action: Is executed if the pixel value is lower than the threshold value.

    • None: No action is performed.

    • Skip Pixel: The pixel is skipped in the offset process.

    • Visible- Makes objects visible when the pixel value is lower than the threshold value.

    • Invisible- Makes objects invisible when the pixel value is lower than the threshold value.

  • Threshold: Sets the Threshold value where one of the above selected actions will be performed.

  • Stage Range (frames): Sets the range of the offset distribution. A high value will result in bigger differences in offset between containers that are associated with different pixel alpha values.

  • Stage Offset (frames): Adds a static offset value to all containers.

  • Filter Type- Filters the containers in or out. Available options are; None, Including and Excluding.

  • Filter String- Sets the name of the containers that are to be included in the filter. Use of asterisks is supported.

  • Execute: Starts the operation

To Set Animation Time Offsets with a Grayscaled Alpha Image

images/download/attachments/27789173/plugins_container_cftimedis_tree_example.png

  1. Add a group to the scene tree and name it TimeDisplace, and the TimeDisplace plug-in to it.

  2. Create a Sub-Container of the TimeDisplace container and name it Sphere.

  3. Create a new group container as a Sub-Container of Sphere.

  4. Add a Sphere geometry plug-in and material to the group container.

  5. Animate the group container from Position X -200.0 to 200.0.

  6. Make 6 copies of the Sphere container under the TimeDisplace container.

  7. Add the Grid Arrange plug-in to the TimeDisplace container.

  8. Open the Grid Arrange editor and set Number of Rows to 6 and Row Offset to 30.0.

  9. Optional: Remove the Grid Arrange plug-in.

  10. Add the Corena plug-in and rename the containers to Sphere, starting at index 0. This will allow you to filter out specific containers using the TimeDisplace filter.

  11. Optional: Remove the Corena plug-in.

  12. Open the TimeDisplace editor and add an alpha image to the Image drop zone.

  13. Click Execute.

    images/download/attachments/27789173/plugins_container_cftimedis_stage_example.png
  14. Click the Stage to see the offsets being added to the containers.

  15. Run the animation to see the time offset in action!

See Also