Skip to main content

Questions tagged [python]

Python is an object-oriented programming language. In Blender, it is used as a general purpose scripting language and to create add-ons to extend Blender's functionality.

Filter by
Sorted by
Tagged with
7 votes
2 answers
2k views

Return list of associated vertex index, weight values for a given vertex_group

I am currently porting some code from the 2.49 API to the 2.6 API and looking for a nice way to replace this function call ...
neomonkeus's user avatar
15 votes
2 answers
3k views

PyNodes, the bare basics

I know it's a very new thing (post 2.4 era anyways) but there seems to be very little documentation and examples for PyNodes in general, and the little there is doesn't seem to work in latest SVN (...
Greg Zaal's user avatar
  • 10.8k
7 votes
4 answers
14k views

How to Set a Property Value in Blender Game Engine?

How would I set a property value with python in the Blender game engine?
CharlesL's user avatar
  • 15.4k
9 votes
1 answer
8k views

Get the rotation of an object in the game engine

How would I get an object's rotation and set that as another's velocity? Like if I had Object A, that has the rotation data, and Object ...
V360's user avatar
  • 93
6 votes
2 answers
962 views

Run additional code after user has executed and finished an operator

The script https://gist.github.com/zeffii/5671824 creates a polysphere, but allows the user to set how spherical it is and how many subdivisions it has and its radius as parameters. The problem is ...
zeffii's user avatar
  • 39.7k
4 votes
1 answer
1k views

Create a shortcut to pause Preview viewport Cycles rendering?

I'm fairly sure to create the shortcut for pausing the cycles preview render starts with wm.context_toggle, but when I put in ...
CharlesL's user avatar
  • 15.4k
6 votes
1 answer
494 views

How can I make parts of a menu context sensitive in Python?

I am attempting to make a custom menu in Python that is context sensitive. Such that it's contents vary depending on which mode your currently in (e.g. Edit mode or Object mode). However, when using ...
Jonathan Williamson's user avatar
7 votes
0 answers
1k views

Setup of PyDev and Eclipse for Blender Add-Ons [closed]

I followed the instructions in this ebook Programming Add-Ons for Blender 2.5 to setup a development environment. Currently I try to debug an installed add-on called Bloop although it seems to work, ...
stacker's user avatar
  • 38.7k
15 votes
4 answers
14k views

How to make Blender use Python2.x?

When Blender is installed, it creates its own copy of Python 3.x. However, I prefer to code in Python 2.x. This makes it difficult for me to work with newer versions of Blender. I would like to know ...
Gwen's user avatar
  • 11.6k
7 votes
2 answers
2k views

How can the Blender API be used to access Blender from another application?

Take Openshot for example. It has some form of Blender integration and is written in Python. I'm not sure if it directly accesses Blender's API or if it simply generates a ...
A Wild RolandiXor Has Appeared's user avatar

1
262 263 264 265
266