Tool: Stacking Order/Raise Shape, Lower Shape (SOLVED)

Moho allows users to write new tools and plugins. Discuss scripting ideas and problems here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
thehunter08
Posts: 6
Joined: Sun Dec 19, 2010 4:40 am

Tool: Stacking Order/Raise Shape, Lower Shape (SOLVED)

Post by thehunter08 »

I was wondering if there is a script for Anime Studio Pro 7 to add a Raise/Lower Shape button for the Fill Tools Section. I know you can just go to the Draw Pad and select Raise/Lower Shape, but I want to function the same way when I was using Anime Studio Pro 5.

(I'm new here, I don't know if this topic is appropriate for this section)
Last edited by thehunter08 on Tue Dec 21, 2010 3:35 am, edited 1 time in total.
Mozbo
Posts: 97
Joined: Sun Nov 28, 2010 7:58 pm
Location: Colorado Springs
Contact:

Post by Mozbo »

If you check the User Manual, there's a keyboard shortcut for it ~ Click on a shape with the Select Shape tool, and then use the up/down arrow keys to move the shape forward or back. Hold down the Shift key while pressing the up/down arrow keys to move the shape to the top or bottom of a stack. (Pg 33-34)
~M
Change is inevitable, growth is optional.
Life is short, enjoy the adventure!
thehunter08
Posts: 6
Joined: Sun Dec 19, 2010 4:40 am

Post by thehunter08 »

That did help a little, but that didn't answer my question. I meant if there was a script to add a Raise/Lower Shape Button for the Tools tab/window or even if it's possible.
User avatar
PARKER
Posts: 1020
Joined: Sat Oct 25, 2008 4:26 am
Location: Animation World

Post by PARKER »

thehunter08 wrote:That did help a little, but that didn't answer my question. I meant if there was a script to add a Raise/Lower Shape Button for the Tools tab/window or even if it's possible.
I think this thread is ok here but you could have done it on the How Do I...? section as well, either section is ok, dont worry.

Of course its possible, there are several scripters here on the forum that are willing to help but i honestly think that what you suggest its not really nesessary.
I wonder why you want a button like that, i strongly suggest you to use shorcuts as Mozbo said.
Welcome to the forum :) .
Rudiger
Posts: 786
Joined: Sun Dec 18, 2005 2:25 am

Post by Rudiger »

Yes it's possible and quite straight-forward. Just bear in mind that the buttons will take up 2 spots on what you will come to view as valuable tool window real-estate. If you create the icons for the buttons I can create the lua files.
thehunter08
Posts: 6
Joined: Sun Dec 19, 2010 4:40 am

Post by thehunter08 »

That's not too difficult. I'll just take the two Icons from ASP5 and create resized ones. Thanks.
Rudiger
Posts: 786
Joined: Sun Dec 18, 2005 2:25 am

Post by Rudiger »

That's cool. I'll probably just take the AS5 button scripts and just change the format of the localize function call :).
Rudiger
Posts: 786
Joined: Sun Dec 18, 2005 2:25 am

Post by Rudiger »

thehunter08
Posts: 6
Joined: Sun Dec 19, 2010 4:40 am

Post by thehunter08 »

Well, the buttons show up with no lua errors, but it's not functioning. I press the button and the keyboard button that I assigned but nothing happened.
Rudiger
Posts: 786
Joined: Sun Dec 18, 2005 2:25 am

Post by Rudiger »

thehunter08 wrote:Well, the buttons show up with no lua errors, but it's not functioning. I press the button and the keyboard button that I assigned but nothing happened.
That's odd. I tried it in AS6 and it worked at my end. Are you definitely setting them to button in the _tool_list.txt file?
thehunter08
Posts: 6
Joined: Sun Dec 19, 2010 4:40 am

Post by thehunter08 »

Sorry... forgot to set the "tool" for button. Other than that, everything is working properly now. Thanks for the script, this will save me from a lot of headaches, I really appreciate this. :D
Rudiger
Posts: 786
Joined: Sun Dec 18, 2005 2:25 am

Post by Rudiger »

No problem. 'Tis the season, after all :D!
User avatar
funksmaname
Posts: 3174
Joined: Tue May 29, 2007 11:31 am
Location: New Zealand

Post by funksmaname »

Rudiger - sorry i've not been in touch - i'm insanely busy... but still lurking!

Have a Jolly Holiday Season. :)

p.s. i still dont get why it's easier to use buttons than the arrow keys! :P
Rudiger
Posts: 786
Joined: Sun Dec 18, 2005 2:25 am

Post by Rudiger »

funksmaname wrote:Rudiger - sorry i've not been in touch - i'm insanely busy... but still lurking!

Have a Jolly Holiday Season. :)

p.s. i still dont get why it's easier to use buttons than the arrow keys! :P
Yeah, I've been very busy too. I'm getting a couple of weeks off for Christmas, so hopefully will have the chance to try out some of the ideas I've had to shelve due to lack of time! One was an omni-bake button which can bake any arbitrary layer script to keys to get around the multi-core bug for AS7. I really want to play with AS7, but bugs like that, as well as no backward compatibility, with previous versions have kept me away from it.

Merry Christmas to you and everyone else on the forum!
Post Reply