General Category > Anim8or v1.0 Discussion Forum

Feature request - Sliders..Multiple sliders

<< < (2/2)

Kevin Gales:
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)

Steve:
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.

Kevin Gales:
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!!

Navigation

[0] Message Index

[*] Previous page

Go to full version