Sound Script -Audio Layer Wiggle

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

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
User avatar
Shanty Baba
Posts: 57
Joined: Mon Apr 23, 2007 11:25 am
Location: St Ives, UK
Contact:

Sound Script -Audio Layer Wiggle

Post by Shanty Baba »

At present this script moves the layer in the Y axis based on the audio file selected. I want to move the layer in the X axis.

Is this possible?
Cheers,
Shanty
User avatar
hayasidist
Posts: 3509
Joined: Wed Feb 16, 2011 8:12 pm
Location: Kent, England

Post by hayasidist »

copy the file lm_layersound.lua to (say) lm_layersoundx.lua in (e.g.)

C:\Program Files\Smith Micro\Anime Studio Pro 7\scripts\menu\Sound

and edit the new file to replace the line that says

newOffset.y = newOffset.y + amp * self.magnitude
with
newOffset.x = newOffset.x + amp * self.magnitude
(or anything else you fancy!)

plus change the id so it's not confusing in the menu... oh wtf - it's quicker to do it ..... here you go.

http://www.mediafire.com/?pnwfzkeh2y3963u

copy this file to the right directory and enjoy the x wiggle ...
User avatar
Shanty Baba
Posts: 57
Joined: Mon Apr 23, 2007 11:25 am
Location: St Ives, UK
Contact:

Post by Shanty Baba »

hayasidist,

A thousand and one thanks for that. Just what I wanted and it is going to save me stacks of time.

I'm one happy person.
Cheers,
Shanty
User avatar
hayasidist
Posts: 3509
Joined: Wed Feb 16, 2011 8:12 pm
Location: Kent, England

Post by hayasidist »

happy to help! glad it works for you.
Post Reply