Versions Compared

Key

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

...

BIN files from standard SPH emitters also carry this bit. When it is set 12 the particle has been added by the “Sheeter” daemon. This way it is possible to separate the main body of fluid from freshly added particles.

 The “Mask” channel is supported by RealFlow's “Graphs”, our node-based, visual programming engine, and Python. With the help of the “IntegerBitValue” node you are able to read out this bit value, create a mask to filter the particles, and shift them to individual emitters, for example. In Python, the mask bit can be accessed as follows:

...

Code Block
linenumberstrue
maskId = HY_Bubbles01.getChannelId( "mask" )
mask = particle.getChannelValue( maskId )
isFoam = (mask&(1<<9)) != 0

 

 

...