Anim8or Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

Ian Ross has just released a book on Anim8or. It's perect for a beginner and a good reference for experienced users. It contains detailed chapters on every aspect, with many examples. Get your own copy here: "Anim8or Tutorial Book"

Author Topic: Feature request - Sliders..Multiple sliders  (Read 367 times)

Kevin Gales

  • Full Member
  • ***
  • Posts: 133
    • View Profile
Feature request - Sliders..Multiple sliders
« 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
« Last Edit: November 26, 2022, 06:59:49 am by Kevin Gales »
Logged

ianross

  • Full Member
  • ***
  • Posts: 223
  • Imagination is the elixir of life.
    • View Profile
    • https://www.tradebit.com/filedetail.php/164976574-part-1-anim8or-tutor-course
Re: Feature request - Sliders..Multiple sliders
« Reply #1 on: November 27, 2022, 11:23:28 am »

Good idea Kevin, this would be very useful.
Logged

johnar

  • Hero Member
  • *****
  • Posts: 1017
  • Make it, Move it--Give it Life
    • View Profile
    • youtube vids
Re: Feature request - Sliders..Multiple sliders
« Reply #2 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... ;)
Logged
%

Kevin Gales

  • Full Member
  • ***
  • Posts: 133
    • View Profile
Re: Feature request - Sliders..Multiple sliders
« Reply #3 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
« Last Edit: November 28, 2022, 06:20:50 am by Kevin Gales »
Logged

johnar

  • Hero Member
  • *****
  • Posts: 1017
  • Make it, Move it--Give it Life
    • View Profile
    • youtube vids
Re: Feature request - Sliders..Multiple sliders
« Reply #4 on: November 29, 2022, 05:42:13 am »

 Yes, i understand what you're saying.....
.....and It would be very cool 
Logged
%

Kevin Gales

  • Full Member
  • ***
  • Posts: 133
    • View Profile
Re: Feature request - Sliders..Multiple sliders
« Reply #5 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)
« Last Edit: November 30, 2022, 05:24:59 am by Kevin Gales »
Logged

Steve

  • Administrator
  • Hero Member
  • *****
  • Posts: 2075
    • View Profile
Re: Feature request - Sliders..Multiple sliders
« Reply #6 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.
« Last Edit: December 01, 2022, 06:08:51 pm by Steve »
Logged

Kevin Gales

  • Full Member
  • ***
  • Posts: 133
    • View Profile
Re: Feature request - Sliders..Multiple sliders
« Reply #7 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!!
Logged