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

Blender: Extract Blend allow to "compress" the output file #156

Closed
2 tasks done
BigRoy opened this issue Mar 7, 2024 · 0 comments · Fixed by #166
Closed
2 tasks done

Blender: Extract Blend allow to "compress" the output file #156

BigRoy opened this issue Mar 7, 2024 · 0 comments · Fixed by #166
Assignees
Labels
type: enhancement Improvement of existing functionality or minor addition

Comments

@BigRoy
Copy link
Collaborator

BigRoy commented Mar 7, 2024

Is there an existing issue for this?

  • I have searched the existing issues.

Please describe the feature you have in mind and explain what the current shortcomings are?

When we publish something from Blender, I just realized that the resulting .blend file is a lot bigger than the workfile from which it originates.
It's because the extractor uses default arguments from bpy.data.libraries.write, which means the file is written as uncompressed.

Could you please add an option to enable compression ?

See:

So basically exposing the compress argument to be either True or False.

Does that influence anything else?

Both compressed and uncompressed blend files are non-ascii (not human readable) but one is (likely) slower to read/write whereas the other has a better filesize.

So companies may prefer the current uncompressed way. So the perfect solution would be to have an option in Studio Settings-->Blender so that we can enable or disable that compression.

As Alain Xerri states on Discord:

Without compression it's still a binary, so we cannot read it anyway in case there is a problem.
So I don't know why Blender decided to have uncompressed as a default (but on some forums people argue that compressed files take longer to be written by Blender, so maybe speed is the reason for uncompressed as default).


How would you imagine the implementation of the feature?

Add a Project Setting to enable or disable the "compress" argument, likely keeping the default off for backwards compatibility.

Are there any labels you wish to add?

  • I have added the relevant labels to the enhancement request.

Describe alternatives you've considered:

No response

Additional context:

Discord conversation where Alain Xerri requested this

@BigRoy BigRoy added host: Blender type: enhancement Improvement of existing functionality or minor addition labels Mar 7, 2024
BigRoy added a commit to BigRoy/ayon-core that referenced this issue Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement Improvement of existing functionality or minor addition
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants