Uniform Layer Scale (new script)

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

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
User avatar
rylleman
Posts: 750
Joined: Tue Feb 15, 2005 5:22 pm
Location: sweden
Contact:

Uniform Layer Scale (new script)

Post by rylleman »

Uniform Layer Scale works just like the original Layer Scale tool, with the addition of a tick-box that let you scale one axis numerical and have the others scale automatic to preserve the proportions of the layer.

To install, just put the files in the scripts/tool folder. If you want to replace the old scale layer tool, open _tool_list.txt and change "lm_scale_layer" to "DR_uni_scale_layer", else it will be put in the "Other" group in the Toolbar.

This is my first attempt at lua-scripting so the code might not look very pretty, but it's working as it should (at least I think so, I've been testing it quite a lot without finding any faults or bugs). Let me know if you find this useful.
User avatar
ulrik
Posts: 1087
Joined: Thu Aug 11, 2005 10:32 pm
Location: Stockholm Sweden
Contact:

Post by ulrik »

Thanks a lot rylleman! :D
User avatar
Rai López
Posts: 2294
Joined: Sun Aug 08, 2004 1:41 pm
Location: Spain
Contact:

Post by Rai López »

THANK YOU new scripter!!! (we really need you :) ) I asked for something like this in the past and is a very good new to me see like the dreams come true :D ...Only one thing, seems like the Rigth Mouse Button click and drag function in numerical box has a weird results, can be? Well, I'll go on trying, anyway... VERY GOOD JOB! :)
Last edited by Rai López on Tue Sep 13, 2005 2:46 pm, edited 1 time in total.
User avatar
Hiddicop
Posts: 250
Joined: Sun Nov 07, 2004 4:18 pm
Location: Sweden

Post by Hiddicop »

Only one thing, seems like the Rigth Mouse Button click and drag function in numerical box has a weird results, can be?
For me it works without any problem at all. What happens when you right-click and drag? (Gosh, I didn't even know about this click-n'-drag function until now. I've said it before, and I say it again; Moho is like the game Othello - I minute to learn, a lifetime to master. I thought for sure this time that I knew everything in moho, but I see now what a fool I've been...)


Thanks Rylleman for this great script!
Last edited by Hiddicop on Mon Sep 05, 2005 6:47 pm, edited 1 time in total.
User avatar
rylleman
Posts: 750
Joined: Tue Feb 15, 2005 5:22 pm
Location: sweden
Contact:

Post by rylleman »

Thank's for your response!
Ramón López wrote:Only one thing, seems like the Rigth Mouse Button click and drag function in numerical box has a weird results, can be?
oops... didn't notice that before. Well, I have to figure out why it's doing that and fix it.
User avatar
Rai López
Posts: 2294
Joined: Sun Aug 08, 2004 1:41 pm
Location: Spain
Contact:

Post by Rai López »

rylleman wrote: Well, I have to figure out why it's doing that and fix it.
oops... (too) I didn't see this post, so... :D THANK YOU!!! :D I wanted to "analize" the guts of your script to see what could I do with the other Scale Points tool, but now I'll wait to see what do you do with it :wink: , ejem! Always learning... :roll: CIAO!
User avatar
rylleman
Posts: 750
Joined: Tue Feb 15, 2005 5:22 pm
Location: sweden
Contact:

Post by rylleman »

Ramón López wrote: I wanted to "analize" the guts of your script to see what could I do with the other Scale Points tool
I haven't figured out yet how to fix this, but I have found some other bugs so the script isn't working quite as I'd expect (doesn't scale skeletons properly). Well, have to do a version 1.1 soon.
By all means, feel free to analyse as much as you like.
User avatar
mr. blaaa
Posts: 622
Joined: Sun Jul 31, 2005 12:41 am
Location: ---
Contact:

Re: Uniform Layer Scale (new script)

Post by mr. blaaa »

rylleman wrote:Uniform Layer Scale works just like the original Layer Scale tool, with the addition of a tick-box that let you scale one axis numerical and have the others scale automatic to preserve the proportions of the layer.
Thanks rylleman! :D
Image
Post Reply