scripting commands list?

Discussion forum for G-Force users

Moderators: BTT, andy55, b.dwall, juxtiphi

Post Reply
adam12
Posts: 9
Joined: Thu Dec 01, 2005 5:35 pm

scripting commands list?

Post by adam12 »

hey great product... stumbled onto this morning and pretty much wasted my whole day at work playing with it. :lol:

i'd like to learn more about customizing - i've been poking around the forums and browsing all the examples for hints, but is there a definitive commands list somewhere i can use for reference?

can't wait to get home to install on a better machine and plug it into my mixer... :wink:

User avatar
JayPro
Posts: 738
Joined: Sat May 01, 2004 10:51 pm
Location: Huntington Station, Long Island, New York

Post by JayPro »

I don't believe there's anything you're looking per se for in the Customization section of the Web docs.

However, the program has a Scripts folder which of course contains examples of what you can do with this aspect of GF programming.

At first blush it may look like a mere repository of scripts; but some of the examples in the folder are heavily commented on to show you how to do carry forth the most important things you'll need to know.
"God is syntax."

willrob
Posts: 199
Joined: Fri Apr 29, 2005 1:44 pm

Post by willrob »

I think a "G-Force For Dummies" is long overdue.

adam12
Posts: 9
Joined: Thu Dec 01, 2005 5:35 pm

Post by adam12 »

well i went ahead and purchased platinum this morning... so now i'm a registered user i can start making demands right? :P

the comments in the scripts folder are helpful, but the info is all spread out and not really easy to find at a quick glance... what i was hoping to get was just a small list of commands and what they do to help me get started... not necessarily an indepth tutorial on how to make your own waveshapes and such - although that would be nice too! :wink:

like the 'example script' is helpful, but does it contain all the commands that are available to me?

i can even start it...

stdout( "text" ); //prints text to screen - not really to be used, but helpful for seeing timing for scripts

SetSlideShow( CONFIG_WAVESHAPE | CONFIG_COLORMAP | CONFIG_FLOWFIELD | CONFIG_SPRITE | CONFIG_PARTICLE, false ); //turns slideshows on and off

SetWaveShape( "Simple Vertical", 0 ); //what do the numbers do?

SetColorMap( "Hero", 0 );

SetFlowField( "Right Turn", 0 );

SetNextFlowField( "Noise", "", 34, 5 ); //see CTRL 3.txt

SetWaveShape( "Rotating Arcs", 6 + rnd(4) ); //oooooo, math...

StartParticle( "Spinning Plane" );

StartRandomParticle();

StartSprite( "sprite" ); //is there a corresponding StopSprite?

StartOverlayText( "text", 18, 10, 3, 0, -.8 ); //this one doesn't actually work...

what else is there?

User avatar
chkman
Posts: 329
Joined: Mon Aug 08, 2005 12:36 pm
Location: Greensburg, PA

Post by chkman »

what else is there?
You've covered most of the bases. There is the run script command.
Run("Example",0)
Put it in a script that you can run, say "CTRL 1.txt" and that's how you run the example script. You can also put it at the end of a script to start itself over again and again. I use it in a script to call separate scripts for colors, waves etc.
what do the numbers do?
For flows it controls how long G-Force has to calculate in the background before changing to that flow. If the time is too short it can cause a pause in the display. For the wave I think it's how long to morph into the next wave. For the sprites and particles it's how long they will display (no StopSprite).
6 + rnd(4) ); //oooooo, math...
That didn't work for me when I tried it. I should try it again.

Never tried StartOverlayText. But you can make a text sprite to display words.
SetNextFlowField( "Noise", "", 34, 5 );
You can put the name of a flowfield union in between the "" and the 2nd number determines how long it will take to morph into the new flowfield.

For StartSprite there is a third parameter. Please see this topic for the details. http://forums.soundspectrum.com/viewtopic.php?t=746

titofromtx
Posts: 1
Joined: Fri Feb 06, 2009 1:57 pm
Location: USA

Post by titofromtx »

willrob wrote:I think a "G-Force For Dummies" is long overdue.
I totaly agree with you
Cuthberto Pruneda

Post Reply