Page 1 of 1

scripting commands

Posted: Sat Feb 16, 2013 7:20 pm
by agentorangeguy
Is there a document somewhere with all the commands to use in scripting? I am trying to change an object's shape in a script but cannot do it. I know how to change the frames of an object within a script but I don't know what to use to change it's shape. Anyone know?

Re: scripting commands

Posted: Sat Feb 16, 2013 8:43 pm
by Malignant Manor
In intrinsics, you use UI_set_item_frame. For scripting you use frame int_exp;

Seven Towers has examples for both ways.

Re: scripting commands

Posted: Sat Feb 16, 2013 11:52 pm
by agentorangeguy
I can set the frames, but I need to know how to change the object's actual shape from one to another within a script. I know the UI_set_item_shape intrinsic but is there a way to use that within a script?

Re: scripting commands

Posted: Sat Feb 16, 2013 11:59 pm
by Malignant Manor
Sorry, I misread. You probably have to create a function that changes the shape number of an object. Then you can call it from the script.

Re: scripting commands

Posted: Sun Feb 17, 2013 1:20 am
by agentorangeguy
ohhhh ok, i didn't think of that. I'll try that now, thanks!

Re: scripting commands

Posted: Sun Feb 17, 2013 12:44 pm
by marzo
The full range of commands allowed in a script is here.