Questions tagged [operator]

An operator is a processing unit that is invoked/executed on scene data by the window manager.

Filter by
Sorted by
Tagged with
3
votes
0answers
46 views
+100

How can I get a list of currently running modal operators?

Here I found a working solution using ctypes which allows to find out if any modal operator is currently running. I am not good in C and don't understand how it works. But I'm sure someone does, so is ...
0
votes
0answers
19 views

Calling addon's operator inside another addon

i'm trying to call an addon's operator inside another addon (operator), i used the bpy.ops methode as it's montionned in the blender documentation but i still get an error that i didn't find an answer ...
1
vote
0answers
28 views

How to remove a custom draw function from the Top Menu?

I've added a checkbox to the custom Blender UI Panel with a function assigned to it which is being executed on every checkbox update. The idea of that function is to extend Blender Top Menu with the ...
0
votes
0answers
17 views

Object operators causing crash

I have a Blender project which won't allow me to use object operators (in this case bpy.ops.object.parent_clear(type='CLEAR')), without crashing. I have tried it on different objects in my scene and ...
1
vote
0answers
24 views

Checkbox array functioning as one. How do you separate the checkboxes

I trying to see if this is possible. I want to have the ability to choose which frames to re-render with checkboxes. First issue I am having is that the checkboxes active and de-active together. I ...
3
votes
0answers
37 views

How to add my own SECOND splash screen

I want to add a second splash screen that will appear when I start blender and in which I can add my own text. This is necessary for my addon.
0
votes
0answers
28 views

How to make operator (button) use my properties on execute?

I'm trying to create a simple panel for exporting models to fbx. After going through the templates and getting to grips with the layout etc. I'm struggling to actually get the properties I've created ...
0
votes
0answers
21 views

Update ANT Landscape with script in render

I'm completely new to Blender and I'm toying around with landscapes and scripting. I want to animate the Noise Size of the generated landscape for each new frame. I keyframed the value of the Noise ...
1
vote
1answer
22 views

Can anybody explain to me what collection instance is?

I have tried understanding this operator, but I cannot seem to wrap my mind around it.
2
votes
0answers
37 views

How to re-register a built-in operator?

An existing operator can be overridden by assigning bl_idname of an existing operator to a new one. This can be used to extend and even limit the functionality of ...
1
vote
1answer
37 views

How to use multiple dots in idnames

In add-on operators, you are required to give an idname to each operator. Commonly, it is category.operator. This results in calling the operator with ...
1
vote
0answers
54 views

How to use “Context Override” on the “Disable and Keep Transform” operator?

I am trying to make a simple panel with buttons for snapping bones between IK and FK configurations, and I need to change attributes of bone constraints with python scripting. I can quite easily ...
0
votes
0answers
23 views

How do I trigger an operator to run when my my custom Python property is changed? [duplicate]

Let’s say I have a piece of code like below that draws a hello world panel. ...
1
vote
2answers
42 views

How can I display a FloatVector without it being editable by the user?

I am writing a python script that takes some user input in the operator and does a calculation. The result is three floats, which I would like to display in a nice form like FloatVector but I don’t ...
0
votes
0answers
14 views

How to link functionality of external file to Dropdown list in Blender?

I am currently working on a project. I want to “teach” Blender 3D printing. And my approach was to take an existing slicer and run the executable in Blender. I wanted to keep it simple and just want ...
0
votes
0answers
14 views

How do I access and set options for Boolean modifier, using python? [duplicate]

I understand how to add a simple Boolean modifier, but not how to access and code any of the functions within. I'm looking to set the options: "Operation", and the target "Object", and finally "Apply" ...
1
vote
1answer
39 views

How to imitate scaling a mesh in Edit Mode without Edit Mode (ie. keeping object transforms at 1, 1, 1 with modal control of the scale)

I have a modal operator that adds and adjusts an array of elements along a curve, but I have a problem with scaling. I'm using the 'Fit to Curve' setting for the array modifier so it automatically ...
0
votes
0answers
23 views

How to Scale an object and Apply Transforms without selecting it or making it active? [duplicate]

What's the easiest way to scale an object and apply transformations without selecting the object or making it active, or alternatively, how to scale the mesh data directly? Whatever option is easier ...
1
vote
0answers
52 views

How to find python code of a built-in python operator?

To my knowledge, some built-in operators are written in python. This could be handy if I wanted to create a modified version of an operator for my add-on, since I could probably just copy the code and ...
0
votes
1answer
19 views

How to change description in an operator depending on the option assigned in the UI?

I would like my operator, once created 2 different buttons in the panel, When I fly over the button with the cursor them they give 2 different tips, based on the assigned property. I don't really know ...
0
votes
1answer
58 views

How to add a custom menu item to the object menu?

Following code adds wm.save_homefile operator to the Render menu. ...
1
vote
0answers
27 views

Pass data between panels and operators [duplicate]

How can I pass data from operator to another operator in one panel? Specifically I have a dialog box, I want to get back the path of the selected box to a label and activate another operator(button) ...
0
votes
0answers
22 views

How to make my UI wrap around the 3D view along with the cursor?

I added GRAB_CURSOR and BLOCKING to my modal operator so the mouse cursor wraps around when I perform certain operations. I ...
0
votes
0answers
21 views

How to acces to EnumProperty value outside of “class SearchEnumOperator”?

I can't understand how to get the value of an EnumProperty outside this operator. This is an example with the panel where I would like to show the current value of this EnumProperty: ...
0
votes
0answers
15 views

Changing object position don't affect the slider value in the operator

I'm working on Blender 2.79b. I want to manipulate the span (Z) and axial (X) positions of the 3 planes R, M and T with the contraintes: B < R < M, R < M < T. I create 2 new operators for ...
1
vote
1answer
22 views

Custom Property vs ID Property for temporary User Preference Variable?

I was making a modal operator and I needed some kind of global variable I could use as a "user preference" if you will. Whenever the operator is run, it checks if the value is True or False and runs ...
1
vote
0answers
42 views

How do you create 2 hotkeys for variations of the same keymap?

I'd like to have 'Flip Active/Selected Bone' and 'Flip Active/Selected Bone' with the 'Extend' checkbox turned on as 2 separate keyboard shortcuts, eg. F and AltF. Creating a new hotkey works fine. ...
0
votes
1answer
33 views

Resize 3D Objects in python without operator function

I want to move objects with the resize function, while enabling Transform affects only to location. In 3D-Editor it is easy to give them the direction, so that the objects move away from center. Now ...
0
votes
0answers
25 views

How do I make a modal operator that moves the 'frame_end' property to the position of the mouse?

I'm just getting started with modal operators. I'm trying to create a modal operator which will change the frame_end property to be at the position of the mouse. ...
0
votes
0answers
36 views

Blender Menu, Panel and Operator [duplicate]

There is a lack of clarity in where to use Blender menu, panel or the operator. I am familiar with inheritance in Qt where QDialog, QWidget, QMessageBox, QMainWindow are used as required. As a matter ...
0
votes
0answers
36 views

Trouble with separating a mesh : “Error: Nothing selected”

I am new to Blender Scripting and I want to do this : I am using Blender v2.80.75 and I have the following code : ...
0
votes
0answers
11 views

How to use the operator so that it interacts with the user and has default values

I use the cursor as a pivot point. I want that when I use operator bpy.ops.transform.rotate ("INVOKE_DEFAULT"), it uses the cursor axis by default and I do not have to press the z button so that the ...
0
votes
0answers
10 views

Can't set keyframes from custom operator panel

It's a floating Operator like this With use_property_decorate and use_property_split enabled, the 'Animate Property' dot does nothing. Clicking it will immediately gray out. Right-clicking on the ...
0
votes
0answers
30 views

Displaying Progress of Operator in Blender 2.8

It used to be the case prior to Blender 2.8 that the only way to display a progress bar for a long-running operator was a hack where you make the script a renderEngine. Is this still the case in 2.8 ...
2
votes
1answer
42 views

How to re-map the shortcut to remove a node connection (cutting tool)?

I use a graphics tablet because using a mouse starts to hurt my wrist. I need to either find the NAME of the "slashing" disconnect function between nodes that works identically like in Houdini FX (the ...
0
votes
1answer
24 views

How to copy a property definition (including list of possible enum values, tooltip description, etc.)?

I want to write an operator that allows to quickly add and properly set up action constraints on all the selected objects simultaneously. The operator should have some of the same properties as the ...
0
votes
2answers
108 views

How to get the usual render window behavior when using the render operator for multiple frames?

I have been trying to get a custom render button to work. The purpose is to render all markers in a timeline. There are examples that use handlers but I could not make it work properly: ...
2
votes
1answer
135 views

Shortcut for operator context panel (redo panel) in 2.8?

Is there a shortcut or a plugin that helps expands this context menu automatically? This extra mouse maneuver and click is quite exhausting in a bigger project when compared to before 2.8. Thanks.
0
votes
0answers
56 views

How do I change the width of operator popup?

I've done this simple operator taken from templates. How to change operator GUI width? I tried scale_x and ui_units_x but no ...
0
votes
1answer
35 views

Stop a long running operator with escape?

Would it be possible to write an operator that would allow the user to interrupt it with the escape key or even when a value gets changed in the redo pannel? Any pointer about how to do this?
0
votes
0answers
26 views

Invoking Operator fetched from C.window_manager.operators

This follows my question "Accessing Transform Operator History inclusive constraint_axis in Python script" As you can see, I get an operator from the "history" stored in C.window_manager.operators ...
0
votes
0answers
84 views

Mesh “Add” menu is not working 2.8 [duplicate]

I'm new with blender. I'm currently watching some tutorials but I'm having a hard time figuring how to fix this sub-menu when adding mesh (Alt + A ) I can't change any values and suddenly disappear. I ...
2
votes
0answers
33 views

bpy: Show a blender popup_menu that waits until an external function returns and shows a spinner until then

I'm trying to write a script that shows a text information to a user while waiting for another process to finish. Ideally this also shows some kind of spinner, to show that it's still alive. I need ...
0
votes
1answer
19 views

Calling a function in operator to create a button

Hi this is probably very simple but it is proving difficult to archive I am basically atempting to make a button in the UI tools panel that can run any function I create Example ...
2
votes
1answer
89 views

Button with Multiple Operations/Functionality

I would like to code multiple functions (operations?) to a single button that is on a Display panel within the 3D viewport, and which will have toggle functionality. This is what I have so far. I'd ...
1
vote
1answer
73 views

Call operator with tweak popup window

I'm making a panel with buttons to do different actions for modeling. One one of my button I want to merge vertex by distance when I click on it, but merge to center when I CTRL + Click. I got this ...
0
votes
1answer
75 views

How to make the panel detect that the operator has been executed correctly?

NOTE : There are already two posts concerning this problem but I can't find an answer in them. I enclose the link that leads to it: Answers Hy everyone, I have in my script, a panel and an operator. ...
0
votes
1answer
132 views

How to simulate keyboard ESC command using Python builtin modules?

For my addon I need a function that simulates just a single ESC button event from the keyboard, using Python. I've tried many things and this seems to be the only way left to abort ...
1
vote
0answers
67 views

Operators panel missing [duplicate]

I wanted to make my very first blender donut yesterday. I have ver 2 82.7 When I add the torus it pulls up a floating menu where i can amend size and segments. When I click anywhere else this Add ...
0
votes
0answers
46 views

Accessing Transform Operator History inclusive constraint_axis in Python script

Please have a look at this: I am writing a script wich changes selected verts. Lets say the user is in Box-select-mode (...or whatever tool), selects something, does some constrained transformation (...

1
2 3 4 5 6