Anim8or Community

General Category => Anim8or v1.0 Discussion Forum => Topic started by: Kevin Gales on November 26, 2022, 04:54:16 am

Title: Feature request - Sliders..Multiple sliders
Post by: Kevin Gales on November 26, 2022, 04:54:16 am
[Feature request]
I would love to see sliders for morph targets like a window that shows all morph targets sliders for existing morph targets.
That would be game changing...
 8)

Technical :
This should be easy to achieve.. In my experiment(as shown on picture) I get the value of the slider when the slider moves then update morph value on slider release.. but this only works for one morph at a time since well it's just window automation
Title: Re: Feature request - Sliders..Multiple sliders
Post by: ianross on November 27, 2022, 11:23:28 am
Good idea Kevin, this would be very useful.
Title: Re: Feature request - Sliders..Multiple sliders
Post by: johnar on November 28, 2022, 05:10:40 am
 the graph editor allows you to change morph values in real time by sliding key(s) up and down.  8)
 ...just saying... ;)
Title: Re: Feature request - Sliders..Multiple sliders
Post by: Kevin Gales on November 28, 2022, 06:11:01 am
Actually I was looking at the graph editor when I thought of sliders...the graph editor can be cluttered(Multiple keys looks like a mess,unless you disable all and do one morph at a time),lacks precision control(You cannot see the exact value as you move) and also it feels clunky to control the keys(Maybe because I am using a very wide screen with tiny GUI)...
I thought well the graph editor could just be replaced with sliders
Title: Re: Feature request - Sliders..Multiple sliders
Post by: johnar on November 29, 2022, 05:42:13 am
 Yes, i understand what you're saying.....(https://i.postimg.cc/bJ06Q94b/whitesmile.gif)
.....and It would be very cool  (https://i.postimg.cc/MGgks5sF/BigGrinW.gif)
Title: Re: Feature request - Sliders..Multiple sliders
Post by: Kevin Gales on November 30, 2022, 05:17:16 am
So I started treating targets like empties in Blender.. this is what happened...it seems after all we can get to control morph targets with ease..
Expressions update in real time which means basically anim8or is capable of physics(collision,particles and so on)

Video below look like some controls I am using in Blender  8)
Title: Re: Feature request - Sliders..Multiple sliders
Post by: Steve on December 01, 2022, 06:07:13 pm
You can do this in Anim8or. In the scene editor, add a target and controller script for a morph target that references that target's position. Here's an  example:

point3 $smile;
$smile = GetAttributePoint3("smile_target", "position");
$morph.smile = min(max($smile.x/100, 0.0), 1.0);

This uses the x coordinate of the target to control the morph. I've attached a project with targets for the "smile" and the "eyes closed" morphs.

Note: I can't attach the project it's too big. I'll make it smaller and repost.
Title: Re: Feature request - Sliders..Multiple sliders
Post by: Kevin Gales on December 03, 2022, 05:19:51 am
Thanks for the code Steve
I did the same thing however I used conditionals..well I read the ASL manual and.. I have to say the possibilities are endless...

Thanks for the one liner.
I changed the 100 to 10 so I move a distance of 10 and
0.0 to -1.0 since the morph is bidirectional and can go to extremes before looking awkward
 
Anyway I have already coded a program to automatically create a UI(like in the video) for all existing morph targets within a second..

ASL rocks!!