Profile Picture

How to use link for reload animations

Posted By Connorclass 2 Years Ago
You don't have permission to rate!
1
2

Author
Message
4u2ges
4u2ges
Posted 2 Years Ago
View Quick Profile
Distinguished Member

Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)

Group: Forum Members
Last Active: Last Month
Posts: 5.3K, Visits: 16.8K
Not sure if this going to work with your animation in Unity, but works for me in Blender.
Bake constraint from Animation menu for the linked Clip and then attach it to avatars' RL_Bone_Root...
Otherwise you have to figure how to merge tracks in Unity.





Connorclass
Connorclass
Posted 2 Years Ago
View Quick Profile
Veteran Member

Veteran Member (533 reputation)Veteran Member (533 reputation)Veteran Member (533 reputation)Veteran Member (533 reputation)Veteran Member (533 reputation)Veteran Member (533 reputation)Veteran Member (533 reputation)Veteran Member (533 reputation)Veteran Member (533 reputation)

Group: Forum Members
Last Active: 8 Months Ago
Posts: 59, Visits: 346
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
Connorclass
Connorclass
Posted 2 Years Ago
View Quick Profile
Veteran Member

Veteran Member (533 reputation)Veteran Member (533 reputation)Veteran Member (533 reputation)Veteran Member (533 reputation)Veteran Member (533 reputation)Veteran Member (533 reputation)Veteran Member (533 reputation)Veteran Member (533 reputation)Veteran Member (533 reputation)

Group: Forum Members
Last Active: 8 Months Ago
Posts: 59, Visits: 346
thanks for the video, this makes sense.
4u2ges
4u2ges
Posted 2 Years Ago
View Quick Profile
Distinguished Member

Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)

Group: Forum Members
Last Active: Last Month
Posts: 5.3K, Visits: 16.8K
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.






Connorclass
Connorclass
Posted 2 Years Ago
View Quick Profile
Veteran Member

Veteran Member (533 reputation)Veteran Member (533 reputation)Veteran Member (533 reputation)Veteran Member (533 reputation)Veteran Member (533 reputation)Veteran Member (533 reputation)Veteran Member (533 reputation)Veteran Member (533 reputation)Veteran Member (533 reputation)

Group: Forum Members
Last Active: 8 Months Ago
Posts: 59, Visits: 346
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
Connorclass
Connorclass
Posted 2 Years Ago
View Quick Profile
Veteran Member

Veteran Member (533 reputation)Veteran Member (533 reputation)Veteran Member (533 reputation)Veteran Member (533 reputation)Veteran Member (533 reputation)Veteran Member (533 reputation)Veteran Member (533 reputation)Veteran Member (533 reputation)Veteran Member (533 reputation)

Group: Forum Members
Last Active: 8 Months Ago
Posts: 59, Visits: 346
Sounds good, thanks
4u2ges
4u2ges
Posted 2 Years Ago
View Quick Profile
Distinguished Member

Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)

Group: Forum Members
Last Active: Last Month
Posts: 5.3K, Visits: 16.8K
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.




Connorclass
Connorclass
Posted 2 Years Ago
View Quick Profile
Veteran Member

Veteran Member (533 reputation)Veteran Member (533 reputation)Veteran Member (533 reputation)Veteran Member (533 reputation)Veteran Member (533 reputation)Veteran Member (533 reputation)Veteran Member (533 reputation)Veteran Member (533 reputation)Veteran Member (533 reputation)

Group: Forum Members
Last Active: 8 Months Ago
Posts: 59, Visits: 346
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
Connorclass
Connorclass
Posted 2 Years Ago
View Quick Profile
Veteran Member

Veteran Member (533 reputation)Veteran Member (533 reputation)Veteran Member (533 reputation)Veteran Member (533 reputation)Veteran Member (533 reputation)Veteran Member (533 reputation)Veteran Member (533 reputation)Veteran Member (533 reputation)Veteran Member (533 reputation)

Group: Forum Members
Last Active: 8 Months Ago
Posts: 59, Visits: 346
Yes that makes sense. thanks
4u2ges
4u2ges
Posted 2 Years Ago
View Quick Profile
Distinguished Member

Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)

Group: Forum Members
Last Active: Last Month
Posts: 5.3K, Visits: 16.8K
 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.





1
2



Reading This Topic