Page 1 of 1

Using embedded scripts

Posted: Mon Oct 16, 2006 11:02 am
by jahnocli
Up until now, I haven't used scripts much, but I've found a good reason to use one -- 7feet's "Master/Control bone" doo-dah. This is going to sound like a dumb question, but how do I use embedded scripts? I've tried installling the bone_control.lua and bone_master.lua in various script directories, but they just seem to copy the file names and attributes of any preceding script file in AS Pro...! Which seems a little weird...

I'm using Windows XP home on some generic-type 2 gig PC with 1 gig of memory.

Hope someone can help,

J

Posted: Mon Oct 16, 2006 11:24 am
by Rasheed
As the term says, you need to embed your script in a layer.

Image

In the layer's options, click on the Embedded script file check box, which opens a file dialogue box, with which you can select the .lua script file. The script file can be located anywhere you want, but I guess you'd prefer it to be in the same location as your AS project files (or in a scripts subdirectory), so it is easy to transfer to another computer (and to backup).

If you want to remove the embedded script from the layer, simply uncheck the same Embedded script file check box.

Posted: Mon Oct 16, 2006 2:35 pm
by jahnocli
Thanks, Rasheed!