Skip to main content

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

16 votes
1 answer
15k views

How to read vertices of quad faces using Python API?

Preferable in object mode. I have a mesh I know is made of quads only. I want my script to iterate through each quad and do something with the coordinates of each of the four vertices. I have read ...
Hatoru Hansou's user avatar
4 votes
2 answers
3k views

How can a Method from a startup Script be invoked?

This is a follow up of How could a single Python script run when Blender is started?. Simply adding a method to a newly created file in Blender\scripts\startup ...
stacker's user avatar
  • 38.7k
16 votes
2 answers
7k views

How could a single Python script run when Blender is started?

I would like to have a few globally available functions which should not not depend on a .blend file. Is there a place (A setup.py, ...
stacker's user avatar
  • 38.7k
4 votes
1 answer
583 views

Python scripting Blender with Luxrender

Do you know how could I render a scene with luxrender using the python API of blender and luxrender ? I found their Python API, but I don't find a way to render the scene thanks to luxrender with a ...
Colonello's user avatar
4 votes
2 answers
2k views

How can I call the active brush within my script?

I am attempting to modify sculpt brush settings via a custom menu. To do this I'm setting a string property to specify the setting I wish to modify. Since these settings are dependent on the active ...
Jonathan Williamson's user avatar
30 votes
3 answers
20k views

Is there a way to restart a modified addon?

I'm currently twiddling with an old addon and insert some print statements for debugging. Currently I'm restarting Blender each time to see the new messages. Is there a way to 'refresh' an already ...
stacker's user avatar
  • 38.7k
11 votes
1 answer
4k views

Run an edit-mode operator on every object in the scene

I want to untriangulate every object in my scene with this script: ...
JamesNZ's user avatar
  • 233
5 votes
1 answer
5k views

Changing settings of the 3D view with Python

I am a beginner with python, and prompted by my previous question, I was trying to set viewport shading to Solid and View Only Render to True with python. (The goal being to get the script in that ...
gandalf3's user avatar
  • 158k
20 votes
4 answers
14k views

What programming languages can I use in Blender?

What version of Python does Blender use and are other languages available? Also, does Python work the same in Blender as when you write console applications or when working with Pygame or are there ...
5 votes
1 answer
1k views

how to report missing files in a list, usable in python script?

Is there any simple way to get all missing .blend libraries, in a python list, set, ...
Polosson's user avatar
  • 6,574
23 votes
3 answers
17k views

Quick way to get current opened filename in a script?

I'm looking for an efficient way to get the current .blend file name, in a python script. I know how to get its path, with ...
Polosson's user avatar
  • 6,574
11 votes
2 answers
755 views

Environment for implementing/testing Computer Graphics algorithms

I need to code up a computer graphics algorithm for Surface Registration. Briefly surface registration is the process of finding "optimal" one-one correspondence between surfaces, where the meaning ...
smilingbuddha's user avatar
17 votes
1 answer
4k views

How to pass multiple operator properties via UI layout?

Basically, I want to have a single operator which can do multiple things, based on some attributes values. ...
Polosson's user avatar
  • 6,574
35 votes
2 answers
25k views

Can I run a Python script step by step in Blender?

Can I run a python script step by step with normal blender, a build, external software or an addon? I'm developing a script (town generator) and I want to to execute the code step by step like a ...
lucblender's user avatar
  • 3,343
5 votes
3 answers
2k views

Scripting - How to create a game property?

I have a bunch of objects and need to create some common properties to all of them like this ...
rraallvv's user avatar
  • 4,561

15 30 50 per page
1
424 425
426
427 428
431