次へ移動: 概要 |戻り値 |関連項目 | フラグ |MEL のサンプル |
vnnCompound [-addBackdrop string] [-addIONode boolean] [-addMetaData string string] [-addNode string] [-addStatePorts string string string] [-canResetToFactory string] [-clearMetaData string] [-connected boolean] [-connectedTo string] [-connectedToInput] [-connectedToOutput] [-create string] [-createInputPort string string] [-createOutputPort string string] [-deletePort string] [-explode string] [-hidePort string boolean] [-inputPort] [-listNodes] [-listPortChildren string] [-listPorts] [-moveBackdropIn string] [-moveNodeIn string] [-movePort string int] [-movePortToIONode string string] [-nodeType string] [-outputPort] [-portFlags uint] [-portOptions string[]] [-portValues string] [-publish string string string boolean] [-publishGraph string string string string] [-queryBackdropMetaDataValue string string] [-queryIsImported] [-queryIsReferenced] [-queryMetaData string] [-queryMetaDataAsString] [-queryMetaDatas] [-queryPortDataType string] [-queryPortDefaultValues string] [-queryPortMetaDataValue string string] [-removeBackdrop string] [-removeMetaData string string] [-removeNode string] [-renameBackdrop string string] [-renameNode string string] [-renamePort string string] [-resetPortDefaultValues string] [-resetToFactory string] [-saveAs string] [-setBackdropMetaDataValue string string string] [-setIsReferenced boolean] [-setMetaData string string[]] [-setMetaDataFromString string] [-setPortDataType string string] [-setPortDefaultValues string string[]] [-setPortMetaDataValue string string string] [-specializedTypeName]
string string
vnnCompound は取り消しが可能で、照会不可能および編集不可能です。
コンパウンドおよび VNN グラフを操作するには、vnnCompound コマンドを使用します。最初のパラメータは VNN グラフが含まれている DG ノードのフル ネームです。2 番目のパラメータは、コンパウンドの名前です。| string | 演算の結果を返します。 |
| ロング ネーム(ショート ネーム) | 引数タイプ | プロパティ | ||
|---|---|---|---|---|
-addBackdrop(-ab)
|
string
|
|
||
|
||||
-addIONode(-aio)
|
boolean
|
|
||
|
||||
-addMetaData(-amd)
|
string string
|
|
||
|
||||
-addNode(-an)
|
string
|
|
||
|
||||
-addStatePorts(-asp)
|
string string string
|
|
||
|
||||
-canResetToFactory(-crf)
|
string
|
|
||
|
||||
-clearMetaData(-cmd)
|
string
|
|
||
|
||||
-connected(-cn)
|
boolean
|
|
||
|
||||
-connectedTo(-ct)
|
string
|
|
||
|
||||
-connectedToInput(-cti)
|
|
|
||
|
||||
-connectedToOutput(-cto)
|
|
|
||
|
||||
-create(-c)
|
string
|
|
||
|
||||
-createInputPort(-cip)
|
string string
|
|
||
|
||||
-createOutputPort(-cop)
|
string string
|
|
||
|
||||
-deletePort(-dp)
|
string
|
|
||
|
||||
-explode(-ec)
|
string
|
|
||
|
||||
-hidePort(-hp)
|
string boolean
|
|
||
|
||||
-inputPort(-ip)
|
|
|
||
|
||||
-listNodes(-ln)
|
|
|
||
|
||||
-listPortChildren(-lpc)
|
string
|
|
||
|
||||
-listPorts(-lp)
|
|
|
||
|
||||
-moveBackdropIn(-mbi)
|
string
|
|
||
|
||||
-moveNodeIn(-mi)
|
string
|
|
||
|
||||
-movePort(-mp)
|
string int
|
|
||
|
||||
-movePortToIONode(-mpn)
|
string string
|
|
||
|
||||
-nodeType(-nt)
|
string
|
|
||
|
||||
-outputPort(-op)
|
|
|
||
|
||||
-portFlags(-cpf)
|
uint
|
|
||
|
||||
-portOptions(-cpo)
|
string[]
|
|
||
|
||||
-portValues(-cpv)
|
string
|
|
||
|
||||
-publish(-pub)
|
string string string boolean
|
|
||
|
||||
-publishGraph(-pbg)
|
string string string string
|
|
||
|
||||
-queryBackdropMetaDataValue(-qbm)
|
string string
|
|
||
|
||||
-queryIsImported(-qii)
|
|
|
||
|
||||
-queryIsReferenced(-qir)
|
|
|
||
|
||||
-queryMetaData(-qmd)
|
string
|
|
||
|
||||
-queryMetaDataAsString(-mas)
|
|
|
||
|
||||
-queryMetaDatas(-qms)
|
|
|
||
|
||||
-queryPortDataType(-qpt)
|
string
|
|
||
|
||||
-queryPortDefaultValues(-qpv)
|
string
|
|
||
|
||||
-queryPortMetaDataValue(-qpm)
|
string string
|
|
||
|
||||
-removeBackdrop(-rmb)
|
string
|
|
||
|
||||
-removeMetaData(-rmd)
|
string string
|
|
||
|
||||
-removeNode(-rmn)
|
string
|
|
||
|
||||
-renameBackdrop(-rb)
|
string string
|
|
||
|
||||
-renameNode(-rn)
|
string string
|
|
||
|
||||
-renamePort(-rp)
|
string string
|
|
||
|
||||
-resetPortDefaultValues(-rpv)
|
string
|
|
||
|
||||
-resetToFactory(-rtf)
|
string
|
|
||
|
||||
-saveAs(-sa)
|
string
|
|
||
|
||||
-setBackdropMetaDataValue(-sbm)
|
string string string
|
|
||
|
||||
-setIsReferenced(-sir)
|
boolean
|
|
||
|
||||
-setMetaData(-smd)
|
string string[]
|
|
||
|
||||
-setMetaDataFromString(-mfs)
|
string
|
|
||
|
||||
-setPortDataType(-spt)
|
string string
|
|
||
|
||||
-setPortDefaultValues(-spv)
|
string string[]
|
|
||
|
||||
-setPortMetaDataValue(-spm)
|
string string string
|
|
||
|
||||
-specializedTypeName(-stn)
|
|
|
||
|
||||
file -f -new;
createNewBifrostGraphCmd;
vnnCompound -create "liquid" "bifrostGraph1" "/";
// Create a sub-compound in the graph
vnnCompound "bifrostGraph1" "/liquid" -create "subCompound";
// Create an output port in the compound
vnnCompound "bifrostGraph1" "/liquid" -createOutputPort "newOutput" "float";
// Create an input port in the compound
vnnCompound "bifrostGraph1" "/liquid" -createInputPort "newInput" "float";
// Rename a port
vnnCompound "bifrostGraph1" "/liquid" -renamePort "newOutput" "outputValue";
// Move a port
vnnCompound "bifrostGraph1" "/liquid" -movePort "newInput" 0;
// Hide a port
vnnCompound "bifrostGraph1" "/liquid" -hidePort "newInput" 1;
// set the type of a internal port of the compound
vnnCompound "bifrostGraph1" "/liquid" -setPortDataType "outputValue" "string";
// query the data type of a specified port
vnnCompound "bifrostGraph1" "/liquid" -queryPortDataType "outputValue";
// set the default value of specified port for an integer data type
vnnCompound "bifrostGraph1" "/liquid" -setPortDefaultValues "newInput" "18";
// set the port default values for a float3 data type
vnnCompound "bifrostGraph1" "/liquid" -createInputPort "newInput2" "Math::float3";
vnnCompound "bifrostGraph1" "/liquid" -setPortDefaultValues "newInput2" {"1.5", "1.2", "1.3"};
// Reset the port default value
vnnCompound "bifrostGraph1" "/liquid" -resetPortDefaultValues "newInput";
vnnCompound "bifrostGraph1" "/liquid" -queryPortDefaultValues "newInput";
// Result: 0 0 0 //
// query the default value of specified port for an integer data type
vnnCompound "bifrostGraph1" "/liquid" -queryPortDefaultValues "newInput";
// Result: 18 //
// query the default value of specified port for an float3 data type
vnnCompound "bifrostGraph1" "/liquid" -queryPortDefaultValues "newInput2";
// Result: 1.5 1.2 1.3 //
// set the state value of specified port
vnnCompound "bifrostGraph1" "/liquid" -setPortMetaDataValue "portName" "metaDataName" "value";
// query the current state value of specified port
vnnCompound "bifrostGraph1" "/liquid" -queryPortMetaDataValue "portName" "metaDataName";
// query the children of a specified port
vnnCompound "bifrostGraph1" "/liquid" -listPortChildren "portName";
// Add a new node into VNN graph of the bifrost container
vnnCompound "bifrostGraph1" "/liquid" -addNode "BifrostGraph,Core::Math,add";
// Create a new input node
vnnCompound "bifrostGraph1" "/liquid" -addIONode true;
// Create a new output node
vnnCompound "bifrostGraph1" "/liquid" -addIONode false;
// Rename a node
vnnCompound "bifrostGraph1" "/liquid" -renameNode "add" "plus";
// Remove the node
vnnCompound "bifrostGraph1" "/liquid" -addNode "BifrostGraph,Core::Math,plus";
vnnCompound "bifrostGraph1" "/liquid" -removeNode "plus";
// Create two state ports of type float
vnnCompound "bifrostGraph1" "/liquid" -addStatePorts "in_name" "out_name" "float";
// Query the specialized type name
vnnCompound "bifrostGraph1" "/liquid" -specializedTypeName;
// Query if the compound is referenced
vnnCompound "bifrostGraph1" "/liquid" -queryIsReferenced;
// Query if the compound is imported
vnnCompound "bifrostGraph1" "/liquid" -queryIsImported;
// Make the compound private
vnnCompound "bifrostGraph1" "/liquid" -setIsReferenced false;
// List all child nodes in the specified compound
vnnCompound "bifrostGraph1" "/liquid" -listNodes;
// List the nodes in the specified compound which are of a specific type
vnnCompound "bifrostGraph1" "/liquid" -listNodes -nodeType "Math";
// List all the nodes in the specified compound which have no connections
vnnCompound "bifrostGraph1" "/liquid" -listNodes -connected false;
// List nodes in the specified compound which are connected to the parent's internal input
vnnCompound "bifrostGraph1" "/liquid" -listNodes -connectedToInput;
// List nodes in the specified compound which are connected to the parent's internal output
vnnCompound "bifrostGraph1" "/liquid" -listNodes -connectedToOutput;
// List nodes in the specified compound which are connected to both the parent's internal input and output port
vnnCompound "bifrostGraph1" "/liquid" -listNodes -connectedToInput -connectedToOutput;
// Query the name of the node that is connected to a specified port
// It could be either an input port or an output port
vnnCompound "bifrostGraph1" "/liquid" -listNodes -connectedTo "Solid";
// Result: SetDescriptorFromObject1.value
// List the names of all compound's internal ports
vnnCompound "bifrostGraph1" "/liquid" -listPorts;
// List the names of the compound's internal input ports
vnnCompound "bifrostGraph1" "/liquid" -listPorts -inputPort;
// List the names of the compound's internal output ports
vnnCompound "bifrostGraph1" "/liquid" -listPorts -outputPort;
// List all the compound's internal unconnected input and output port
vnnCompound "bifrostGraph1" "/liquid" -listPorts -connected false;
// List all the compound's internal connected input and output port
vnnCompound "bifrostGraph1" "/liquid" -listPorts -connected true;
// Query if the specified compound can be reset to factory
vnnCompound "bifrostGraph1" "/" -canResetToFactory "liquid";
// Reset the specified compound to factory
vnnCompound "bifrostGraph1" "/" -resetToFactory "liquid";