Peak and Smooth tools fix please

Wondering how to accomplish a certain animation task? Ask here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
User avatar
DK
Posts: 2896
Joined: Mon Aug 09, 2004 6:06 am
Location: Australia

Peak and Smooth tools fix please

Post by DK »

I use the peak and smooth tools CONSTANTLY when drawing in AS....and in 6 they can only be accessed when the curvature tool is selected. I much rather them be in a fixed position in the main tools menu, not placed at the top of the CURVATURE sub menu.

Right now I am still using 5.6 because drawing in AS6 is way too slow

Is there a way to change these tool positions with AS6's Lua script?

Thanks
D.K
User avatar
Víctor Paredes
Site Admin
Posts: 5818
Joined: Wed Jan 26, 2005 12:18 am
Location: Barcelona/Chile
Contact:

Post by Víctor Paredes »

Control+P and Control+M works on AS 6.

Anyway, I took the AS 5 peak and smooth tools and put on AS6 script folder, then assigned their respective commands.
Image Image Image Image Image Image
Moho co-owner

Previously Rigged animation supervisor: My father's dragon, Wolfwalkers & Star Wars Visions "Screecher's Reach"
My personal Youtube Channel
User avatar
DK
Posts: 2896
Joined: Mon Aug 09, 2004 6:06 am
Location: Australia

Post by DK »

Hi Selg.
Thanks for the help but unfortunately using Ctrl+p or Ctrl+m on my Laptop requires me to use both hands. So that means I have to let go of the mouse everytime I want to use the peak and smooth tools. That's even more a pita than having to switch menus with the mouse.

I would like to know more about how you changed your interface if possible? :)

Cheers
D.K
User avatar
Víctor Paredes
Site Admin
Posts: 5818
Joined: Wed Jan 26, 2005 12:18 am
Location: Barcelona/Chile
Contact:

Post by Víctor Paredes »

I just copied the files lm_peak.lua and lm_smooth.lua from the 5.6 script folder to the 6.1 script folder.

Then I added this lines to the _tool_list.txt:

Code: Select all

button	lm_smooth		M
button	lm_peak		P
Just a question, don't you have installed any new/modified script on your computer?
Image Image Image Image Image Image
Moho co-owner

Previously Rigged animation supervisor: My father's dragon, Wolfwalkers & Star Wars Visions "Screecher's Reach"
My personal Youtube Channel
User avatar
patricia3d
Posts: 726
Joined: Thu May 31, 2007 4:38 am
Location: India
Contact:

Post by patricia3d »

Hi Selgin. I have copied Both Files in ASP6's Script\tool directory and modifed the file as you told. Now when I start ASP61P I get this error

Image
User avatar
Víctor Paredes
Site Admin
Posts: 5818
Joined: Wed Jan 26, 2005 12:18 am
Location: Barcelona/Chile
Contact:

Post by Víctor Paredes »

Oh, yes, sorry Kkrawal and DK, the same thing happens to me, but I just move that window off of the screen and everything works fine. I know it's not the best solution, but at least I haven't had any problem.
Image Image Image Image Image Image
Moho co-owner

Previously Rigged animation supervisor: My father's dragon, Wolfwalkers & Star Wars Visions "Screecher's Reach"
My personal Youtube Channel
Genete
Posts: 3483
Joined: Tue Oct 17, 2006 3:27 pm
Location: España / Spain

Post by Genete »

It seems that LM has changed the Localize script interface (for the translated versions of AS). Ignore it is safe but you can tweak the files (at your own risk of break something) by using same syntax than the new ones.
-G
User avatar
Rai López
Posts: 2294
Joined: Sun Aug 08, 2004 1:41 pm
Location: Spain
Contact:

Post by Rai López »

Yeah, sometimes the "Lua Console Window" gives you enough info to start to experiment and the cool thing is that, in simple cases like this one (or the "ipairs" errors), simply comparing working files that fill your needs and although you have no idea of how scripting thing works, you have high possibilities of success! Over all if you first make a backup of your original files... Anyway, I have simply eliminated the "Localize" item (like in many other tools that actually works just fine) and, although I'm not sure if that is the best way, it's the quickest and it seems to solve the problem. So, you can try to do it better by yourself (and maybe we'll learn something) or download the modified tools pressing... :arrow: HERE!

And, as always we are fighting with buttons, don't forget to add the follow lines to the "_tool_list.txt" to make'em work properly and take care that no shorcut is used twice (like the in the "P" for the Paint Bucket Tool case, i.e.):

Code: Select all

button	lm_smooth	M
button	lm_peak	P
Of course you can choose any other unused letter, if still there is someone... BYE!
...
User avatar
Víctor Paredes
Site Admin
Posts: 5818
Joined: Wed Jan 26, 2005 12:18 am
Location: Barcelona/Chile
Contact:

Post by Víctor Paredes »

Thank you, Ramón!
Now there is no more lua window on my computer. I have to recognize that, even when all were ok, I was afraid some day that little lua window betray me :roll:
Image Image Image Image Image Image
Moho co-owner

Previously Rigged animation supervisor: My father's dragon, Wolfwalkers & Star Wars Visions "Screecher's Reach"
My personal Youtube Channel
User avatar
DK
Posts: 2896
Joined: Mon Aug 09, 2004 6:06 am
Location: Australia

Post by DK »

Thanks guys.
Vern also made me a copy of those scripts yesterday. There were a couple lines of code in them that were reduntant in AS6 hence the lua errors. Thanks to Ramon for posting them for everyone to use.

Cheers
D.K
User avatar
Rai López
Posts: 2294
Joined: Sun Aug 08, 2004 1:41 pm
Location: Spain
Contact:

Post by Rai López »

...Jasp! :o Hmmm, that heyvern a step ahead even absent :x

Well, you are welcome guuuys! :)
...
User avatar
DK
Posts: 2896
Joined: Mon Aug 09, 2004 6:06 am
Location: Australia

Post by DK »

...Jasp! Hmmm, that heyvern a step ahead even absent
Hehe...I have him on Skype :)
I personally know he has been extremely busy but he assures me is still 100 percent AS :) and asks me about the forum all the time. I had a hard time finding a couple minutes of his time just to sort out this problem.

As for now I hope, Ramon, you do not get too busy for the forum. We need all the help we can get!

Cheers
D.K
Post Reply