Anime Studio Forum Forum Index Anime Studio Forum

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

more of a small feature implementation

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Anime Studio Forum Forum Index -> Moho 5
View previous topic :: View next topic  
Author Message
twistedanimator



Joined: 05 Sep 2004
Posts: 3

PostPosted: Sun Sep 05, 2004 8:44 pm    Post subject: more of a small feature implementation Reply with quote

I know the shortcuts for selecting points and moving/translating them are close together on the keyboard, but I do find it quite frustrating sometimes when i`m tracing or drawing a character in moho to change to a selection tool when I was in the move tool to select the new points (or add more points to a selection) and then go back to the move tool to make my adjustments and then change tool to select and on and on.

What I would like to see is the translate tool to take on some functions from the selection tool. For example middle mouse button working as a select point tool (either MMB clicking on a point or rectangle box selection) and shift and middle mouse button toggle point selection instead of the middle mouse button doing the same as the left which would be translate points.

Now I know it may sound a bit lazy as we all do like keyboard shortcuts and with version 4.6 I found one hand was constantly on the keyboard when drawing in moho. I just think with the tools already in moho that make it really easy and simple to draw detailed vector objects a simple implementation of something like this would make it even more intuitive. Maybe even use MMB over a line and left/up or right/down drag could straighten or curve the line.

What do others think, would something like this be of use to you. I myself would love to see this and had I known version 5 was in the works would have suggested it a long time ago. Also i`m not for one minute suggesting that tools are removed and implemented under mouse shortcuts but this added as another way of doing the same thing possibly quicker for people. I`m also aware that not all mac users have 3buttoned mice but these will most definatly be more common on desktop pcs (linux/windows).

Anyway that was my first initial thing with my 1/2 hour play.

Thanks for updating the software

Chris
Back to top
View user's profile Send private message
spasmodic_cheese



Joined: 04 Aug 2004
Posts: 330

PostPosted: Mon Sep 06, 2004 2:19 am    Post subject: Reply with quote

well thats the great thing about the LUA scripting, you can change that yourself.
Back to top
View user's profile Send private message
twistedanimator



Joined: 05 Sep 2004
Posts: 3

PostPosted: Mon Sep 06, 2004 10:03 am    Post subject: Reply with quote

Really thats fantastic, I guess the scripting is maybe similar to maya in that the whole of moho and its interface is just running a bunch of scripts. So when I click the move tool moho runs a the translate script.

Is there any documentation available from previous beta versions or is this still being worked on.

This upgrade is sounding like it will be very special and a massive leap forward cant wait to really spend some time using it.
Back to top
View user's profile Send private message
tknaps



Joined: 06 Aug 2004
Posts: 27
Location: Trondheim, Norway

PostPosted: Mon Sep 06, 2004 10:37 am    Post subject: Reply with quote

The scripting docs [quote=Lost Marble]"(...) will be coming sometime after the manual, and most likely after version 5 is released."[/quote]

See this thread:
http://www.lostmarble.com/forum/viewtopic.php?t=195

If you want to get started right away, check out Myles modification to the Lua Script API: http://www.lostmarble.com/forum/viewtopic.php?t=198
and check out the existing scripts in the scripts/ subdirectory.
_________________
Tarjei
Back to top
View user's profile Send private message MSN Messenger
7feet



Joined: 04 Aug 2004
Posts: 840
Location: L.I., New Yawk.

PostPosted: Mon Sep 06, 2004 1:00 pm    Post subject: Reply with quote

There are great opportunities for messing with the scripts, since LM was nice enough to make all the tools Lua. Even though I've broken a few things along the way, I've had fun diddling with the code in the tools while I'm trying to wrap my head around the scripting language. So far, the only tweak I've done that i really use is in the "curvature" tool, and it's dead simple. The tool uses a number to describe how sharp or rounded a point's arc is, e.g. .001 for a sharply angled point, and .3 for the standard rounded point. The standard maximum in the curvature tool is set to "2/3" ( in the "LM_Curvature:OnMouseMoved(moho, mouseEvent)" function of the tool, specifically the line "c = LM.Clamp(c, MOHO.PEAKED, 2/3)". I had done a bit of hand rearrangement of the text in .MOHO files in 4.6 and found some interesting results with using larger numbers, so I changed the line to "c = LM.Clamp(c, MOHO.PEAKED, 5 )". Sometimes setting the point curvature really high will give you some interesting results. Not quite a proper bezier adjustment, but handy for some things. I think it's just pretty dang spiffy that you can now customize to tools to your hearts content, and I suspect I'll be doing lot's of it once I'm up to speed in LUA. Kinda hard to find things to do since most of the tools seem to be pretty well written, but I am giving a shot at makiing the center point for the "rotate points" toll adjustable.

--Brian
Back to top
View user's profile Send private message Send e-mail Visit poster's website
myles



Joined: 21 Aug 2004
Posts: 823
Location: Australia, Victoria, Morwell

PostPosted: Wed Sep 08, 2004 9:35 am    Post subject: Reply with quote

Well, I'm not sure it's possible with the middle mouse button, but it should be possible to make e.g. Alt-LeftMouseButton toggle-select points while using the Translate tool. This would seem to be possible within the scripting API, and what's more, would work whether or not you have a 3-button mouse.

However, you're then back to using the keyboard again for the Alt key - unless you have a mouse driver that allows you to assign Alt-LMB to the middle button, which some do.

Would an Alt-LMB arrangement be a useful enough compromise ?

Regards, Myles.
Back to top
View user's profile Send private message Visit poster's website
twistedanimator



Joined: 05 Sep 2004
Posts: 3

PostPosted: Wed Sep 08, 2004 12:23 pm    Post subject: Reply with quote

The thought of being able to use the ALT key to allow me to toggle selections whilst in the translation tool would be great. I dont mind being on the keyboard just that I found it kinda strange that I would have to constantly change tools for something that could be implemented in the move tool. LUA seems to hold all the answers which is great, and the forum seems really buzzing with people who are willing to help and put in suggestions so i`m sure eventully I will have moho working exactly how I would like it. I think I will wait a while though with my experimenting until I understand LUA a bit better and for the official release with documents.

Chris
Back to top
View user's profile Send private message
myles



Joined: 21 Aug 2004
Posts: 823
Location: Australia, Victoria, Morwell

PostPosted: Mon Sep 13, 2004 7:03 am    Post subject: Reply with quote

twistedanimator wrote:
The thought of being able to use the ALT key to allow me to toggle selections whilst in the translation tool would be great.

Hi Chris,

I've put up a modified version of the Translate tool's Lua script at
http://www-personal.monash.edu.au/~myless/catnap/mohofiles/index.html
wherein Alt+LMB select-toggles individual points. No box selection or anything fancy.

Note: the last selected point cannot be de-selected in this version - use the Enter key for deselecting everything.

Warning: this hasn't had much testing or review, use at your own risk - back up your existing translate script before overwriting it with this one.
Only tested with a Windows version of beta 3.

Regards, Myles.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Anime Studio Forum Forum Index -> Moho 5 All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group