Questions tagged [scripting]

Questions concerning scripting in Blender using the Python programming language. Also use this tag for questions about scripting in OSL (Open Shading Language).

Filter by
Sorted by
Tagged with
0
votes
1answer
397 views

Problem with bpy.ops.sculpt.brush_stroke

Bear with me, this is complicated to describe. I am writing an add-on for Belnder which involves using bpy.ops.sculpt.brush_stroke in Sculpt Mode to essentially ...
0
votes
1answer
582 views

Create mesh depending on rest position not pose position

I have an armature in my .blend file found here: I'm trying to create a mesh around it. I'm using the below script which generated a mesh around it but the mesh is created depending on Pose position ...
0
votes
1answer
99 views

Print to Info or grey out a button if no object is selected - Python script

How would you print to the info if no object is selected (no active object), or grey out the buttons for a script that is operating on a mesh object? I understand you could run a ...
0
votes
1answer
1k views

Automated way to make “Select interior faces” ignore select faces that are visible to the camera?

Here's my mesh. It has some interior faces (it's made out of merged cubes) that I want to remove. I've highlighted two of them for example: When I run Select Interior Faces, it selects them, but also ...
0
votes
1answer
321 views

some kind of dynamic and localized subdivision surface modifier - type algorithm?

In a previous, excellent answer it was proposed that it might be helpful to subdivide some triangles in my mesh at certain times during the animation to prevent them from overlapping adjacent faces ...
0
votes
1answer
101 views

Link python array to x-position of element

I have a python array: x = [0,0.1, 0.5, .... ,45] The number of elements in the array equals the number of frames in the scene. Can I link or upload this array ...
0
votes
1answer
202 views

Script add-on runs from text editor but not from operator (spacebar) menu?

I am trying to convert my script into an add-on. I have most of the core functionality in place, so I want to try turning it into an operator so that I can connect it to a button. When I try to test ...
0
votes
1answer
194 views

How to stack nodes using a loop?

This is a followup to my previous question. While that answer tells me how to stack all nodes along the x axis, I now need to stack certain nodes along the y axis, at the same x axis point. My code ...
0
votes
2answers
1k views

How can I make a timer?

I would like to make a 7 minute timer, but I'm new to scripting and don't know how to. So can anyone help by sending a script that I could use.
0
votes
0answers
310 views

Accessing Viewport Render Result pixels from script

am attempting to access the pixel information for a viewport render, but sadly, I'm coming up short... Getting that information using Python would be ideal, because it would allow me to update ...
0
votes
1answer
336 views

Creating path curve using python script [duplicate]

I'm using the following script to create path curve: ...
-1
votes
1answer
316 views

How to make a custom boolproperty control an operator?

I'm trying to create an Operator and I was wondering what code to use to specifically toggle the Operator? I'm working on with a checkbox (BoolProperty).
-1
votes
1answer
320 views

context.frame_set() not updating every time

I am trying to build a tool for calculating the IK pole angle of a constraint, I already posted a question here, but no answers. So I decided to go for brute force. Running a for loop and trying ...
-1
votes
1answer
90 views

Cube is not created

...
-1
votes
1answer
582 views

How to create a line with the bge module, step by step

I want to draw a line using the BGE module. Start from this point: From this question: Python script fail, look in the console for now EDIT: I just tried the code you have and it works fine. I ...
-1
votes
1answer
41 views

How to make a button to add mesh that has been edited? [closed]

I want to make a button in my panel to add mesh that has been edited. I have edited the mesh with modifiers and some others things. When I press that button, it would like to add a mesh that I have ...

1
17 18 19 20
21