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

Initialise filename with object name, not blend file name #2

Closed
ZaneThurston opened this issue Dec 7, 2021 · 2 comments
Closed

Initialise filename with object name, not blend file name #2

ZaneThurston opened this issue Dec 7, 2021 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@ZaneThurston
Copy link

A little suggestion: In exporting, get the blender name of the selected 3D object placed on filename textbox. It's a little feature that agilize the workflow exporting many objects in sequence.

@Road-hog123 Road-hog123 added the enhancement New feature or request label Dec 9, 2021
@Road-hog123 Road-hog123 changed the title Exporting objects with the blender name Initialise filename with object name, not blend file name Dec 9, 2021
@Road-hog123
Copy link
Owner

Thank you for your suggestion!

I agree that it would accelerate that workflow, but I would encourage you to look into the Automation section in the documention for an alternative workflow for files with a lot of export operations. With a little setup, exporting many objects in sequence can become just a couple of clicks.

If you have any feedback about the implementation and/or documention of the automation feature, I would welcome it - it may still be beneficial to many users to add features like this to accelerate laborious but programming-free workflows, even if they duplicate functionality available through custom Python scripts.

@Road-hog123
Copy link
Owner

Given there's interest in this feature from at least 3 people, I'm reopening this with a view to implement this change.

@Road-hog123 Road-hog123 reopened this Feb 20, 2022
@Road-hog123 Road-hog123 self-assigned this Feb 20, 2022
Road-hog123 added a commit that referenced this issue Mar 8, 2022
Add an addon preferences panel that contains a single preference to use
the active object's name as the initial filename instead of the blend
file's name.

The preference defaults to disabled, which maintains the existing
behaviour that matches default exporters - when first invoked the export
filepath is initialised to that of the blend file, with subsequent
exports remembering the previous filepath.

When the preference is enabled, the stem of the export filepath is set
to the active object's name each time the exporter is invoked - the rest
of the filepath behaves as before. Characters that are invalid in
Windows filenames are removed on all systems, with a placeholder being
used if the active object's name contains no valid characters.

Closes #2
Road-hog123 added a commit that referenced this issue Mar 8, 2022
Add an addon preferences panel that contains a single preference to use
the active object's name as the initial filename instead of the blend
file's name.

The preference defaults to disabled, which maintains the existing
behaviour that matches default exporters - when first invoked the export
filepath is initialised to that of the blend file, with subsequent
exports remembering the previous filepath.

When the preference is enabled, the stem of the export filepath is set
to the active object's name each time the exporter is invoked - the rest
of the filepath behaves as before. Characters that are invalid in
Windows filenames are removed on all systems, with a placeholder being
used if the active object's name contains no valid characters.

Closes #2
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