FBX read-only in anim editor?

When exporting fbx s from 3DSmax to unity the anim sequences are “read-only” in the editor.

I am ok with not being able to edit fbx motion data in the editor but it is interfering with adding sequence triggers to the animations.

Any help or insight would be appreciated. Thanks.

Hi, welcome to the forum!

What do the sequence triggers need to do in the animations?

Existing animations in FBX files are marked read only when exported from Blender as well.

I was able to add an event marker to an existing animation, but not select the function it calls (or erase the event marker after I placed it).

I was able to add a new animation, and to add and edit AnimationEvents and keyframes to it the way I assume they would work with the existing animations as exported from Blender. This was using a Windows XP operating system, on a PC.

Thanks for the info.

I believe you are supposed to associat existing fbx anim sequences with a new anim sequence/.anim file? - that you create in the anim editor. The new anim seems to still be associated with the .anim file when the anim is re-opened in the editor…

Sequence triggers may trigger particles or sound (etc.) on specific anim frames…

Like you noted, imported animations are read-only. This is true for all imported animations, and the reason is that being able to modify them would not be a good idea since every re-import would overwrite the modifications, leaving the work wasted. The read-only state also means that animation events can’t be added either.

In order to be able to modify an animation clip (including adding animation events) you have to make a duplicate of the imported clip. You can copy and paste it inside Unity, or use Duplicate in the Edit menu.

Duplicated animation clips will no longer be linked to the original imported animation, so any changes made to the imported animation will not be reflected in the duplicated one. It’s possible though to make an editor script that will copy over all curves from one animation to another, which could be used to keep a duplicated animation in sync with the original.

Edit: I made such an editor script here:
http://answers.unity3d.com/questions/659/how-to-add-new-curves-or-animation-events-to-an-imported-animation

With Unity Pro, this could also be made as an asset import script.

2 Likes

If you was able to add animation events to an imported clip, that is actually a bug. I’d appreciate if you could write a bug report with reproduction steps on how to do it, using Help → Report a Problem in Unity.

Thanks,

Rune

I’ve been doing this for months in order to save prefabs with rigidbodies and shared materials, guess that was a pretty big clue as to what was going on with the animations. :roll:

I’ll try to do this, likely on Friday. Thanks for the explanation.

Actually I already found the bug myself and fixed it (for the next release). :slight_smile:

Rune

I made an editor script to do it here:
http://answers.unity3d.com/questions/659/how-to-add-new-curves-or-animation-events-to-an-imported-animation

It copies over all the curves from one clip to another. I’m not sure if that is what you asked for, but I think that is what the thread starter wanted.

Rune

No thanks needed, but if you found the question and answer helpful, you can vote it up on UnityAnswers to help make it easier for other people to find it in the future. UnityAnswers is great for that.

http://answers.unity3d.com/questions/659/how-to-add-new-curves-or-animation-events-to-an-imported-animation

Rune

1 Like

Would it be possible to save an Animation file ?

Not an AnimationClip, but a whole Animation component, containing already split AnimationClips, so that we just would have to Resources.Load it at runtime once, instead of putting as much AddClip as there are.

I know this is an old thread, and the workaround on here works, but it’s still pretty shoddy in my view, and I’m fairly sure Unity could fix this (they could store the events in another file associated with the .fbx).

I’ve put a suggestion on Unity Feedback here: http://feedback.unity3d.com/unity/all-categories/1/hot/active/adding-events-to-readonly-anim-

If this still bothers you, leave a vote on the feedback site!

2 Likes

I’m trying to remove the rotation of an animation that I downloaded from the Unity Store, but when I duplicate the original animation the copy is still labeled as “Read Only”. The duplication of the original animation did not unlock the duplicate for editing. Am I approaching this problem wrong or can someone guide me in the right direction. Thanks

This method no longer seems to work 4.6.2. Duplicated the asset containing animations, and the duplicate was still read only. I am allowed to remove events on the read only animations, but the next time I open Unity the deleted events reappear. Is there another way to edit FBX animations in the Unity animation editor? I am using non legacy animations. Thanks!

You need to duplicate just the animation clip sub-asset itself, not the whole model asset containing the animations.

2 Likes

got it thanks!

Runevision, a made a duplicate from the sub-asset animation clip as you said, but it remains read only…this method no longer works? thanks