次へ移動: 概要 |戻り値 |関連項目 | フラグ |MEL のサンプル |
vnnNode [-addMetaData string string] [-clearMetaData string] [-connected boolean] [-connectedTo string] [-createInputPort string string] [-createOutputPort string string] [-deletePort string] [-listConnectedNodes] [-listPortChildren string] [-listPorts] [-portFlags uint] [-portOptions string[]] [-portValues string] [-queryAcceptablePortDataTypes string] [-queryIsUnresolved] [-queryMetaData string] [-queryMetaDataAsString] [-queryMetaDatas] [-queryPortDataType string] [-queryPortDefaultValues string] [-queryPortMetaDataValue string string] [-queryTypeName] [-removeMetaData string string] [-resetPortDefaultValues string] [-setMetaData string string[]] [-setMetaDataFromString string] [-setPortDataType string string] [-setPortDefaultValues string string[]] [-setPortMetaDataValue string string string] [-setStateFlag string boolean]
[dg container] [/node name]
vnnNode は取り消しが可能で、照会不可能および編集不可能です。
vnnNode コマンドは、vnnNode を操作して、そのポートと接続を照会する場合に使用します。最初の引数は、VNN ノードが配置されている DG ノードのフル ネームです。2 番目の引数は、VNN ノードのフル パス名です。
vnn、vnnCompound、 vnnConnect
addMetaData, clearMetaData, connected, connectedTo, createInputPort, createOutputPort, deletePort, listConnectedNodes, listPortChildren, listPorts, portFlags, portOptions, portValues, queryAcceptablePortDataTypes, queryIsUnresolved, queryMetaData, queryMetaDataAsString, queryMetaDatas, queryPortDataType, queryPortDefaultValues, queryPortMetaDataValue, queryTypeName, removeMetaData, resetPortDefaultValues, setMetaData, setMetaDataFromString, setPortDataType, setPortDefaultValues, setPortMetaDataValue, setStateFlag
フラグはコマンドの作成モードで表示できます
|
フラグはコマンドの編集モードで表示できます
|
フラグはコマンドの照会モードで表示できます
|
コマンド内でフラグを複数回使用できます。
|
file -f -new;
createNewBifrostGraphCmd;
vnnCompound "bifrostGraph1" "/" -addNode "BifrostGraph,Simulation::Aero,combustion_settings";
// all ports on the node
vnnNode "bifrostGraph1" "/combustion_settings/set_property__enable_combustion" -listPorts;
// connected ports
vnnNode "bifrostGraph1" "/combustion_settings/set_property__enable_combustion" -listPorts -connected true;
// unconnected ports
vnnNode "bifrostGraph1" "/combustion_settings/set_property__enable_combustion" -listPorts -connected false;
// all connected nodes
vnnNode "bifrostGraph1" "/combustion_settings/set_property__enable_combustion" -listConnectedNodes;
// node connected to the port named "value"
vnnNode "bifrostGraph1" "/combustion_settings/set_property__enable_combustion" -listConnectedNodes -connectedTo "value";
// query port value
vnnNode "bifrostGraph1" "/combustion_settings" -queryPortDefaultValues "combustion_smoothness";
// Result: 0.5 //
// query port type
vnnNode "bifrostGraph1" "/combustion_settings" -queryPortDataType "combustion_smoothness";
// Result: float //
// query node type
vnnCompound "bifrostGraph1" "/" -addNode "BifrostGraph,Core::Math,euler_to_quaternion";
vnnNode "bifrostGraph1" "/euler_to_quaternion/if4" -queryTypeName;
// Result: BifrostGraph,Core::Logic,if //
// create port and connect
vnnCompound "bifrostGraph1" "/" -addNode "BifrostGraph,Core::Math,add";
vnnCompound "bifrostGraph1" "/" -addNode "BifrostGraph,Core::Math,subtract";
vnnNode "bifrostGraph1" "/subtract" -createInputPort "input" "auto";
vnnConnect "bifrostGraph1" "/add.output" "/subtract.input";
// port meta-data
file -f -new;
createNewBifrostGraphCmd;
vnnCompound "bifrostGraph1" "/" -addNode "BifrostGraph,File::Geometry,read_Alembic";
vnnNode "bifrostGraph1" "/read_Alembic" -setPortMetaDataValue "filename" "UIWidget" "FileBrowserWidget";
print `vnnNode "bifrostGraph1" "/read_Alembic" -queryPortMetaDataValue "filename" "UIWidget"`;
// create a value node of type array<float3> and set its value and size
vnnCompound "bifrostGraph1" "/" -addNode "BifrostGraph,Core::Constants,array<Math::float3>";
vnnNode "bifrostGraph1" "/value" -setPortDefaultValues "value" "{10, 20, 30}";
vnnNode "bifrostGraph1" "/value" -setMetaData "valuenode_size" "3";
// the array will be assigned 3 float3 elements, each of values (10, 20, 30)
// alternatively
vnnNode "bifrostGraph1" "/value" -setPortDefaultValues "value" "{{10, 20, 30, 40, 50, 60}}";
// or
vnnNode "bifrostGraph1" "/value" -setPortDefaultValues "value" "{10, 20, 30, 40, 50, 60}";
// the array will be assigned 2 float3 elements, (10, 20, 30) and (40, 50, 60)
// create a value node of type array<array<float3>> and set its values
vnnCompound "bifrostGraph1" "/" -addNode "BifrostGraph,Core::Constants,array<array<Math::float3>>";
vnnNode "bifrostGraph1" "/value" -setPortDefaultValues "value" "{{{1, 2, 3, 4, 5, 6}, {7, 8, 9, 0, 1, 2, 3, 4, 5}, {6, 7, 8}}}";
// value contains 3 elements :
// #0 : array<float3> with 2 elements (1, 2, 3) and (4, 5, 6)
// #1 : array<float3> with 3 elements (7, 8, 9), (0, 1, 2) and (3, 4, 5)
// #2 : array<float3> with a single element (6, 7, 8)
// create a value node of user-structured type and set its values
// struct User::MyStruct {
// float force
// float3 direction
// array<int> indices
// array<float3> points
// string name
//}
vnnCompound "bifrostGraph1" "/" -addNode "BifrostGraph,Core::Constants,User::MyStruct";
vnnNode "bifrostGraph1" "/value" -setPortDefaultValues "value" "{5.2, 1.2, -0.3, 4.5, {0, 1, 2, 0, 2, 1}, {1, 2, 3, 4, 5, 6, 7, 8, 9}, myString}";
// value.force = 5.2
// value.direction = 1.2, -0.3, 4.5
// value.indices = {0, 1, 2, 0, 2, 1}
// value.points = {1, 2, 3, 4, 5, 6, 7, 8, 9}
// value.name = 'myString'