<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
You might need to call Blender.Redraw(-1)<br>
<br>
<a
href="http://www.blender.org/documentation/249PythonDoc/frames.html">http://www.blender.org/documentation/249PythonDoc/frames.html</a><br>
<br>
<br>
<br>
On 05/10/2010 16:27, <a class="moz-txt-link-abbreviated" href="mailto:andrew2006@flight.us">andrew2006@flight.us</a> wrote:
<blockquote
cite="mid:1226373015.886801.1286292465366.JavaMail.open-xchange@oxusltgw05.schlund.de"
type="cite">
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<title></title>
<p style="margin: 0px;">hi, all</p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">i am very new to both blender, python and
blender python.</p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">I have a rudimentary script creating a
mesh primitive (cylinder)</p>
<p style="margin: 0px;">I get the object handle like so:
obj=Blender.Object.Get('cylmesh')</p>
<p style="margin: 0px;"> </p>
then I do
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">obj.setLocation(x,y,0.5)</p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">-- or, alternatively ---</p>
<p style="margin: 0px;">obj.LocX=x<br>
obj.LocY=y</p>
<p style="margin: 0px;">(my "x" and "y" are non-zero)</p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">but the mesh stays at the origin</p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">the "setLocation()" call doesn't seem to
have an effect, nor do the "Loc[X,Y,Z]" assignments</p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">yet, there are no errors reported</p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">blender version: 2.49b</p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">tia</p>
<p style="margin: 0px;">andrew</p>
<p style="margin: 0px;"> </p>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Bf-python mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Bf-python@blender.org">Bf-python@blender.org</a>
<a class="moz-txt-link-freetext" href="http://lists.blender.org/mailman/listinfo/bf-python">http://lists.blender.org/mailman/listinfo/bf-python</a>
</pre>
</blockquote>
<br>
</body>
</html>