DV Tween Machine v1.0

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

Moderators: Víctor Paredes, Belgarath, slowtiger

User avatar
davoodice2
Posts: 381
Joined: Tue Jun 15, 2021 1:14 pm

DV Tween Machine v1.0

Post by davoodice2 »

This is my previous Tween machine script with some improvements.
1- add preset buttons
2- add tweek buttons (firstly apply percentage with one of options you with and next use tweeks button to add 1 by 1 (or 2 by 2 if hold alt.))
3- remove unnecessary options.

*use Alt while pressing presets , applies reverse values (eg 5 >>> -5)
*use Alt while pressing tweek applies tweeks with doubled value.

U can change preset buttons count and value of preset in script easily (just see line 117 and 118)
Image

Image

DOWNLOAD
https://www.mediafire.com/file/dlv71283 ... 1.rar/file


Thanks to Alexandra Evseeva's for Great Functions he has created. and Lukas for shiny Icon.
Last edited by davoodice2 on Sun Jan 23, 2022 1:40 pm, edited 12 times in total.
خیام اگر ز باده مستی خوش باش
با ماهرخی اگر نشستی خوش باش
چون عاقبت کار جهان نیستی است
انگار که نیستی چو هستی خوش باش
User avatar
synthsin75
Posts: 9973
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: Tween machine

Post by synthsin75 »

Start here: https://mohoscripting.com/classes/AnimChannel
Values are by channel type:
AnimBool
AnimColor
AnimString
AnimVal
AnimVec2
AnimVec3

All of them have a .value property.
Daxel
Posts: 996
Joined: Wed Mar 27, 2019 8:34 pm

Re: Tween machine

Post by Daxel »

Hmm I'm not totally sure what do you mean by tween machine but I'm interested.
User avatar
davoodice2
Posts: 381
Joined: Tue Jun 15, 2021 1:14 pm

Re: Tween machine

Post by davoodice2 »

Daxel wrote: Sat Sep 04, 2021 10:58 am Hmm I'm not totally sure what do you mean by tween machine but I'm interested.
search google "tween machine" script. its a necessary tool of most maya animators.
خیام اگر ز باده مستی خوش باش
با ماهرخی اگر نشستی خوش باش
چون عاقبت کار جهان نیستی است
انگار که نیستی چو هستی خوش باش
User avatar
davoodice2
Posts: 381
Joined: Tue Jun 15, 2021 1:14 pm

Re: Tween machine

Post by davoodice2 »

synthsin75 wrote: Sat Sep 04, 2021 9:19 am Start here: https://mohoscripting.com/classes/AnimChannel
Values are by channel type:
AnimBool
AnimColor
AnimString
AnimVal
AnimVec2
AnimVec3

All of them have a .value property.
how to create slider? I tried but nothing happened.it appears like a little line
خیام اگر ز باده مستی خوش باش
با ماهرخی اگر نشستی خوش باش
چون عاقبت کار جهان نیستی است
انگار که نیستی چو هستی خوش باش
User avatar
hayasidist
Posts: 3522
Joined: Wed Feb 16, 2011 8:12 pm
Location: Kent, England

Re: Tween machine

Post by hayasidist »

davoodice2 wrote: Sat Sep 04, 2021 1:49 pm how to create slider? I tried but nothing happened.it appears like a little line
https://mohoscripting.com/classes/LM_Slider

BUT ....
davoodice2 wrote: Sat Sep 04, 2021 11:33 am search google "tween machine" script. its a necessary tool of most maya animators.
have you considered moho's native blend morphs?
User avatar
davoodice2
Posts: 381
Joined: Tue Jun 15, 2021 1:14 pm

Re: Tween machine

Post by davoodice2 »

hayasidist wrote: Sat Sep 04, 2021 4:12 pm
davoodice2 wrote: Sat Sep 04, 2021 1:49 pm how to create slider? I tried but nothing happened.it appears like a little line
https://mohoscripting.com/classes/LM_Slider

BUT ....
davoodice2 wrote: Sat Sep 04, 2021 11:33 am search google "tween machine" script. its a necessary tool of most maya animators.
have you considered moho's native blend morphs?
I see that. but I don't know how to use it. thanks if tell mee how to create slider
No blend morph is not tween machine
خیام اگر ز باده مستی خوش باش
با ماهرخی اگر نشستی خوش باش
چون عاقبت کار جهان نیستی است
انگار که نیستی چو هستی خوش باش
User avatar
synthsin75
Posts: 9973
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: Tween machine

Post by synthsin75 »

davoodice2 wrote: Sat Sep 04, 2021 6:41 pm
hayasidist wrote: Sat Sep 04, 2021 4:12 pm
davoodice2 wrote: Sat Sep 04, 2021 1:49 pm how to create slider? I tried but nothing happened.it appears like a little line
https://mohoscripting.com/classes/LM_Slider
I see that. but I don't know how to use it. thanks if tell mee how to create slider
Maybe post what you've tried so far.
User avatar
davoodice2
Posts: 381
Joined: Tue Jun 15, 2021 1:14 pm

Re: Tween machine

Post by davoodice2 »

synthsin75 wrote: Sat Sep 04, 2021 8:42 pm
davoodice2 wrote: Sat Sep 04, 2021 6:41 pm
I see that. but I don't know how to use it. thanks if tell mee how to create slider
Maybe post what you've tried so far.
I want to create slider GUI on tool bar like button
خیام اگر ز باده مستی خوش باش
با ماهرخی اگر نشستی خوش باش
چون عاقبت کار جهان نیستی است
انگار که نیستی چو هستی خوش باش
User avatar
synthsin75
Posts: 9973
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: Tween machine

Post by synthsin75 »

davoodice2 wrote: Sun Sep 05, 2021 8:48 am
synthsin75 wrote: Sat Sep 04, 2021 8:42 pm Maybe post what you've tried so far.
I want to create slider GUI on tool bar like button
Again, if you post the code you've tried, maybe we can help you figure out what you're doing wrong.
User avatar
davoodice2
Posts: 381
Joined: Tue Jun 15, 2021 1:14 pm

Re: Tween machine

Post by davoodice2 »

synthsin75 wrote: Sun Sep 05, 2021 11:18 am
davoodice2 wrote: Sun Sep 05, 2021 8:48 am
synthsin75 wrote: Sat Sep 04, 2021 8:42 pm Maybe post what you've tried so far.
I want to create slider GUI on tool bar like button
Again, if you post the code you've tried, maybe we can help you figure out what you're doing wrong.
:D :D
I forgot to adjust the length
خیام اگر ز باده مستی خوش باش
با ماهرخی اگر نشستی خوش باش
چون عاقبت کار جهان نیستی است
انگار که نیستی چو هستی خوش باش
chucky
Posts: 4650
Joined: Sun Jan 28, 2007 4:24 am

Re: Tween machine

Post by chucky »

That sounds like a useful tool indeed Davoodice2, saves using beziers on every bone.
How did you go with it, did it work?
User avatar
davoodice2
Posts: 381
Joined: Tue Jun 15, 2021 1:14 pm

Re: Tween machine

Post by davoodice2 »

chucky wrote: Wed Sep 22, 2021 3:35 am That sounds like a useful tool indeed Davoodice2, saves using beziers on every bone.
How did you go with it, did it work?
yes it works :wink:
خیام اگر ز باده مستی خوش باش
با ماهرخی اگر نشستی خوش باش
چون عاقبت کار جهان نیستی است
انگار که نیستی چو هستی خوش باش
Daxel
Posts: 996
Joined: Wed Mar 27, 2019 8:34 pm

Re: Tween machine

Post by Daxel »

davoodice2 wrote: Wed Sep 22, 2021 1:04 pm
yes it works :wink:
I just tried it a little bit. It's pretty amazing, very handy for the overshoots like you said. I'm loving it.

davoodice2 wrote: Sat Sep 04, 2021 9:10 am
Recommendation:
ignore string channel
ignore hidden bone
selected bones only
I didn't understand this. What is a string channel? Does the tool have these three options? I don't see them. The "selected bones only" option would be very cool to make the overshoots of only certain bones.

Thanks for sharing.
User avatar
davoodice2
Posts: 381
Joined: Tue Jun 15, 2021 1:14 pm

Re: Tween machine

Post by davoodice2 »

Daxel wrote: Thu Sep 23, 2021 12:50 am
davoodice2 wrote: Wed Sep 22, 2021 1:04 pm
yes it works :wink:
I just tried it a little bit. It's pretty amazing, very handy for the overshoots like you said. I'm loving it.

davoodice2 wrote: Sat Sep 04, 2021 9:10 am
Recommendation:
ignore string channel
ignore hidden bone
selected bones only
I didn't understand this. What is a string channel? Does the tool have these three options? I don't see them. The "selected bones only" option would be very cool to make the overshoots of only certain bones.

Thanks for sharing.
those parameters are for actual ae_key_tools.I used them in my function. you can find them on middle combo box. slider and percentage text box and ok are for tween machine
خیام اگر ز باده مستی خوش باش
با ماهرخی اگر نشستی خوش باش
چون عاقبت کار جهان نیستی است
انگار که نیستی چو هستی خوش باش
Post Reply