GetCurvePercentageAtKnotIndex

詳細

指定のノットのカーブの長さの割合を取得します。

注: このコマンドは、出力引数を使用します。C# および一部のスクリプト言語(JScript、PerlScript、Python など)は、リファレンスによって渡される引数をサポートしていません。このため、状況に応じた適切な回避策を実行する必要があります。

スクリプト言語の場合、このコマンドは出力引数を取得するために使用できる ISIVTCollection を戻します。

C# の場合は、XSIApplication.ExecuteCommand メソッドを使用してこのコマンドを呼び出すことができます。ExecuteCommand は、出力引数を C# の System.Object (出力引数の Array を含む)にパック化します(詳細については、「C# からのコマンドの呼び出し」を参照)。

スクリプト構文

GetCurvePercentageAtKnotIndex( InputObj, Index, [Percentage] );

パラメータ

パラメータ タイプ 説明
InputObj 文字列 評価するカーブ
Index Integer ノットのインデックス。 ノットのインデックスは、0 から開始されます。
Percentage Double 指定のノットのカーブの長さの割合を戻します。

VBScript の例

'This example shows how to get the percentage with respect to the length of a curve.

newscene

dim perc

CreatePrim "Spiral", "NurbsCurve"	

'Get the percentage at the third knot (knot index = 2)

GetCurvePercentageAtKnotIndex "Spiral", 2, perc 

logmessage "Percentage is: " & perc

関連項目

GetCurveLength GetNumberOfKnots EvaluateCurveAt