Probably you're familiar with 3DCoat's "Rooms" concept.
Scripts work in currently active Room.
You can activate certain Room in several ways.
That command will not only open the room, but also will allow you to tweak the room with the script:
Scripting in 3DCoat supports fluent-interface, so you may write required sequence of commnds in one line. For instance:
string getCommandLine();
DEPRECATED void SetGlobalVar(string& Name,string& Value)
DEPRECATED string GetGlobalVar (string& Name)
DEPRECATED string GetSceneFileName()
DEPRECATED void SetSceneFileName(string& Name)
void HighlightUIElement(string &ID, float time);
DEPRECATED void back(int steps=1);
DEPRECATED void open(string &Path);
DEPRECATED void ppp(string &path);
DEPRECATED void mv(string &path);
DEPRECATED void ptex(string &path);
DEPRECATED void imagemesh();
DEPRECATED void refmesh(string &path);
DEPRECATED void vertexpaint(string &path);
DEPRECATED void autopo(string &path);
DEPRECATED void repair(string &id);
DEPRECATED void bass();
DEPRECATED void undercut();
DEPRECATED void activate(string &id);
DEPRECATED void retopo();
DEPRECATED void retopopen();
DEPRECATED void ToRoom(string &name);
DEPRECATED bool IsInRoom(string &name);
DEPRECATED void AddNewVolume(string &name);
DEPRECATED void uv();
DEPRECATED void vox();
DEPRECATED void sphere(float x,float y,float z,float r,int mode);
DEPRECATED void cube(float x,float y,float z,float sizex,float sizey,float sizez,int mode);
DEPRECATED void surf();
DEPRECATED void cursurf();
DEPRECATED void voxelize();
DEPRECATED void mergeopt(string &opt);
mergeopt( "[voxelize=true][as_skin=true][skin=4.5]" );
DEPRECATED void merge(string &model);
DEPRECATED void prim(string &id);
DEPRECATED void apply();
DEPRECATED void ApplyAndKeepScale();
DEPRECATED void mapply();
DEPRECATED void recent3b();
DEPRECATED void Log(string &line);
int rand(int min,int max);
float randF(float min,float max);
void seed(int val);
DEPRECATED void ProgressBar(const string& message,int pos);
DEPRECATED void SetOrthoMode(bool value);