Share

Test your nodes

Use the Bifrost Extension for Maya to test your nodes:

  1. Make sure your Bifrost pack directory is accessible to Maya.

  2. Set the BIFROST_LIB_CONFIG_FILES environment variable to point to the pack config file in your pack directory. The pack config file will be named SimpleStringPackConfig.json unless you changed it in the CMakeLists.txt file:

     BIFROST_LIB_CONFIG_FILES=<path_to_bifrost_packs>/SimpleString-1.0.0/SimpleStringPackConfig.json
  3. Open Maya and navigate to Create->Bifrost Graph from the Maya menu.

  4. Use the tab key to open the node list. You will find your nodes under their namespaces. The two nodes in the node list

  5. Add two integer_to_string nodes, two value nodes, and one join_strings node to the graph.

  6. Set the value nodes to integer values, and connect each of them to an integer_to_string node.

  7. Connect the outputs of the integer_to_string nodes to the join_strings node.

  8. Connect the output of the join_strings node to an output node Image of the graph that tests the nodes

  9. Run the MEL getAttr command to run your graph and print out the result.

     getAttr bifrostGraphShape1.concatenated;

The output of the MEL command should be the two initial integers concatenated together.

Was this information helpful?