Anim8or Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

An update to Anim8or, v1.00b, is available with a few bug fixes. Get your copy HERE. See the "ReadMe" file for details.

Pages: [1] 2

Author Topic: Linkin' FIGURE to BONE? Big DILEMMA...  (Read 1277 times)

daniel99

  • Sr. Member
  • ****
  • Posts: 316
  • Me : Anim8or RULLZ \m/
    • View Profile
Linkin' FIGURE to BONE? Big DILEMMA...
« on: May 26, 2017, 03:18:06 pm »

Scene mode: Let's say I need to make a cat grab a mouse and walk with it in its mouth. We have FIGURE1-cat and FIGURE2-mouse.
   Usually, I would animate the mouse position to follow the cat's head/mouth.
     But I wonder... is there a way to maybe link the mouse to the cat's head? We can link/parent objects and figures to each other'  positions in anim8or but in this care, I'll need to link the mouse figure to one specific bone: the cat's head.
The same problem would apply to a character grabbing a cup of coffee.
   Whoever got a solution for this problem gets a million dollars  :)
Logged

Steve

  • Administrator
  • Hero Member
  • *****
  • Posts: 1546
    • View Profile
Re: Linkin' FIGURE to BONE? Big DILEMMA...
« Reply #1 on: May 26, 2017, 03:55:57 pm »

This is one of the things that I wanted to do fro v1.0 but didn't get it finished. There are two components:

1. Animate the parent of an object.
2. Add reference to coordinate systems of individual bones, not just the base figure.

So if you wanted a character to throw a ball, the ball's parent is set to the characters hand, and the ball's motion is controlled by the hand. As his arm swings forward the ball's parent changes to the world and can be animated independently.

I'll be working on this this summer after visiting Italy for June.
Logged

daniel99

  • Sr. Member
  • ****
  • Posts: 316
  • Me : Anim8or RULLZ \m/
    • View Profile
Re: Linkin' FIGURE to BONE? Big DILEMMA...
« Reply #2 on: May 26, 2017, 06:14:31 pm »

Yes, would be great to set the hand (in this case) to be the parent of the ball. But I never found a way to set an individual bone as a parent to another figure.
I believe there's no script/code I could use that makes the 2nd figure follow one specific bone of the 1st figure?

I hope you'll have a great time in Italy. Been there twice and it's awesome, Rome, Malaga...though it's way too warm in the summer :D
Logged

nemyax

  • Full Member
  • ***
  • Posts: 215
    • View Profile
Re: Linkin' FIGURE to BONE? Big DILEMMA...
« Reply #3 on: May 26, 2017, 06:57:27 pm »

I believe there's no script/code I could use that makes the 2nd figure follow one specific bone of the 1st figure?
In theory, you should be able to:
Quote
Another useful property of Controller scripts is that they can refer to the value of other Controllers in Elements in the same Scene with the GetAttribute() functions
You'd need to transform the temp-parent bone's matrix to world space and then transform that to the temp-child's local space, and apply it. Don't know if that's actually doable in ASL.

Been there twice and it's awesome, Rome, Malaga
But Málaga's in Spain.
Logged

daniel99

  • Sr. Member
  • ****
  • Posts: 316
  • Me : Anim8or RULLZ \m/
    • View Profile
Re: Linkin' FIGURE to BONE? Big DILEMMA...
« Reply #4 on: May 26, 2017, 09:46:12 pm »

nemyax: Yeah...sounds like somethin' I won't be able to do...
A while back, Steve gave a script that makes a target control bones rotation, rotating eyes for example. I was hoping somethin' similar could be used to attach the target to a specific bone...
Yeah, sorry, that's Spain.  :)
Logged

Steve

  • Administrator
  • Hero Member
  • *****
  • Posts: 1546
    • View Profile
Re: Linkin' FIGURE to BONE? Big DILEMMA...
« Reply #5 on: May 26, 2017, 10:20:45 pm »

Unfortunately I don't think the basic calls are in ASL to return a bone's coordinate system. I've added it to the wish list for ASL so it won;t be forgotten.
Logged

thecolclough

  • Sr. Member
  • ****
  • Posts: 832
  • 3D Ignoramus 1988-2002, Anim8or User 2002-present.
    • View Profile
    • www.mattghc.com
Re: Linkin' FIGURE to BONE? Big DILEMMA...
« Reply #6 on: May 26, 2017, 11:22:15 pm »

This is one of the things that I wanted to do fro v1.0 but didn't get it finished.
...
I'll be working on this this summer after visiting Italy for June.
something to look forward to in Anim8or v1.1!  8)
Logged

daniel99

  • Sr. Member
  • ****
  • Posts: 316
  • Me : Anim8or RULLZ \m/
    • View Profile
Re: Linkin' FIGURE to BONE? Big DILEMMA...
« Reply #7 on: May 27, 2017, 07:42:16 am »

Steeve: Thanks! :D
Logged

daniel99

  • Sr. Member
  • ****
  • Posts: 316
  • Me : Anim8or RULLZ \m/
    • View Profile
Re: Linkin' FIGURE to BONE? Big DILEMMA...
« Reply #8 on: May 27, 2017, 08:24:06 am »

Sorry, Steve! I've just remembered something.
Dunno if it's a bug but...
       Let's say I have the cat figure with 5 IK chains (4legs and head). I go in scene mode and make an animation. Then I want to add another IKchain for the tail, let's say. I go back in figure mode and create it. When trying to animate the new IKchain in the same scene, it won't work. And also, resets after a preview render.
     All 6IKchains (original 5 + the new one) work just fine only if I import the figure in a NEW scene.
Logged

Steve

  • Administrator
  • Hero Member
  • *****
  • Posts: 1546
    • View Profile
Re: Linkin' FIGURE to BONE? Big DILEMMA...
« Reply #9 on: May 27, 2017, 08:50:35 pm »

daniel99: This looks like a bug. I probably need to rebuild the controller list or some related structure. I'll look into it.

#100-009 - Adding IK chain to existing IK animated figure doesn't work correctly.
Logged

daniel99

  • Sr. Member
  • ****
  • Posts: 316
  • Me : Anim8or RULLZ \m/
    • View Profile
Re: Linkin' FIGURE to BONE? Big DILEMMA...
« Reply #10 on: May 28, 2017, 12:41:34 am »

Steve: That's weird, but I think I found the solution....after I made the new IKchains, I saved the project and closed anim8or. When I opened the project again, it worked. All IKchains in the original scene.

Btw, some features I noticed would ease the workflow:
-the possibility to rearrange the layers. Usually it comes like: "Scene01/Wprld/Camera/Light01/Light02/Light03/Figure01"
When I'm working on my laptop, and the screen being smaller, it would be great to be able to drag the figure on top, like "Scene01/World/Figure01/Camera/Loghts...."

- Sometimes I need to use the same cam position or lights. It would be great to be able to copy objects/lights/cam pos from one scene to another...

-dragging the keyframes in the timeline, like select/ then M+LEftClick&Drag for example.....

-a way to select all the keyframes. If I have a longer scene, like 20sec, there's no way to select all the keyframes.

-Could you add on the list for updates a...displacement map?

-and my old wish...a way to have the character's feet keep its orientation when locked on the ground. Like in this gif example someone posted a few months back...
Logged

Steve

  • Administrator
  • Hero Member
  • *****
  • Posts: 1546
    • View Profile
Re: Linkin' FIGURE to BONE? Big DILEMMA...
« Reply #11 on: May 28, 2017, 10:19:03 pm »

When you add the new IK chain and go into the Scene editor, exactly how are you trying to animate it? I tried this and everything I try with the IK tool works:

1. Without locking the effector:
 a. Click on the handle to select to new chain,
 b. Click drag the effector around.
 c. Move to other frames and do the same.

2. By locking the new chain:
  a. Double click on the handle and lock the effector.
  b. Click-drag the effector in different frames, etc.
Logged

Steve

  • Administrator
  • Hero Member
  • *****
  • Posts: 1546
    • View Profile
Re: Linkin' FIGURE to BONE? Big DILEMMA...
« Reply #12 on: May 28, 2017, 10:43:48 pm »

Quote
-dragging the keyframes in the timeline, like select/ then M+LEftClick&Drag for example.....
Interesting idea. Currently the normal Ctrl-C, and Ctrl-X, keys copy and cut keys for the selected controllers, and Ctrl-V pastes them relative to the selected frame. So you can select frames 10-20 and some controllers, Copy/Cut them, and select another starting frame where you want to paste them.

Since click-dragging on the time track selects a range of frames using that to move the keys in the Move tool would be inconsistent. How about RMB Click-Drag, or Ctrl LMB Click-Drag to move keys?

Quote
- Sometimes I need to use the same cam position or lights. It would be great to be able to copy objects/lights/cam pos from one scene to another...
Also an interesting idea. Currently Ctrl+Sh+C and Ctrl+Sh+V copy and paste materials between different objects in the Object Editor. How about using those for copy/paste of element keys between scenes? If the names of the element and controller match then the keys would be pasted starting at the selected frame in the second scene.

Quote
-and my old wish...a way to have the character's feet keep its orientation when locked on the ground. Like in this gif example someone posted a few months back...
I worked on this a fair amount last fall but I couldn't get to working in a general manner. When you are trying to lock both the position and angle it's tricky because sometimes you can do one or the other exactly but not both. This can become really complicated when one IK chain is the parent of another.

I also want to add constraints such as Y >= 0 (i.e. don't let the feet do through the floor) which should be easier but I ran into problems. Probably just wasn't taking the right approach. I'll visit these again later on this year.

Quote
-a way to select all the keyframes. If I have a longer scene, like 20sec, there's no way to select all the keyframes.
I'll come up with a good way to do this.
Logged

daniel99

  • Sr. Member
  • ****
  • Posts: 316
  • Me : Anim8or RULLZ \m/
    • View Profile
Re: Linkin' FIGURE to BONE? Big DILEMMA...
« Reply #13 on: May 29, 2017, 01:29:26 pm »

Quote
1. Without locking the effector:
 a. Click on the handle to select to new chain,
 b. Click drag the effector around.
 c. Move to other frames and do the same.

2. By locking the new chain:
  a. Double click on the handle and lock the effector.
  b. Click-drag the effector in different frames, etc.
Yes, that's exactly how I do it. Maybe it happened because I have quite a few IKchains, but as long I can save and reopen and it works just fine I don't mind.

Quote
How about RMB Click-Drag, or Ctrl LMB Click-Drag to move keys?
      Maybe Ctrl LMB Click-Drag. I'm lefthanded. That would work for me better  :) :) :)
      I use Ctrl+X&Ctrl+V often, But yeah, a way to drag the selected frames would be awesome and useful.
Quote
Currently Ctrl+Sh+C and Ctrl+Sh+V copy and paste materials between different objects in the Object Editor. How about using those for copy/paste of element keys between scenes?
That would be just PERFECT  :)

Quote
I also want to add constraints such as Y >= 0 (i.e. don't let the feet do through the floor) which should be easier but I ran into problems. Probably just wasn't taking the right approach. I'll visit these again later on this year.

     Perhaps also using a key combination would be easier? When moving a character with its feet locked, and also hold down a key, that would keep the feet previous orientation and prevent going through the floor.

Quote
I'll come up with a good way to do this.
Thanks!





Logged

chuft-captain

  • Newbie
  • *
  • Posts: 41
    • View Profile
Re: Linkin' FIGURE to BONE? Big DILEMMA...
« Reply #14 on: May 30, 2017, 03:29:24 am »

      Maybe Ctrl LMB Click-Drag. I'm lefthanded. That would work for me better  :) :) :)
Sorry to jump into this thread as I haven't been following it, however I noticed this comment and thought it worth mentioning that allowances for left-handedness are better handled in the mouse-configuration options of the OS where you should be able to reverse the meaning of LMB and RMB on your computer. (This shouldn't be a consideration in the design of the application.)
I guess you almost certainly already know about this and were just joking about designing for left-handedness.  :)

Regards
CC
« Last Edit: May 30, 2017, 03:30:14 am by chuft-captain »
Logged
Pages: [1] 2