question

Bruno Ricardo BM avatar image
0 Likes"
Bruno Ricardo BM asked Bruno Ricardo BM commented

Bone animation questions

Greetings everyone.

I wanted to make an animation in which the operator takes different pieces and performs some animation with the piece in hand. Try to create an object which would be surrate and also be parent to bone. The problem is that the object did not allow me to put both options.


So what I did to solve this was to use only parent to bone and when the operator takes the part I hide the content of the operator and make the component visible.


Basically the operation is as follows (Operator's Triggers)

On reset: switch_hideshape (current.find ("> visual / drawsurrogate"). First, 0);

On load: witch_hideshape (current.find ("> visual / drawsurrogate"). First, 0);

On Unload:

switch_hideshape (current.find ("> visual / drawsurrogate"). first, 0);


So is there an easier way to get the operator to do some animation with the object in hand?

Why can't the component be surragate and path to bone?


I attach the model and a capture of the result of how it looks what I managed to do.

The last part has to do with the bone animation.

I modified the animation for WalkLoaded, making one arm down. The problem is that if I paused the model and restarted it while loading a part, the operator appears with a crooked arm, but if I paused and restarted when the operator had already unloaded the part, it appeared fine in the hand.


Example when I paused and restard when the operator was loaded.

Example when I paused and restard when the operator was unloaded.

Thanks for your time.

animation.fsm


FlexSim 20.1.2
flexsim 20.1.2bone animations
1597278425983.png (357.4 KiB)
1597278482977.png (347.1 KiB)
1597278536808.png (436.9 KiB)
animation.fsm (34.6 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

·
Phil BoBo avatar image
1 Like"
Phil BoBo answered Bruno Ricardo BM commented

For your surrogate component, just put it inside the component that is parented to the bone. Then hide the parent component.

To get the arm to go down when resetting, add a keyframe with reset bone positions to the Stand animation.

animation_1.fsm


· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Bruno Ricardo BM avatar image Bruno Ricardo BM commented ·

Thank you so much!

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.