Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Section

Value Expression Item


Anchor
valueExpression
valueExpression

UI Text Box
typeinfo

The Value Expression Item is the lowest level operator. It expects no sub-expressions but can be converted to a Math Expression by selecting it with the right mouse button in the Conditions Tree.

The Value Expression Item returns a raw number which can be either the value of a Particle Channel or a Texture for a given particle of the Phoenix Simulator, a manually-specified number in a certain range or the distance between a given particle and an object in the scene.

Section
Column
width10%

Column
width80%

Image Removed Image Added

Column
width10%



Numberval_typeval_number – returns the specified value.

Random Betweenval_type, val_rand_min, val_rand_max – returns a random number in the selected range. Note: a different value is generated for each particle of the Simulator. The value also changes for every frame.

Channelval_type, val_chan_part – returns the value of the specified Simulator Particle Channel for the current particle. You must have this particle channel enabled in the Output rollout of your Simulator. The Channel can be one of: [ Size ], [ Age ], [ Viscosity ], [ RGB Red ], [ RGB Green ], [ RGB Blue ], [ Velocity X ], [ Velocity Y ], [ Velocity Z ], [ Speed ]. You can find out more about the usual grid channel ranges in Phoenix here.

Distance To Mesh |   val_typeval_dist_node – returns the distance from the current particle to the surface of the specified object. Will be positive if the particle is outside the object volume, and will be negative if the particle is inside the object volume. The distance is in simulation grid voxels.Note: currently you can only pick polygon meshes - measuring  

Distance To Particle val_type, val_dist_to_part_list – returns the distance from the current particle to

a

the nearest particle from the particle systems specified in the From field. The distance is in simulation grid voxels. You can specify multiple particle systems in the From field by using commas between each one e.g. Drag,Foam,Splashes.

Particles in Radius | val_num_part_in_dist_rad, val_num_part_in_dist_list – returns the particle count of the particle systems specified in the From field in a

particle system is currently not supported

radius from the current particle. The radius is in simulation grid voxels. You can specify multiple particle systems in the From field by using commas between each one e.g. Drag,Foam,Splashes.

Intensity Of val_typeval_tex – returns the specified texture's color intensity in the position of the current particle. The Phoenix Simulator has no Explicit UV coordinates therefore you should add the texture as a projection (right click on a texture in the "Create Render Node" window → Create as Projection) for this to work. For more information on texture mapping in Phoenix, please check the Texture mapping, moving textures with fire/smoke/liquid, and TexUVW page.



Section

Compare Expression Item


Anchor
compareExpression
compareExpression

UI Text Box
typeinfo

The Compare Expression Item evaluates to true if the specified condition is valid based on the provided sub-expressions. Otherwise, it evaluates to false.

To create a Compare Expression Item in the Conditions Tree, right-mouse-button click either on a Logic or a Compare expression and select "Replace with: New Comparison".

Section
Column
width10%

Column
width80%

Column
width10%



Compare Type | comp_type – Sets the comparison type to perform:

When set to "Is Greater Than", the Compare expression for a given particle will be true when the first Math/Value expression item should return a value larger than the second.

When set to "Is Less Than", the Compare expression for a given particle will be true when the first Math/Value expression item should return a value smaller than the second.

When set to "Is Equal To", the Compare expression for a given particle will be true when both Math/Value expression items evaluate to the same number.

...