Particle_View - superclass: helper super-superclass:node - classID: #(1962490631, 515064576)
Instances of this internal class are created by Particle Flow when using the particleFlow.OpenParticleView() method and represent the Particle View. See particleFlow Global Interface for details.
Not creatable by MAXScript.
Get/Set the name of the Particle View.
Get/Set the origin of the Particle View in screen pixel coordinates relatively to the upper left corner of the desktop.
Get/Set the width of the Particle View in pixels
Get/Set the height of the Particle View in pixels
Get/Set the location of the divider of the Particle View.
Controls the visibility of the Parameters panel at the right side of Particle View.
Controls the visibility of the Action Depot at the bottom of Particle View.
Controls the visibility of the Action Description in the bottom right corner of Particle View.
When set to 1, shows the Particle Count. Controls the checked state of the Particle View>Options>Track Update>Particle Count menu item.
When set to 1, shows the Action Update. Controls the checked state of the Particle View>Options>Track Update>Update Progress menu item.
When set to 1, Particle View uses Dynamic names. Controls the checked state of the Particle View>Options>Use Dynamic Names menu item.
Examples and Results:
--Open a Particle View
pv = particleFlow.openParticleView()
$Particle_View:Particle View 01 @ [0.000000,0.000000,0.000000]
pv.Origin = [100,0,0]
pv.Origin = [0,0,0]
--Get the current size of the Particle View
--Set the size of the Particle View to 800 x 600
pv.Width = 800
pv.Height = 600
--Move the divider down to set Depot height to 100 pixels
pv.Divider = [1,100,0]
pv.Show_Particle_Count = 1
pv.Show_Action_Update = 1
pv.Use_Dynamic_Names = 0
The following MacroScript will open the Particle View on the right half of the desktop. If you are using a Dual Monitor setup with a single desktop on both monitors, this will open Particle View on the right monitor!
category: "Particle View"
buttontext: "PView Half"
tooltip: "Open Particle View on Right Half of Desktop"
-- open Particle View, get the Particle View object
-- get desktop size
winsize = getMaxWindowSize()
-- set Origin of PView to half desktop width and 0 height
pv.origin = [winsize.x/2, 0,0]
-- set Width to half desktop width
pv.width = winsize.x/2
-- set Height to full desktop height
pv.height = winsize.y
particleFlow Global Interface
Particle View Access