setScript()

Sets a control script to a graphical attribute.

Synopsis

int setScript(string scriptstr);

Parameters

Parameter Description
scriptstr Control script

Return value

0, in the event of an error -1.

Errors

incorrect/missing argument

Description

Sets a control script to a graphical attribute of the object just opened in the attribute editor. The function setScript() may only be called from panels that were opened in GEDI with openDialog() from scripts of the attribute editor.

Example

main()
{
  setScript("main(){DebugN(123);}");
}

Assignment

Simple configuration

Availability

UI