cool
(cool)
1
I was looking for a tutorial on how to script in blender. this is what i found.
http://www.linux-magazine.com/issue/03/Blender.pdf
I am using blender2.40
This is what i typed:
import Blender
obj = Blender.Object.Get(“Plane”)
obj.LocX = obj.LocX + 0.5
obj.RotZ = obj.RotZ + 0.2
Blender.Redraw()
i got an error message
Traceback (most recent call last):
File “Text.001”, line 2, in ?
AttributeError: Unknown object specified.
what i am i doing wrong?
LetterRip
(LetterRip)
2
Hi,
in recent versions of blender the default object is a Cube not a plane, so use ‘Cube’ instead of ‘Plane’
LetterRip
LetterRip
(LetterRip)
4
don’t know what to tell you, it works perfectly here.
import Blender
obj = Blender.Object.Get(“Cube”)
obj.LocX = obj.LocX + .5
obj.RotZ = obj.RotZ + .2
Blender.Redraw()
you must have a typo of some sort. Just copy and paste that and try it.
LetterRip
stiv
(stiv)
5
obj = Blender.Object.Get("Plane")
That line gets an object by name. Instead of “Plane”, use the actual name of the object you want.