Get and set properties with MaxScript...

I’ve been digging through the documentation for clues on how to easily do this, but so far I haven’t found anything. On the page thinkboxsoftware.com/krak-ma … rop-names/ the description reads

…but I can’t find anything on the actual page beyond how to get the property names, and detailed descriptions on what each property does. Can anyone tell me how to get and set the values?

Never mind, got the answer by looking at KrakatoaGUI.ms

FranticParticles.getProperty "Matte:UseMatteObjects" FranticParticles.setProperty "Matte:UseMatteObjects" "true"

It would be helpful to have this included in the documentation, especially since it’s a fairly unconventional way of doing stuff like this.

The documentation of the interface has been here since v1.0:
thinkboxsoftware.com/krak-fr … -interfac/

Recently, we added a MAXScript function that is similar to getPropNames(), but returns an array of our own string properties currently defined in KrakatoaGUI.ms:

FranticParticleRenderMXS.getPropNames Obsolete:{#include|#skip|#only}

The Obsolete: flag lets you include, exclude, or return only the obsolete property names. Obsolete properties are properties that were used in previous versions of Krakatoa but are not being used by the renderer anymore. They are left in the definition for backwards compatibility (so old scenes can load correctly), and in some cases are read by MAXScript functions to convert old unsupported values to the new ones.

So you could for example print all properties by calling:

for i in FranticParticleRenderMXS.getPropNames() do format "% = %\n" i (FranticParticles.GetProperty i)