ジャンプ先: 概要. 戻り値. キーワード. 関連. フラグ. MEL 例.
showMetadata [-auto] [-dataType string] [-interpolation boolean] [-isActivated] [-listAllStreams] [-listMembers] [-listValidMethods] [-listVisibleStreams] [-member string] [-method string] [-off] [-range float float] [-rayScale float] [-stream string]
showMetadata は、取り消し可能、照会可能、および編集不可能です。
このコマンドは、指定したチャネル「vertex」、「edge」、「face」、および「vertexFace」内のメタデータ値をビューポートに表示する場合に使用します。データは次の 3 つの方法で表示できます。| string | 操作または照会したステータスの結果です。 |
照会モードでは、戻り値のタイプは照会されたフラグに基づきます。
| ロング ネーム(ショート ネーム) | 引数タイプ | プロパティ | ||
|---|---|---|---|---|
-auto(-a)
|
|
|
||
|
||||
-dataType(-dt)
|
string
|
|
||
|
||||
-interpolation(-i)
|
boolean
|
|
||
|
||||
-isActivated(-ia)
|
|
|
||
|
||||
-listAllStreams(-las)
|
|
|
||
|
||||
-listMembers(-lm)
|
|
|
||
|
||||
-listValidMethods(-lvm)
|
|
|
||
|
||||
-listVisibleStreams(-lvs)
|
|
|
||
|
||||
-member(-mb)
|
string
|
|
||
|
||||
-method(-m)
|
string
|
|
||
|
||||
-off(-)
|
|
|
||
|
||||
-range(-r)
|
float float
|
|
||
|
||||
-rayScale(-rs)
|
float
|
|
||
|
||||
-stream(-s)
|
string
|
|
||
|
||||
//Create a scene file -force -new ; dataStructure -format "raw" -asString "name=StructOne:int32=MemberOne"; polyPlane -constructionHistory false -name "mesh"; //Add Metadata addMetadata -streamName "StreamOne" -channelName "vertex" -structure "StructOne" meshShape ; editMetadata -streamName "StreamOne" -channelName "vertex" -memberName "MemberOne" -value 1 meshShape.vtx[1]; select -clear; showMetadata -stream "StreamOne" -member "MemberOne" -dataType "int32" meshShape; //Show metadata for which the member is "MemberOne" and the stream is "StreamOne" showMetadata -stream "StreamOne" -member "MemberOne" -dataType "int32" -method "color" meshShape; //StreamOne will be visualized by Component Color method. The other two visualization methods are //"string" and "ray". If "-method" flag is not defined, "color" will be used by default showMetadata -off; //Deactivate all streams to turn off metadata visualization showMetadata -stream "StreamOne" -member "MemberOne" -dataType "int32" -method "color" -interpolation true meshShape; //Enable interpolation on "color" mode. Interpolation must be used with "color" method showMetadata -range 0 10 -stream "StreamOne" -member "MemberOne" -dataType "int32" meshShape; //Show metadata between a specified range from 0 to 10. If the method is "color", // the value 0 will be displayed in black, while the value 10 will be displayed // in white. The value beyond the range will be clamped to 0 or 10. showMetadata -auto -stream "StreamOne" -member "MemberOne" -dataType "int32" meshShape; //Show metadata between the dynamic range, which is computed by the current min/max value. showMetadata -query -listAllStreams; //Return all streams in the scene, no matter if they are activated showMetadata -query -listAllStreams meshShape; //Return all streams of meshShape, no matter if they are activated showMetadata -query -listVisibleStreams; //Return the stream name(s) being visualized in the scene showMetadata -query -listVisibleStreams meshShape; //Return the stream name being visualized that is attached to meshShape showMetadata -query -stream "StreamOne" -listMembers; //Return the member names and types in the specified stream and member //The names and types are returned in pair, such as "MemberOne int32 MemberTwo float" showMetadata -query -stream "StreamOne" -member "MemberOne" -dataType "int32" -method; //Return the visualization method of the visualized StreamOne and MemberOne showMetadata -query -stream "StreamOne" -member "MemberOne" -dataType "int32" -listValidMethods; //Return the valid visual methods of the activated stream and member that can be set showMetadata -query -stream "StreamOne" -member "MemberOne" -dataType "int32" -range; //Return the current range of visible metadata showMetadata -query -stream "StreamOne" -member "MemberOne" -dataType "int32" -auto; //Return the current state of the auto flag