Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 9529

Python is an interactive, 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.

2 votes
1 answer
820 views

Blender BGE: set up a counter (python)

But how can I get python to print: Spawned Objects 0001 are:, NameObject1, NameObject2 Spawned Objects 0002 are:, NameObject1, NameObject2 Spawned Objects 0003 are:, NameObject1, NameObject2 Spawned …
Sputi's user avatar
  • 451
0 votes
0 answers
151 views

Blender Game Engine: Order of vertices in a mesh

I have built some kind of random shape generator which in realtime alters the shape of a cube with 60 vertices. However I've noticed that the vertices aren't in any specific order (or are they?) so th …
Sputi's user avatar
  • 451
3 votes
1 answer
350 views

Transfer Python code from Blender Render to Blender Game Engine

I have a script that randomly spawns objects in blender render. Now is there an easy way to transfer that code so that it works as a "game" in blender game engine? Or do I need to start from scratch a …
Sputi's user avatar
  • 451
3 votes
1 answer
2k views

BGE python: get list of vertices

i want to iterate through every single vertex of an object and then store them in a list. what I have so far is: for mesh in object.meshes: for m_index in range(len(mesh.materials)): for v_ …
Sputi's user avatar
  • 451
6 votes
1 answer
4k views

Random object color via python

I do some testing for further learning python. My setup is an Empty that spawns a cube every 60 tics on a random position. Now what I want is those cubes also get a random color. …
Sputi's user avatar
  • 451
2 votes
1 answer
676 views

Spawn object after animation finishes in Python

, I'd like to spawn an object on a random position with Python. If there are 10 objects spawned stop the animation and change camera angle to another scene. …
Sputi's user avatar
  • 451
0 votes
1 answer
2k views

blender game: spawn object

has anybody an idea why this script doesn't work? The object "Sphere" is on a separate layer. "addOne" is a property who generates random integers from 1–10. import random from bge import logic impo …
Sputi's user avatar
  • 451
3 votes
1 answer
777 views

Setting A Circle's Rotation From A Changing Number in the BGE

I have a timer that counts from 82 to -82 and back. And I have a circle that should rotate (x rotation) from 82 to -82 and back. How can I assign the timer number to the x rotation number of the circ …
Sputi's user avatar
  • 451
2 votes
1 answer
672 views

BGE: altering a cube's shape in realtime (python)

how is it possible to get all vertices of an object (say a cube) and then randomly change their location? What I want to do is everytime I hit space, the cube alters and generate random shapes. What …
Sputi's user avatar
  • 451
4 votes
1 answer
2k views

BGE: realtime random shape generator (python)

If that is true, how could I write that down in python? …
Sputi's user avatar
  • 451
1 vote
1 answer
628 views

Randomly switch camera and start animation with Python

Is that even possible in Blender using Python? …
Sputi's user avatar
  • 451
0 votes
0 answers
252 views

Blender game: get face orientation (stacking blocks)

I have a cube and I want to spawn another cube right on top of it. (it should work for other shapes like a pyramid, too). The tricky part is, that the first cube (or pyramid) moves randomly around. S …
Sputi's user avatar
  • 451