Page 1 of 1

Uniform Layer Scale (new script)

Posted: Mon Sep 05, 2005 2:01 am
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.

Posted: Mon Sep 05, 2005 9:05 am
by ulrik
Thanks a lot rylleman! :D

Posted: Mon Sep 05, 2005 9:55 am
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! :)

Posted: Mon Sep 05, 2005 10:46 am
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!

Posted: Mon Sep 05, 2005 10:47 am
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.

Posted: Tue Sep 13, 2005 7:01 am
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!

Posted: Tue Sep 13, 2005 11:08 am
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.

Re: Uniform Layer Scale (new script)

Posted: Tue Sep 13, 2005 11:58 am
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