Skip to content

feat: added option panel and save directory #55

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

Merged
merged 4 commits into from
Jul 5, 2023
Merged

Conversation

BrendanParmer
Copy link
Owner

@BrendanParmer BrendanParmer commented Jun 25, 2023

Features

  • Users can now specify a directory to save a generated add-on to
    • No longer auto-generates an addons/ directory
  • Info pop-up now shows where script/add-on was saved to
  • New NTPOptions property group for global options
  • New NTPOptionsPanel in the NodeToPython menu for setting global options

Refactor

  • Variable names now use a dictionary with (name, usage count) pairs instead of a set

Other

  • Removed image related print statements

@BrendanParmer BrendanParmer added the enhancement New feature or request label Jun 25, 2023
@BrendanParmer BrendanParmer added this to the v2.2 milestone Jun 25, 2023
@BrendanParmer BrendanParmer self-assigned this Jun 25, 2023
@BrendanParmer BrendanParmer linked an issue Jun 25, 2023 that may be closed by this pull request
__init__.py Outdated
@@ -30,21 +30,52 @@ def draw(self, context):
layout = self.layout.column_flow(columns=1)
layout.operator_context = 'INVOKE_DEFAULT'


class NTPOptions(bpy.types.PropertyGroup):
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move to an options module so the init file doesn't get cluttered

@BrendanParmer BrendanParmer merged commit 242f9fe into v2.2 Jul 5, 2023
@BrendanParmer BrendanParmer deleted the save_location branch July 5, 2023 02:23
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

Successfully merging this pull request may close these issues.

Let user define where to save generated add-on
1 participant