Coder Social home page Coder Social logo

script-shortcut's People

Contributors

snuq avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

script-shortcut's Issues

Add Icons to buttons

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
image
and blender is using them everywhere
image

Generate standalone scripts?

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

Having new scripts for old blend files

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?

Add variables to panel

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.
image
image

Doesn't seem to be fully working for me, but panel and options will load

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.

image

When I try to select the panel preset, it gives me an error:
image
image

I'm on an M1 Mac, Blender 3.5 if that makes a difference

This is the script I'm trying to run:
image

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)

Cant see the pannel in 2.93

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.

Versions based on Blender 2.8 are not backward compatible

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.