Test your nodes
Use the Bifrost Extension for Maya to test your nodes:
Make sure your Bifrost pack directory is accessible to Maya.
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 namedSimpleStringPackConfig.json
unless you changed it in theCMakeLists.txt
file:BIFROST_LIB_CONFIG_FILES=<path_to_bifrost_packs>/SimpleString-1.0.0/SimpleStringPackConfig.json
Open Maya and navigate to Create->Bifrost Graph from the Maya menu.
Use the tab key to open the node list. You will find your nodes under their namespaces.
Add two
integer_to_string
nodes, twovalue
nodes, and onejoin_strings
node to the graph.Set the
value
nodes to integer values, and connect each of them to aninteger_to_string
node.Connect the outputs of the
integer_to_string
nodes to thejoin_strings
node.Connect the output of the
join_strings
node to anoutput
nodeRun 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.