I’m getting into pflow scripting for a certain task, but am having trouble with the differences between regular maxscript and pflow scripts.
-
How do i call a function from a callback without putting the function within the callback itself!?
-
Why can’t I have global variables outside of the callbacks?
-
I’m choosing random positions along a spline to position the particles at frame 0, but the position changes every time the script is evaluated, where I thought random used a constant seed. This probably has to do with me calling it from the callback rather than a function (see problem 1). This is far easier to solve however, just use the particle index and normalize, vs using random 0 1.
Any input would be appreciated.