iBrushC / animextras

An open source Blender addon that adds extra animation functionality.
MIT License
167 stars 24 forks source link

Doesnt work with Linked files. #4

Open lucianomunoz opened 3 years ago

lucianomunoz commented 3 years ago

I was testing it out and seems to only work with non linked characters, also doesnt work on alembic files which is not a big deal but maybe its part of the same issue.

iBrushC commented 3 years ago

This is likely a problem with a performance booster I'm using. The mesh is only allowed to have onion skinning if itself or an armature parent has keyframes. I'm not sure how to best fix this issue, but I'm looking towards adding a keyframe-object override, so that people can manually set what has the base keyframes.

lucianomunoz commented 3 years ago

Maybe one should select "object object object armature" so you point it to the right armature which would be the active element?

schroef commented 3 years ago

Got something cooking :) It works with linked rigs for me, it also can clean the scene. I added some function which duplicates the linked file, makes an override and then makes it local. That way we can also work with the rig. Because the mesh is local now, we can use "in front" and can set it to go "in front" of the onion skinning. Perhaps that also solves the issue when doing rigging that its not clear whats happening. It also seems to update fine for me when working in pose mode. Ive added some i needed for the rig addition, so perhaps that got it fixed. It should be tested by other though, im no no animator so i dont know all possible ways to do this

Example of linking and making it local ready for onion skinning https://user-images.githubusercontent.com/6923008/115488204-1f276880-a228-11eb-99de-5943cd71363f.mp4

Afterwards we clean everything and we are back at the start with linked rig. https://user-images.githubusercontent.com/6923008/115488146-09b23e80-a228-11eb-990b-5de252dd186b.mp4

schroef commented 3 years ago

PS was looking into that ABC method, but would that be possible. ABC files are using modifier and reading velocity data. This becomes quite technical now... what could perhaps be done is read ABC file, apply the modifier per frame, read all the verts etc, store those. Isnt that how the onion skinning is made? Im not sure of there is keyframe data in the ABC file.

What is actually the use case when with Alembic files. I mean linking an animated ABC file is simply preview it, you can edit the animation it self. Unless he means a static alembic file with a rig inside, if that is possbile. Is that possible?

esoodemii12 commented 7 months ago

image_2024-02-28_184923925

schroef commented 7 months ago

Not sure what your image should tell us?

I've tried to look at the API to get it to work in 4.0 and up. Haven't had the time yet to do tests

esoodemii12 commented 7 months ago

It said not work in 4.0 and up. Is there any help me pls