[Bf-python] obj.setLocation(x, y, z) and obj.LocX=x don't seem to work
andrew2006 at flight.us
andrew2006 at flight.us
Tue Oct 5 17:27:45 CEST 2010
hi, all
i am very new to both blender, python and blender python.
I have a rudimentary script creating a mesh primitive (cylinder)
I get the object handle like so: obj=Blender.Object.Get('cylmesh')
then I do
obj.setLocation(x,y,0.5)
-- or, alternatively ---
obj.LocX=x
obj.LocY=y
(my "x" and "y" are non-zero)
but the mesh stays at the origin
the "setLocation()" call doesn't seem to have an effect, nor do the "Loc[X,Y,Z]"
assignments
yet, there are no errors reported
blender version: 2.49b
tia
andrew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.blender.org/pipermail/bf-python/attachments/20101005/f67a757c/attachment.html>
More information about the Bf-python
mailing list