Quantcast
Channel: Active questions tagged scripting - Blender Stack Exchange
Browsing latest articles
Browse All 276 View Live

Image may be NSFW.
Clik here to view.

How to force UNDO panel to be maximized in custom operator

I made an operator, which have an UNDO panel with my custom properties.If UNDO panel was collapsed – it remembers this state and next time will appear also collapsed:__It's not ok in my case.I would...

View Article



Finding which addon an operator belongs to

A recent question / answer involves what looks like an overridden operator:bpy.ops.object.align()Differing from the documented default, how do we find which addon(s) have registered the operator.Method...

View Article

Image may be NSFW.
Clik here to view.

Add-on Dev: Referencing preference variable inside another module

I'm trying to expose the VIEW_3D location of my Add-on in its preferences. So far I got the user input working showing in the preferences of my Add-on.# Input Variable class...

View Article

Image may be NSFW.
Clik here to view.

How to match FK bone to IK bone via script?

I'm trying to make an IK to FK script, so I would like to have the FK bones align with the IK bones. What would be a good way to go about it?I tried doing something like this:upperArmFK.matrix =...

View Article

How to override context area using script when running Blender using Command...

I use this command for running (open) Blenderblender --factory-startup --python path_to_script script.pyIn script.py i tried to callbpy.ops.view3d.view_all(center=False)But its get wrong contextSo I...

View Article


How to Assign a script to a button

How can I assign a script from the theme below to any button? And also make it possible to adjust the TOL parameter after applying the button. I tried to do this through scripting, bind the script to...

View Article

passing a custom camera view to gpencil mesh convert

I am trying to learn how to use the Python API for Blender, and have been wanting to see if I can make some kind of gpencil to mesh convert tool to see if i can make it do consistent conversions...

View Article

Alt Scroll Wheel in time line and jump back to start

is there a way to customize the Alt+ Mouse Wheel which works in most editors that when you reach the end frame you can jump back to start?is it something I don't see in settings or do I need a script...

View Article


Pie Menu simple script condition

I've been using Pie Menu Editor and I'd like to create one that activates only in object mode when nothing is selected. I did a lot of research but since I have no background in coding it makes it very...

View Article


(Addon) check if exists an update for an addon?

I'm trying to implement a system that notifies the users when an update for my addon is available.In this case my addon is uploaded to gumroad.My thoughts about approaching this was:I thought about...

View Article

How to use text from textbox in Operator class

I'm trying to create script\addon. Main idea is have ability to enter text in textbox, hit button -> rename object name and object data name at one. But I can't figure out how to use string property...

View Article

Image may be NSFW.
Clik here to view.

Fill a face with evenly distributed triangles

Is there a way to fill an ngon with Tri's, a way to automate an operator to achieve the image on the right, it should also keep the borders untouched:

View Article

Force Viewport Visibility to Respect Render Visibility

I use the viewport render to do all my look dev, and lighting, so I make things enabled or disabled based on what I need for that render layer/scene. But of course when I go to actually render the...

View Article


Image may be NSFW.
Clik here to view.

Add icons (properties/operators) to Blender's Outline?

I'm trying and wondering if its possible to add new icons (to trigger properies or operators) in the Blender's Outline showing all the objects in the scene.I mean adding new properties/operators in the...

View Article

Image may be NSFW.
Clik here to view.

How can I do some sort of limited dissolve of useless vertices at the edges?

Is there a way to do some limited dissolve either through the built-in Blender tools or perhaps through scripting (if not possible through Blender tools) to remove these types of vertices? Or do I have...

View Article


Image may be NSFW.
Clik here to view.

Script Help for overlapping edges between objects

I hope all is well.I am working on a project that involves drawing grease pencil edges using the "mark freestyle edge" feature on edges that do not intersect with edges from other objects. I am using...

View Article

Image may be NSFW.
Clik here to view.

Can you use scripting to save the intensity of Light reaching a Face to a CSV...

As depicted in the photo, I have placed a Light Object below and a Face above. The Face is divided into 16 sections as an example. In this setup, each of the 16 Faces receives a different light...

View Article


Automate multiple file rendering one after another [closed]

I've created a simple .bat script to streamline the process of rendering multiple files overnight in Blender. Manually starting each render and waiting for it to complete can be time-consuming and...

View Article

Image may be NSFW.
Clik here to view.

Dependence of rotation on local position. Need driver or script

Dependence of rotation on local position. The vector passes through zero, and the rotation changes. How can I fix it using drivers or a script?

View Article

Image may be NSFW.
Clik here to view.

How to display an image in my custom node

I have a custom node and I want it to be able to display an image. I know that the node has a parameter show_preview and if you enable it, no image appears.

View Article

Image may be NSFW.
Clik here to view.

How select key frames on the curve where the value < 0?

How select key frames on the curve where the value < 0?

View Article


How to add initial values to the UI list

I have not been able to figure out how to add initial values to the UI list until now, but now I know the answer.I will note the code for the answer in the answer.

View Article


Image may be NSFW.
Clik here to view.

Select the outermost contour of an imported SVG

I would like to programmatically import an SVG (see top left) and process the offset of the concave outline, that are the outermost edges of the imported SVG (see top right). Finally I want to have the...

View Article

Image may be NSFW.
Clik here to view.

Can I use Blender and its scripts to make an application or a web page?...

In blender, I have used a python script to control the movement of the model bones by reading sensor data.Now I hope to show this model in an application or on a web page and do the following...

View Article

Image may be NSFW.
Clik here to view.

How can I select and remove excess loops from an edge outline using python?

How can I select these vertices in this weird loops encircled in red using python? In this example I only have 5 vertices excess but it's possible for more or lesser vertices to be junctioned like...

View Article


How to turn off the (auto)terminal output while rendering blender file in...

I'm using blender rendering with my own python script in headless mode. Some how when blender rendering in headless mode, it automatically print the rendering process it went through. The terminal...

View Article

Image may be NSFW.
Clik here to view.

Show mesh vertices ID

I am try to do something based on the ID of a vertices. I want blender to show me the vertices ID. How can I have blender show me the ID in the viewport? I do not see an option in the Mesh Display tab.

View Article

restart my script as if it were the first time

I want to see press a button to restart my script as if it were the first time. For this I am forced to close blender, open blender again, open the script, and finally launch the script. Isn't there a...

View Article

Use 3D view context in python console

Very often I only want to execute a line of code which can only be executed in the 3D view, for example...

View Article



Image may be NSFW.
Clik here to view.

Can Script using object work as what "make single user" does?

A while ago I’ve read about what “Make Single User” does and tested it. Which was totally amazing and mind blowing.e.g. later I learned about few Python scripts with which it is possible to move UV...

View Article
Browsing latest articles
Browse All 276 View Live




Latest Images