snuq / script-shortcut Goto Github PK
View Code? Open in Web Editor NEWScript Shortcut Addon for Blender
Script Shortcut Addon for Blender
Problem:
If list of buttons gets too long, it becomes unintuitive. It would be great if I have option to select an icon that goes with my text on button or even only button with icon in it.
Solution I'd like:
When creating button add option to select appropriate icon (from blender userface) to use with text or instead of text in the button
Additional context
you used it there too
and blender is using them everywhere
Maybe there is no need for this, but I just came across this way to run scripts in the text editor from a script: https://blender.stackexchange.com/questions/8435/how-to-programmatically-load-a-python-script-in-text-editor-and-launch-it/31398#31398
And that made me think that if you at some point felt the need to export the generated buttons into a standalone script, it is actually possible to run the generated script automatically. :-)
Another thing is that Pablo has made a chat-room about the VSE and I've mentioned you vseqf as a potential add-on to include in Blender at some point. If you like, please join the discussion here: https://blender.chat/channel/vse
Hello! Thanks a lot for this great addon, this is literally what I've been looking for. I am not sure if there is already a solution for what I need, but here is my issue. If I add a new script shortcut, it is not visible when I open old blend files. Is there a way to keep script shortcuts for all files regardless of when I added them?
Problem:
I need to switch some things in blender with script based on a number, now I have workaround with custom properties, but when I do not have selected object with properties, it isn't showing in panel.
Solution I'd like:
When editing panel now you have Button, Spacer and Label, you can add another type - Variable, when you create it, you can reference it in a script and use it.
Additional context
here is how I use it now inside properties panel, it can be similar style as this.
This seems like an amazing addon, but it's giving me some errors
When I load a script, it doesn't seem to do anything if I click the button. This script works if I run it from the regular scripts panel.
When I try to select the panel preset, it gives me an error:
I'm on an M1 Mac, Blender 3.5 if that makes a difference
This is the script I'm trying to run:
import bpy
# Replace "Gpencil" with the name of your Grease Pencil object
gpencil = bpy.data.objects["GP_Template"]
# Copy the Grease Pencil object
gpencil_copy = gpencil.copy()
gpencil_copy.data = gpencil.data.copy()
# Set the location of the copied Grease Pencil object to the 3D cursor location
gpencil_copy.location = bpy.context.scene.cursor.location
# Paste the copied Grease Pencil object
bpy.context.scene.collection.objects.link(gpencil_copy)
addon sounds awsome!
sadly i cant get it to work.
alt+space brings up script shortcut popup, but other than that i dont see any place where i could start.
Thanks for writing and sharing this useful Add-on! I just made a donation.
I was wondering if you'd be willing to indicate (reference this commit) in your latest readme.md?
I have Blender 2.78a which doesn't work with ScriptShortcut.py updated to work with Blender 2.8.
I downloaded this commit and it runs fine.
Or, if it's not too much work to make the latest version of ScriptShortcut.py backward compatible with 2.78, that would be great.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.