Skip to main content

All Questions

Tagged with
83 votes
3 answers
56k views

How can I quickly generate / create a large city without modeling it all by hand?

I am trying to create an urban open-world environment in Blender that would be about one square kilometre in size. To avoid having to model hundred of individual buildings, I am looking for a way to ...
A A's user avatar
  • 933
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
30 votes
1 answer
11k views

How to implement custom icons for my script/addon?

Is it possible to use different icons other than the default set and how?
Jaroslav Jerryno Novotny's user avatar
19 votes
1 answer
7k views

What do new bpy class naming conventions in Blender 2.80 actually mean?

What are the new class naming conventions in Blender's 2.80 Python API for add-ons? It says here: This constraint applies to the bl_idname of each class (or the ...
Martynas Žiemys's user avatar
18 votes
1 answer
8k views

Proper way to show users error info in the UI for addons [duplicate]

Are there standardized features in the python API for displaying the popup and error message that users typically see in Blender when they're not doing something the right way? Trying to apply a ...
Qutorial's user avatar
  • 3,322
18 votes
3 answers
3k views

Add a custom curve mapping property for an add-on?

Question The title says it all. I want to be able to make this in Blender's UI, and sample it at specific points from an add-on: Problem There is very insufficient documentation on this, and I can't ...
JakeD's user avatar
  • 8,527
17 votes
4 answers
5k views

Workflow for developing add-on/script

I'm trying to figure out a good workflow for developing scripts and add-ons in Blender. Here's what I'm currently doing as I try my luck with a PyNode add-on: Open blender Create a text editor panel ...
ajwood's user avatar
  • 10.1k
17 votes
1 answer
5k views

How can I get a list of the installed addons using the API?

How can I get a list of the installed addons and the version number so I can print out and use as a simple reference when checking for updated scripts? I've looked at ...
askinner432's user avatar
  • 1,065
14 votes
1 answer
9k views

Dynamic EnumProperty by type of selection

Iam searching for a method to get a EnumProperty by the type of the object (Lamp, Geo, Camera) thats selected in the viewport. E.g. If the selected object is a lamp, it would be nice the enum ...
p2or's user avatar
  • 16k
14 votes
2 answers
5k views

Why does operators bl_idname have to contain 1 dot?

Since anything before and after the dot is arbitrary, why bother? Related error: ...
int_ua's user avatar
  • 372
13 votes
3 answers
2k views

Is there a way to execute code before Blender is closing?

My add-on needs to do some clean-up action before it is ended. This is done in the unregister() function in __init__.py when the user unchecks the add-on in Blender'...
frisee's user avatar
  • 487
12 votes
3 answers
7k views

Object selection box in addon

In my addon panel, how can I have an object selection box? And what data type would I use to store the the selected object? It should look like this:
Garrett's user avatar
  • 6,596
12 votes
3 answers
5k views

How to automatically get a Add-on folder's path regardless of OS?

In Blender, is there a command to query what's the current path to the Add-on folder - regardless of what system I'm using?
Manu Järvinen's user avatar
12 votes
1 answer
3k views

How can I call a specific keymap to draw within my AddonPreferences?

The add-on I've written defines several custom hotkeys, allowing the user to call custom menus created by the add-on. To be more user-friendly, I'd like to make it easy for the user to change the ...
Jonathan Williamson's user avatar
11 votes
3 answers
4k views

How do I get a mesh data-block with modifiers and shape keys applied in Blender 2.8?

I'm trying to update an exporter to work with Blender 2.8 but can't seem to get a mesh data-block modified by modifiers or shape keys. It always gives me the base mesh. I'm currently using ...
Somebody285's user avatar

15 30 50 per page
1
2 3 4 5
81