Share

Add animated elements in Bifrost-USD

To store animation such as a varying attribute or a deforming shape in a USD stage, you must connect the frame output of a time node to the corresponding Bifrost-USD definition nodes, and use the add_to_stage node inside a feedback loop to accumulate the data in the stage from frame to frame. Save the stage to file after playing through all frames.

Note:

When working with animation in USD, make sure that Cached Playback is off in Maya.

The frame input is available on the define_usd_mesh and define_usd_attribute nodes.

  • If you want to animate specific attributes and not the whole prim, connect time to define_usd_attribute.
  • To animate the shape, connect time to define_usd_mesh.
  • If the attribute values to animate are connected to the attribute_definitions port of a define_usd_mesh node that is already set up for animation, then you do not need to connect time to the define_usd_attribute nodes individually.

You can edit the existing compounds or build your own to animate other prim types or specific attributes.

  1. In the parameters of a define_usd_mesh or define_usd_attribute node, enable use_frame.

  2. Connect the frame output of a time node to the frame input. In the following example, the display color attribute will be animated as well because the mesh itself is animated.

    Animated mesh prim definition

  3. Select the add_to_stage compound downstream, and press Ctrl+G to make a compound.

    Compound containing `add_to_stage`

  4. Double-click the compound to enter it.

  5. Right-click on the stage port of the input node and choose Set Port Feedback > out_stage. The ports are now linked as feedback ports.

    Feedback ports for the stage ports

  6. Exit the compound and play the scene through to accumulate the animated data in the stage.

  7. After playing through, you can save or export the stage to file.

    If desired, you can create a condition to save automatically on the last frame.

    Condition to save on frame 240

Was this information helpful?