AWS Thinkbox Discussion Forums

newbie: maxscript syntax for Save Particle Channels?

Hello friends, I’m doing a minor cross-post from the Frost forum because I think this might be a good place to ask; I hope that’s ok?

I’m looking to add some code to a script I’m using for sending the ‘Save Particles To Disk’ job to Deadline.

Currently the script works ok, but it doesn’t seem to respect what I see in the Save Channels list on the right side; so when Frost is looking for an orientation channel it isn’t there…even though I see it listed there if I open the Krakatoa main interface.

I am casting around for the syntax/code I need for this. I’ve been able to find

franticParticles.GetRenderParticleChannels()

but I’m not seeing any code I could use to make sure that my script will submit the job with the channels I want. Cany anybody point me in the right direction? I’m such a newbie I’m not even sure I’m asking intelligent questions yet. :slight_smile:

Any and all advice is greatly appreciated.

Just to clarify - the function you listed

FranticParticles.GetRenderParticleChannels()
returns what channels the Renderer feels like allocating in memory at render time based on the features you have enabled in the UI or via MAXScript.
In other words, by default is returns

FranticParticles.GetRenderParticleChannels() --> #(#("Position", "float32", 3), #("Color", "float16", 3), #("Lighting", "float16", 3), #("Density", "float16", 1))
because Position, Color and Density are always allocated, and Lighting is on.

But if you turn on Motion Blur for example, you will get

FranticParticles.setProperty "EnableMotionBlur" "true" FranticParticles.GetRenderParticleChannels() --> #(#("Position", "float32", 3), #("Color", "float16", 3), #("Lighting", "float16", 3), #("Velocity", "float16", 3), #("Density", "float16", 1))
because Velocity is needed to calculate motion blur. If you jitter it, another channel shows up:

FranticParticles.setProperty "JitteredMotionBlur" "true" FranticParticles.GetRenderParticleChannels() --> #(#("Position", "float32", 3), #("Color", "float16", 3), #("Lighting", "float16", 3), #("Velocity", "float16", 3), #("Density", "float16", 1), #("MBlurTime", "float16", 1))
and so on…

The correct methods for the saving channels were described in the other post here: forums.thinkboxsoftware.com/vie … 89&t=14022

Privacy | Site terms | Cookie preferences