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

Export Custom Properties on Animation Actions #727

Closed
Ziflin opened this issue Oct 12, 2019 · 1 comment · Fixed by #729
Closed

Export Custom Properties on Animation Actions #727

Ziflin opened this issue Oct 12, 2019 · 1 comment · Fixed by #729
Labels
Animation enhancement New feature or request exporter This involves or affects the export process

Comments

@Ziflin
Copy link

Ziflin commented Oct 12, 2019

Currently the glTF exporter does not export custom properties added to animation "Actions" in Blender.

It would be very nice if action animations exported their custom properties similar to the Objects/Nodes do already. We have additional values that we'd like to add to these actions in Blender and import into our application.

The attached example file "ActionCustomProperties.blend" has an included script that can be run from the Scripting workspace/tab. After running this script, switching to the Animation workspace should show an "Action Properties" panel ("n" hotkey if it's hidden) to the right of the timeline.

There are already two custom properties set "ActionProperty1" and "ActionProperty2". Ideally these would be exported in the animation's "extras" JSON block in the same manner as other custom properties are currently done. This would allow us to add our own panel of custom properties to actions and read them from an exported glTF file.

ActionCustomProperties.zip

@julienduroure julienduroure added Animation enhancement New feature or request exporter This involves or affects the export process labels Oct 12, 2019
@julienduroure
Copy link
Collaborator

Should be done after #709 that will provide utils to manage exporting for actions

Note: We will have to manage merging these extras fields when merging animation (based on track name of NLA)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Animation enhancement New feature or request exporter This involves or affects the export process
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants