Skip to main content

All Questions

Tagged with
0 votes
1 answer
2k views

Trouble with __init__.py loading addon with multple files

I've written a custom addon for a few Pie menus but can't figure out how to load them together from a __init.py Currently they are all split into these four files: ...
bastian's user avatar
  • 113
3 votes
1 answer
52k views

Calling a method from a string

I am trying to execute a line of code, such as: bpy.ops.object.modifier_add(type='SUBSURF') from a string of text. My code is: ...
Tritofic's user avatar
  • 375
3 votes
3 answers
7k views

Loading ASC files in blender

I need to import an ASC, which is a Digital Terrain Model, file into blender. Basically it's a matrix of points, each represented by a number corrisponding to his height. What's the best way to do ...
BelottiGhilardi's user avatar
3 votes
1 answer
266 views

Operator doesn't work when invoked from Panel, but works when invoked using the spacebar

I have defined an operator, which is called from a button in another operator's panel. The called operator is supposed to import a ply file into the scene. This is the relevant code: ...
ApoorvaJ's user avatar
  • 619