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

MMD model type conversion #142

Open
rgxa opened this issue Apr 13, 2024 · 1 comment
Open

MMD model type conversion #142

rgxa opened this issue Apr 13, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@rgxa
Copy link

rgxa commented Apr 13, 2024

When converting an MMD model using the Convert Model button under the Model Production panel, it would probably usually be desirable if the user did not manually have to add the MMD model root object to the collection the rest of the objects are in. However, currently the operator does not search for the collection the model being converted is a part of, and instead simply adds it to the root collection of the active scene.

I've never done this before, but as a simple solution I'd propose searching bpy.data.collections(or the active scene's root collection and its children recursively) for a collection that contains the active object, and adding the new MMD model to the collection.

I'm going to write it myself and push a solution, but I'd appreciate feedback on it, critical or not. I will keep it as simple as possible since it is my first time. In case the feature is not desired, I'll add an option for it in the conversion operator.

@UuuNyaa UuuNyaa added the enhancement New feature or request label Apr 24, 2024
@UuuNyaa
Copy link
Owner

UuuNyaa commented Apr 24, 2024

@rgxa Thank you for the feature suggestion 😀

Blender's general operators add new objects to the currently selected collection.
So adding new objects to a collection that contains the target object to be converted can confuse users.

Any way, it is better to make a decision based on user comfort after developing the feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants