Giter Site home page Giter Site logo

blender_shelves's Introduction

Discussion

https://blenderartists.org/t/shelves/1253560

Header Buttons

This addon allows you to create custom buttons and buttons templates for Blender, they will be displayed in the header. image

Quickly switch between shelves to ahve actions for different tasks at hand. shelves_switching

Addon Preferences Description

image

Create a new button

  1. go to the user preferences of blender, navigate to the Interface section and enable "Developer Extras" image

This will allow you to copy the operator from Blender's UI elements image

  1. Go to the Shelves addon preferences and use the + button on the right side to add a new button, by default this will add a button with a hearth icon and a operator to open the user preferences Screen Shot 09-16-20 at 07 49 PM

  2. Navigate to the Icon Viewer Addon and open the Icon Viewer, select the icon you want and copy the Icon String over to your Icon Field in the Shelves addon. image image

  3. Give your Button a Name image

  4. Navigate to the action you want to bind to that button and copy the python command image

Paste the python command in the operator field and remove the brackets at the end and the parts in the front (this might vary a bit from operator to operator) image

  1. save you rnew Shelve Note: if you add new buttons you will need to add a new shelv with the same name to overwrite and save the existing shelve image image

blender_shelves's People

Contributors

danielgrauer avatar kant avatar kromar avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

blender_shelves's Issues

Invalid syntax error on operator commands with parameters

Trying to set up one-click extrapolation types using these buttons but inserting a command with a parameter throws out a syntax error.

In the preset shelf itself, the code reads
item_sub_1.button_operator = 'graph.interpolation_type(type='BEZIER')'

Which results in the error
Failed to execute the preset: SyntaxError('invalid syntax', ('C:\\Users\\Username\\AppData\\Roaming\\Blender Foundation\\Blender\\3.0\\scripts\\presets\\shelves\\test.py', 16, 62, "item_sub_1.button_operator = 'graph.extrapolation_type(type='BEZIER')'\n"))

Using the code
item_sub_1.button_operator = 'graph.interpolation_type'
Wont cause any errors but that only brings up the interpolation type menu instead of setting it to Bezier automatically.

Error: operator missing srna 'import_scene.fbx'

Blender version : 2.90.1
Add-on version: 1.1.1

In the System Console, this line appears many times:

E:\blender_Portable\2.90\scripts\addons\blender_Shelves-master\__init__.py:68
rna_uiItemO: operator missing srna 'import_scene.fbx'

Shelves doesnt save

Hello, first of all thanx a lot for the awesome tool! Love it!
But ive got the problem that i cant save any changes, when i go to settings and remove or add buttons, then i change the template from modeling to others, and go back, all appears by default again. I saved preferences always, tried manually save it and automatic. It always refresh it to default buttons whatever i do. Restart PC and blender doesnt help.
Here is the screencast attached:
https://user-images.githubusercontent.com/12876093/232179753-887bc192-6876-48e9-843b-1f78e5bee85b.mp4

Blender 3.5
Thank you!

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.