Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Splitting animation clips on 3d model doesn't work. #25599

Closed
jonbonazza opened this issue Feb 4, 2019 · 5 comments · Fixed by #40274
Closed

Splitting animation clips on 3d model doesn't work. #25599

jonbonazza opened this issue Feb 4, 2019 · 5 comments · Fixed by #40274

Comments

@jonbonazza
Copy link
Contributor

I wasn't able to find an existing issue that matches this one, so apologies if this exists already.

Anyway, I have a model exported from Blender using the Better Collada Exporter and exported with animations. The problem is that there is only one "animation action" defined in Blender broken up by keyframes. (i.e. 1-20 is Idle, Attack is 141-160, etc..). I'm trying to split this animation track at import by specifying various clips. The problem is that this doesn't seem to be working as intended. I will show my workflow using images below, along with the results.

If I import the model as-is without separating the aniamtion track into clips, I get the following animation:

anim1

As you can see, all animation clips are defined in one single armature animation.

Now, If I re-import using the following:

anim_flow1

I get the following resulting animation:

anim2

Which obviously isn't correct. Furthermore, if you inspect each of the "values" in the animation, they are all the same:

anim3

I've tried playing with the frames in the import setting (i.e. setting the range from 0-19 instead of 1-20) but it doesn't seem to make a difference.

Is this a bug or am I doing something wrong?

@Juankz
Copy link
Contributor

Juankz commented Feb 27, 2020

Gonna update some info here. Clips are not working for DAE, GLTF or FBX. I've been checking the source code of the GLTF importer and plan to work on this.

@djmaesen
Copy link

split clips on gltf file still doesnt work in 3.4stable

@Calinou
Copy link
Member

Calinou commented Dec 14, 2021

split clips on gltf file still doesnt work in 3.4stable

Does your glTF file have a single animation named default, as described in #40274?

@djmaesen
Copy link

smganimated.zip
try the attached gltf file. naming the animation "default" before exporting shouldnt be necessary imo.
it should work regardless the name of the source file

@djmaesen
Copy link

split clips on gltf file still doesnt work in 3.4stable

Does your glTF file have a single animation named default, as described in #40274?

no it doesnt , and that is something i cant do. im doing a workaround from c4d to blender to export to gltf. as fbx doesnt work in godot. but the original animation file name shouldnt be a fixed value "default". thats not an easy workflow

@akien-mga akien-mga modified the milestones: 3.5, 4.0 Oct 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants