MAXScript Extensions > MAXScript Extensions for Particle Flow > Particle Flow Interfaces > Interfaces >

# Interface: PViewItem

Methods:

    <integer><PViewItem>.numPViewParamBlocks()

Returns the number of Particle View ParameterBlocks.

    <maxObject><PViewItem>.getPViewParamBlock <index>index

Returns the indexed Particle View ParameterBlocks.

    <bool><PViewItem>.hasComments <node>actionNode

Returns true when the supplied action node has comments.

    <string><PViewItem>.getComments <node>actionNode

Returns the comment of the specified action node as string.

    <void><PViewItem>.setComments <node>actionNode <string>comments

Sets the comment of the specified action node to the supplied string.

EXAMPLES AND RESULTS:
    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!"

This Interface is available in:

Age_Test : Helper Birth : Helper Birth_Group : Helper BirthGrid : Helper Birth_Script : Helper BirthStream : Helper Cache_Disk : Helper Cache_Selective : Helper Camera_Culling : Helper Camera_IMBlur : Helper Collision_Spawn : Helper Data_Icon : Helper Data_Operator : Helper Data_Test : Helper DeleteParticles : Helper | displayParticles : Helper Event : Helper Find_Target : Helper Force : Helper Go_To_Rotation : Helper Keep_Apart : Helper mapping : Helper Material_Dynamic : Helper Material_Frequency : Helper Material_Static : Helper mP_Buoyancy : Helper mP_Collision : Helper mP_Drag : Helper mP_Force : Helper | mP_Glue : Helper mP_InterCollision : Helper mP_Shape : Helper mP_Solvent : Helper mP_Switch : Helper Notes : Helper PF_Source : GeometryClass Position_Icon : Helper Position_Object : Helper renderParticles : Helper rotation : Helper scaleParticles : Helper Scale_Test : Helper Script_Test : Helper | Script_Operator : Helper Send_Out : Helper shapeStandard : Helper Shape_Facing : Helper Shape_Instance : Helper Shape_Mark : Helper Spawn : Helper speed : Helper Speed_Test : Helper Speed_By_Surface : Helper Spin : Helper Split_Selected : Helper Split_Source : Helper Split_Amount : Helper

#### See Also

- Particle Flow Interfaces