[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 18:09:23 CEST 2010


 

On October 5, 2010 at 3:38 PM Glen Pike <glen at engineeredarts.co.uk> wrote:

>   You might need to call Blender.Redraw(-1) 
Tried Redraw(-1) -- no difference
 
 

>
> 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/63f228c4/attachment.html>


More information about the Bf-python mailing list