.gmacfx

a dead simple scripting language for gmac.

name: example effect
category: example category 

command: example_gmic_command
params:
integer: int[50]{1...100}
float: float[50.3]{1...100}
boolean: bool[true]
menu: menu[0]{option 0, option 1}
point: point[x,y]
0,1

command: example_next_gmic_command
params:
...

name

a unique name for your effect.

category

determines which submenu the effect should be a member of.
gmac has the following built-in categories:

if you give your effect a category that does not exist, it will be created.

command

any gmic command.

params

a command’s parameters.


parameters

locked

0,5,2.5

creates no interface.

numeric

float[default value]{minimum...maximum}
int[default value]{minimum...maximum}

creates a slider interface.

boolean

bool[default]

creates a toggle interface.

menu

menu[default index]{option 0, option 1}

creates a menu interface.

point

point[default x value, default y value]

creates a point interface.

note on point parameters


helpers

%

normalizes parameters
float[0.5]%
float[0.5]{0...1}
int[50]%
int[50]{0...100}
point[50,50]%
0.5,0.5