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

Improve image/video export when all skeletons are exported together to export multiple animations #780

Open
imljc opened this issue Mar 16, 2024 · 5 comments

Comments

@imljc
Copy link

imljc commented Mar 16, 2024

Hello, I have a project file with multiple skeletons and Animations,and skeleton's Animations are same. When using Export Video, I found that only when the "Export type- Animation , Skeletons-Separate",I can choose "Animation-All". I want to select the " Export type-Animation , Skeletons-Together , Animation-All" to export all animations. It seems that there is no such option I can choose.How to solve? Will a future update solve this?
捕获
捕获2

here sample files:
test.zip

@NathanSweet
Copy link
Member

NathanSweet commented Mar 16, 2024

Each skeleton has different animations. To export "all" of them, we'd have to export all combinations. If s is "skeleton" and a is "animation":

s1a1, s2a1, s3a1
s1a1, s2a1, s3a2
s1a1, s2a2, s3a2
s1a2, s2a2, s3a2
s1a2, s2a2, s3a3
...

This is unlikely to be what you want.

You said that the animations are the same, do you mean they use the same name? I guess we could try to detect this scenario.

A workaround may be to use command line export to do all the exports you need.

@imljc
Copy link
Author

imljc commented Mar 16, 2024

每个骨骼都有不同的动画。要导出“全部”,我们必须导出所有组合。如果s是“骨架”并且a是“动画”:

s1a1, s2a1, s3a1
s1a1, s2a1, s3a2
s1a1, s2a2, s3a2
s1a2, s2a2, s3a2
s1a2, s2a2, s3a3
...

这不太可能是您想要的。

你说动画是一样的,是说它们使用相同的名字吗?我想我们可以尝试检测这种情况。

解决方法可能是使用命令行导出来执行您需要的所有导出。

I want to render two skeletons at the same time and export their animation1~4 combine as one .mov.
like:
s1a1 s2a1 → one .mov
s1a2 s2a2 → one .mov
s1a3 s2a3 → one .mov
s1a4 s2a4 → one .mov

@NathanSweet
Copy link
Member

I understand. This could only work automatically by matching the animation names. We don't support that, but we'll leave this issue open to track the request and may implement it in the future.

For now you can perform 4 exports using Current animation. If you find that tedious, you can use the command line interface and a shell script to automate the exports. Also see our export scripts.

@imljc
Copy link
Author

imljc commented Mar 17, 2024

I understand. This could only work automatically by matching the animation names. We don't support that, but we'll leave this issue open to track the request and may implement it in the future.

For now you can perform 4 exports using Current animation. If you find that tedious, you can use the command line interface and a shell script to automate the exports. Also see our export scripts.

Thanks your answer, hopefully the future will add this function, and if use scripts and Current animation to export, it need to manual switch each animation, it so tired.
if render one skel to export it will lead some slot use blending:additive will not blending correct(like:https://zh.esotericsoftware.com/forum/d/25591-%E5%85%B3%E4%BA%8E%E6%8F%92%E6%A7%BDslot%E7%9A%84%E6%B7%B7%E5%90%88blending%E9%97%AE%E9%A2%98).

@NathanSweet
Copy link
Member

I was thinking you could write a scripts that can generate (or modify) an export settings file to set which animations to export. However, I see that when exporting all skeletons together ("skeletonType": "all") the current animations are used -- there is not a way to specify the animations in the export settings file. We'll consider improving this and possibly detecting when skeletons have animations that are the same name, so we can allow you to choose together + all animations.

@NathanSweet NathanSweet changed the title Regarding the problem of exporting video from a file containing multiple skeletons and animations. Improve image/video export when all skeletons are exported together to export multiple animations Mar 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants