Page 1 of 1

Sound Script -Audio Layer Wiggle

Posted: Tue Jun 14, 2011 3:58 pm
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

Posted: Sat Jun 18, 2011 1:55 pm
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 ...

Posted: Sat Jun 18, 2011 5:46 pm
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

Posted: Sun Jun 19, 2011 3:34 pm
by hayasidist
happy to help! glad it works for you.