[Bf-python] obj.setLocation(x, y, z) and obj.LocX=x don't seem to work

Glen Pike glen at engineeredarts.co.uk
Tue Oct 5 17:38:18 CEST 2010


  You might need to call Blender.Redraw(-1)

http://www.blender.org/documentation/249PythonDoc/frames.html



On 05/10/2010 16:27, andrew2006 at flight.us wrote:
>
> 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
>
>
> _______________________________________________
> Bf-python mailing list
> Bf-python at blender.org
> http://lists.blender.org/mailman/listinfo/bf-python

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.blender.org/pipermail/bf-python/attachments/20101005/72d2167c/attachment.html>


More information about the Bf-python mailing list