Is there any way in the script to specify what the random number generator spits out for the waveshapes/colormaps/flowfields that it displays? It would be nice to have control over this so it looks the same every time.
If the answer is no, is this a good idea for a future feature?
specifying values for rnd() in the script
Moderators: BTT, andy55, b.dwall, juxtiphi
Re: specifying values for rnd() in the script
You can... check out srand():dklr wrote:Is there any way in the script to specify what the random number generator spits out for the waveshapes/colormaps/flowfields that it displays? It would be nice to have control over this so it looks the same every time.
If the answer is no, is this a good idea for a future feature?
http://www.soundspectrum.com/g-force/Do ... mming.html
For example:
Code: Select all
A2="123"
B8="srand( A2 )" // Set the random seed
C0="rnd( 1 )" // C0 will always be the same random sequence
C1="srand( A2 )" // reset the random seed (the return value isn't used)
C2="rnd( 1 )" // C2 will be always be the same sequence as C0
Good luck,
Andy
I don't think that you can pass any parameters to a config from a script other than those listed in the documentation, i.e. morph time etc.
You could copy each wave/flow etc to a new name enclosed in parenthesis (so G-Force ignores them in slideshow mode), and put the seed value in or just change the random numbers to a fixed number, as in the example change C0="rnd( 1 )" to C0=".75";
You could copy each wave/flow etc to a new name enclosed in parenthesis (so G-Force ignores them in slideshow mode), and put the seed value in or just change the random numbers to a fixed number, as in the example change C0="rnd( 1 )" to C0=".75";