How to use link for reload animations


https://forum.reallusion.com/Topic541136.aspx
Print Topic | Close Window

By Connorclass - 2 Years Ago
What is the best way to do this- I want the right hand to be attached to the gun trigger handle. Then I need the left hand to grab the magazine clip and move it with the hand. Here is the problems I ran into. If I use the attached feature to the right hand that disables the link feature for the left hand to grab the magazine. And same goes for using the right hand to link to the gun won’t allow me to use a different link for the left hand to grab the magazine
By Connorclass - 2 Years Ago
Here is a video to show.
I first link the gun to the right hand, I then baked the animation so I can unlink the right hand but the animation is saved . I then go to frame where my left hand would be grabbing the magazine. I can’t link the magazine to left hand or any reach target. How do I grab the magazine?

https://drive.google.com/file/d/1Fls8CeinVNTQkBSfSaUdKdUb5xPJFok8/view?usp=sharing
By 4u2ges - 2 Years Ago
Lets think about it. You want to detach a prop, which is attach to another prop as a sub-prop and do it on a timeline.
But Attach/Detach does not work with timeline. So essentially you may not link anything to the sub-prop, that is why it's grayed out.
What you do, is LINK "detachable" parts of the gun in the first place instead of attaching them (magazine in this case).

Then when time comes, you unlink it from the gun and link to the hand at the same time.
Hand moves down, places magazine in the pouch/pocket at which point you unlink it from the hand and link to the nearest bone (spine).. and so on.....

By Connorclass - 2 Years Ago
Thanks for reply. So I’m trying to see it in my head. So I have the gun with sub props,I need to remove the magazine from this parent( the gun) then link it to the gun. Then at the part of reload , link the magazine to the left hand and so on like your said.

- how do I separate a sub prop from main gun in cc4( I can do this in other 3d software but it is another step)

- I can still have the right hand linked to handle? Or in this case the right hand can use the attached feature since I would not be detaching the right hand?

Thanks for the help
By michaelrbarton - 2 Years Ago
Are you using one animation for that part? Would breaking the animation into smaller clips help you? If you right click on the animation in the timeline, you can break it up and still use it like a whole clip. I don't know if something like that would help you.
God Bless!
By 4u2ges - 2 Years Ago
 how do I separate a sub prop from main gun in cc4( I can do this in other 3d software but it is another step)

It is already separated by mesh and automatically attached to Vector when you import it. In other words all gun pieces are sub-props and attached to the root prop Vector.
Go to frame 1, detach magazine in its "Attach" properties and link it back to Vector in "Linkage" properties.
By Connorclass - 2 Years Ago
Yes that makes sense. thanks
By Connorclass - 2 Years Ago
4u2ges (9/2/2023)
 how do I separate a sub prop from main gun in cc4( I can do this in other 3d software but it is another step)

It is already separated by mesh and automatically attached to Vector when you import it. In other words all gun pieces are sub-props and attached to the root prop Vector.
Go to frame 1, detach magazine in its "Attach" properties and link it back to Vector in "Linkage" properties.



whats the best way to save the separated magazine position in relation to the overall gun? so then i can copy and past that value when i need to put it back to the gun

https://drive.google.com/file/d/1BBsQWhjkWxbxWVlBkJCiHBraIXeV_-Ko/view?usp=sharing
By 4u2ges - 2 Years Ago
Duplicate magazine at frame 1. Attach one copy permanently to the gun and hide it.
Now when you reload, enable visibility to the reference magazine and animate the hand the way that actual magazine matches the position of reference just before you unlink from hand and link back to the gun.

If you wish a 100% precision, match with hand as close as possible, then at the same time you unlink it from the hand create a transform key for the main magazine.
Then scroll a couple of frames and use Align tool to match the position of the linked in respect to the attached magazine.
Tip: use different color for the reference for an easy match.
By Connorclass - 2 Years Ago
Sounds good, thanks
By Connorclass - 2 Years Ago
Connorclass (9/5/2023)
4u2ges (9/2/2023)
 how do I separate a sub prop from main gun in cc4( I can do this in other 3d software but it is another step)

It is already separated by mesh and automatically attached to Vector when you import it. In other words all gun pieces are sub-props and attached to the root prop Vector.
Go to frame 1, detach magazine in its "Attach" properties and link it back to Vector in "Linkage" properties.



whats the best way to save the separated magazine position in relation to the overall gun? so then i can copy and past that value when i need to put it back to the gun

https://drive.google.com/file/d/1BBsQWhjkWxbxWVlBkJCiHBraIXeV_-Ko/view?usp=sharing











Ok I got the link down how you described. I only have 2 more things. I couldn’t get the mag to go to the original spot when hand is bringing the new clip. I tried using transform key but since the overal gun moved I can’t get the exact reference from the first detachment.

The other thing is I can’t seem to bake the entire timeline animation to one. Here is what I’m trying to do, back in untity I have the player with the same gun I was animating in iClone.( the player is made in cc4 so all bones are identical). The gun is a child of the right hand iof player, that is just how the weapon system works in my game. What I was trying to do is fix a reload animation for that specific gun in iClone then export out the animation for unity. I figured since the gun names have not changed my néw animation should animated the player along with the specific gun( detach clip etc.)

I really appreciate your time and sorry for the novice questions
By 4u2ges - 2 Years Ago
You'd have to export a character with the gun and a magazine (you may select both and export FBX).
And then figure how to remove an imported character without disrupting gun animation in Unity (can't help you there).

But here is an improvised practical example on how to link a magazine (clip) throughout the animation and match initial magazine pose.
I have already animated a character/reach with the gun. And I have added a second magazine for visual reference only.


By Connorclass - 2 Years Ago
thanks for the video, this makes sense.
By Connorclass - 2 Years Ago
Connorclass (9/7/2023)
Connorclass (9/5/2023)
4u2ges (9/2/2023)
 how do I separate a sub prop from main gun in cc4( I can do this in other 3d software but it is another step)

It is already separated by mesh and automatically attached to Vector when you import it. In other words all gun pieces are sub-props and attached to the root prop Vector.
Go to frame 1, detach magazine in its "Attach" properties and link it back to Vector in "Linkage" properties.



whats the best way to save the separated magazine position in relation to the overall gun? so then i can copy and past that value when i need to put it back to the gun

https://drive.google.com/file/d/1BBsQWhjkWxbxWVlBkJCiHBraIXeV_-Ko/view?usp=sharing











Ok I got the link down how you described. I only have 2 more things. I couldn’t get the mag to go to the original spot when hand is bringing the new clip. I tried using transform key but since the overal gun moved I can’t get the exact reference from the first detachment.

The other thing is I can’t seem to bake the entire timeline animation to one. Here is what I’m trying to do, back in untity I have the player with the same gun I was animating in iClone.( the player is made in cc4 so all bones are identical). The gun is a child of the right hand iof player, that is just how the weapon system works in my game. What I was trying to do is fix a reload animation for that specific gun in iClone then export out the animation for unity. I figured since the gun names have not changed my néw animation should animated the player along with the specific gun( detach clip etc.)

I really appreciate your time and sorry for the novice questions










I have one thing left that needs help, then I’m done asking questions lol. The mag that is outside the gun objext and outside of avatar will not include its animation track just one overall animations with everything baked in. So Unity would see 2 animation tracks. What I need is everything under the aviator so when I export it is one animation file with all objects. Do you know a way to bring in the linked mag into avatar? Or can you copy its transform key frames and paste to the reference mag that is inside the gun object? Then I could delete the linked mag and use the reference msg and that would be in the hiarcky

Video here in link
https://drive.google.com/file/d/1IChfxyFscKw5YvCEQ-kZ3zg_oCxOXs1_/view?usp=drivesdk