メソッド:
<integer><PViewItem>.numPViewParamBlocks()
Particle View ParameterBlock の数を返します。
<maxObject><PViewItem>.getPViewParamBlock <index>index
インデックスで指定された Particle View ParameterBlock を返します。
<boolean><PViewItem>.hasComments <node>actionNode
指定されたアクション ノードにコメントが含まれている場合は、true を返します。
<string><PViewItem>.getComments <node>actionNode
指定されたアクション ノードのコメントを文字列で返します。
<void><PViewItem>.setComments <node>actionNode <string>comments
指定されたアクション ノードのコメントを、指定された文字列に設定します。
例と結果:
ParticleFlow.openParticleView() --open Particle View to see results ev = Event() --create an empty event --> $Event:Event 002 @ [0.000000,0.000000,0.000000] particleFlow.beginEdit() --Disable auto-event-encapsulation --> OK bt = birth() --A Birth Action! --> $Birth:Birth 001 @ [0.000000,0.000000,0.000000] particleFlow.endEdit() --Enable auto-event-encapsulation --> OK ev.appendAction bt --Insert the Birth in the Event --> true ev.numPViewParamBlocks() --Check the number of PBlocks --> 0 ev.hasComments bt --Check for comments - none --> false ev.setComments bt "Happy Birthday!" --Set a comment... --> OK ev.getComments bt --...and read it back --> "Happy Birthday!"
このインタフェースは下記で使用できます。