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

Fresh install can't write new workflow presets #13

Closed
jseagull-3sl opened this issue Jan 19, 2024 · 2 comments · Fixed by #14
Closed

Fresh install can't write new workflow presets #13

jseagull-3sl opened this issue Jan 19, 2024 · 2 comments · Fixed by #14
Assignees
Labels
bug Something isn't working

Comments

@jseagull-3sl
Copy link

On a fresh install under Blender 4.0.2 (Windows 11), trying to save a workflow preset yields this error:

Error: Python: Traceback (most recent call last):
  File "C:\Users\there\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\Transmogrifier\__init__.py", line 888, in execute
    json_file = Path(bpy.utils.script_paths(subdir="presets/operator/transmogrifier")[0]) / add_preset_name
IndexError: list index out of range

The console agrees that this is not a valid path. However, bpy.utils.script_paths(subdir="presets/operator")[0] does yield a valid path, so I think TM just isn't creating its preset directory on install. My script path array has five entries, if that makes any difference.

@SapwoodStudio SapwoodStudio self-assigned this Jan 21, 2024
@SapwoodStudio SapwoodStudio added the bug Something isn't working label Jan 21, 2024
@SapwoodStudio SapwoodStudio linked a pull request Jan 21, 2024 that will close this issue
@SapwoodStudio
Copy link
Owner

Hi, @jseagull-3sl 👋 Thank you for reporting the bug. I was able to replicate the issue in Blender 3.6 and 4.0.2 (Windows 10) as well. Your hunch was correct. If there hadn't already been a Transmogrifier operator preset directory created after the User clicked "Copy Assets" from Transmogrifier addon preferences menu, then attempting to add a preset would result in the error you reported.

The bug is now fixed. Now both Add ("+") and Remove ("-") buttons will first create the Transmogrifier operator preset directory if one does not already exist.

@SapwoodStudio
Copy link
Owner

@jseagull-3sl, in the meantime between now and the next release, you can work around that bug in Transmogrifier v1.5.0 by clicking "Copy Assets to Preferences" in the addon's preferences menu. Then you'll be able to add ("+") your own workflows/Transmogrifier presets as expected.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants