Page 1 of 1

script question

Posted: Sun Feb 08, 2009 4:19 pm
by toonertime
i noticed that after i have placed a few of the
scripts, like the reverse frames script, in
the script tools file, in AS i get a little box
in the Other section of the tools with a
red X and a question mark. The script is
described but will not run. I have 3 scripts
like this. What am I doing wrong?

Posted: Sun Feb 08, 2009 5:11 pm
by synthsin75
You can just drop tool scripts in and they'll work, but button scripts need to be added to the _tool_list.txt file. You have to do this so that AS knows it is a button. Like this:
button <exact script file name> ...

Posted: Sun Feb 08, 2009 5:42 pm
by toonertime
i will give it a go. Thank you for all
your great guidance and feedback!

Posted: Sun Feb 08, 2009 5:47 pm
by toonertime
this was the file i put in the scripts/tools folder
cc_reverse_layer_keyframes

do i declare it a button?

Posted: Sun Feb 08, 2009 6:08 pm
by synthsin75
Had to look that one up, since I've never used it. But yeah, that's a button script, so you'd add it to the tool list as:
button cc_reverse_layer_keyframes ...
Note, the '...' can be replaced with any free shortcut key if you want. You can also just drop this into a 'menu' script folder to use it from there (ASPro only).

Also, if you're using Windows, scripts that immediately open a dialog will run twice if used as a button. Just cancel the second time it runs. :wink:

Posted: Sun Feb 08, 2009 6:58 pm
by toonertime
thanks for the advice on dropping it
into the menus script. It is a nice
script for reversing animation
automatically!