xuv's notebook

Side notes, howtos and random bits of information related to Julien Deswaef's projects

User Tools

Site Tools


workshops:blender:python_tools_in_blender

This is an old revision of the document!


>>> for objects in bpy.data.objects:
...     print(objects.name)
...     
Camera
Cube
Lamp
 
>>> for object in bpy.data.objects:
...     print(object)
...     
<bpy_struct, Object("Camera")>
<bpy_struct, Object("Cube")>
<bpy_struct, Object("Lamp")>
 
>>> for object in bpy.data.objects:
...     print(object.location)
...     
<Vector (7.9362, -7.1326, 3.8174)>
<Vector (0.0000, 0.0000, 0.0000)>
<Vector (4.0762, 1.0055, 5.9039)>
 
>>> a = 10
>>> print(a)
10
 
>>> for object in bpy.data.objects:
...     print(object.location.x)
...     
7.93615198135376
0.0
4.076245307922363
workshops/blender/python_tools_in_blender.1434668322.txt.gz · Last modified: 2015/06/19 00:58 by Julien Deswaef