Viz Artist User Guide

Version 3.14 | Published October 30, 2020 ©

Cobra

images/download/attachments/50614973/ico_cobra.png
The Cobra function is an easy to use function replace (parts) of container names. Enter a search pattern and a string the search should be replaced with and execute.

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

Cobra Properties

images/download/attachments/50614973/pc_cobra_e.png

  • Search pattern: Sets the text string to be replaced.

  • Search pattern position: Defines the position within the string. It can be set to Begin, End and Any.

  • Replace with: Sets the text string to be used instead of the search pattern.

  • Search level:

    • Same: Affects only containers on the same hierarchy level.

    • Down: Affects only Sub-Containers of the current container.

    • Tree: Searches the whole Scene Tree.

  • Add Index: Adds a numerical index to the new name when set to On.

    • Starting Index: Sets the number to start the index.

    • Reverse Index: Uses a reverse index list when set to On.

  • Replace: Starts the replace process.

To Rename Container(s)

images/download/attachments/50614973/pc_cobra_xg.png

  1. Add the Cobra plug-in to a container that, for example, has Sub-Containers that need be renamed.

  2. Open the Cobra editor.

  3. Enter a Search pattern text string (e.g. Copy)

  4. Set the Search pattern position to Begin.

  5. Enter the Replace with text string (e.g. Sphere).

  6. Set the Search level to Down.

  7. Click Replace.

See Also