Blender Kitsu: Replace Render Preset with Generic Script Runner #174

Open
opened 2023-12-05 16:34:15 +01:00 by Nick Alberelli · 0 comments
Member

From @eyecandy

hey! how hard would it be to turn the "render preset" functionality into a more generic script runner in the kitsu addon?
The Idea is:
you still point it to a script directory within the SVN
each .py file is still its own contained macro
have some way of categorizing them into different submenus
So e.g. we could create utility scripts that can be sorted into a nice little menu, grouped by shading, rendering, modeling, object management
I have a bunch of utility scripts that I'm currently loading into a couple of files... having them already all loaded and executable at the press of a button could greatly speed up our workflow...
(this is the function i'm mentioning. it runs generic blender python snippets, but is currently only available in the lighting task

image
I checked and the preset scripts are already using a main() function and bl_label so it's mainly about making it available outside of a specific task type and including categorisation.
and it uses bl_label and bl_category for the sorting
The menu could be similar to the add menus all over blender. I dont think it has to work for a very complicated category structure. One level would be enough
image

From @eyecandy hey! how hard would it be to turn the "render preset" functionality into a more generic script runner in the kitsu addon? The Idea is: you still point it to a script directory within the SVN each .py file is still its own contained macro have some way of categorizing them into different submenus So e.g. we could create utility scripts that can be sorted into a nice little menu, grouped by shading, rendering, modeling, object management I have a bunch of utility scripts that I'm currently loading into a couple of files... having them already all loaded and executable at the press of a button could greatly speed up our workflow... (this is the function i'm mentioning. it runs generic blender python snippets, but is currently only available in the lighting task ![image](/attachments/88441bb6-db10-499e-aca4-0abcb6706d25) I checked and the preset scripts are already using a main() function and bl_label so it's mainly about making it available outside of a specific task type and including categorisation. and it uses bl_label and bl_category for the sorting The menu could be similar to the add menus all over blender. I dont think it has to work for a very complicated category structure. One level would be enough ![image](/attachments/6477cf35-942d-476f-aad3-8badc92dcf2b)
Nick Alberelli added the
Kind
Studio Request
Kind
Enhancement
labels 2023-12-05 16:34:15 +01:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: studio/blender-studio-tools#174
No description provided.