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

Group Exporter #542

Merged
merged 6 commits into from
May 30, 2024
Merged

Group Exporter #542

merged 6 commits into from
May 30, 2024

Conversation

MrCrayfish
Copy link
Contributor

@MrCrayfish MrCrayfish commented May 22, 2024

Group Exporter is a plugin that allows designers to export a group from the outliner as a model. Only the cubes inside the group (including sub-groups) will be considered for the exported file. Useful when designing models that are made up of multiple models, or even as a tool to design models in a single project instead of multiple projects (within reasonable context) since you can just export the group, not the whole project.

This plugin is very dependent on the fact computeCube has a check right at the start c.export. If this was applied across the board, this plugin could theoretically support more formats.
https://github.com/JannisX11/blockbench/blob/42c77fa4737de43686e8925ca0ac54e5d241c5c9/js/io/formats/java_block.js#L29

Example of a use case:
This is a backpack I am designing. It needs to be two separate models for my mod, instead of deleting the elements to only export specific elements, I can just export the group.
image

plugins/group_exporter/outliner_group_exporter.js Outdated Show resolved Hide resolved
plugins/group_exporter/about.md Outdated Show resolved Hide resolved
plugins/group_exporter/outliner_group_exporter.js Outdated Show resolved Hide resolved
@MrCrayfish
Copy link
Contributor Author

I've addressed your feedback, and made changes where necessary. I don't have any further additions, so this PR is ready to go.

@JannisX11
Copy link
Owner

I just found one more issue regarding "Export" being a public function. Do you mind if I fix that?

@MrCrayfish
Copy link
Contributor Author

Yeah, you can make the changes.

@JannisX11 JannisX11 merged commit 5627219 into JannisX11:master May 30, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants