Using embedded scripts

Wondering how to accomplish a certain animation task? Ask here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
User avatar
jahnocli
Posts: 3471
Joined: Fri Oct 29, 2004 2:13 pm
Location: UK

Using embedded scripts

Post 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
You can't have everything. Where would you put it?
User avatar
Rasheed
Posts: 2008
Joined: Tue May 17, 2005 8:30 am
Location: The Netherlands

Post 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.
User avatar
jahnocli
Posts: 3471
Joined: Fri Oct 29, 2004 2:13 pm
Location: UK

Post by jahnocli »

Thanks, Rasheed!
You can't have everything. Where would you put it?
Post Reply