if the mesh is dynamic you need to call update.<div>ob.getData().update()</div><div>and its not a bad idea to remake the display lists</div><div>ob.makeDisplayList()</div><div><br><br><div class="gmail_quote">On Wed, Oct 6, 2010 at 12:27 AM, Glen Pike <span dir="ltr"><<a href="mailto:glen@engineeredarts.co.uk">glen@engineeredarts.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

  
    
  
  <div bgcolor="#ffffff" text="#000000">
    Hmm,<br>
    <br>
        Okay...<br>
    <br>
        Not sure about dynamic meshes - check you are not still in
    Editing mode
<a href="http://www.blender.org/documentation/249PythonDoc/Window-module.html#EditMode" target="_blank">http://www.blender.org/documentation/249PythonDoc/Window-module.html#EditMode</a><br>
    <br>
        1.    Try moving an object you have not created with a script -
    you probably did that already.<br>
        2.    Try placing your mesh at a non-zero location - might be a
    problem when creating it.<br>
        3.    When you get your mesh, can you see the location from
    getLocation()?<br>
    <br>
        Apart from that I can't really help much, sorry.<br><font color="#888888">
    <br>
        Glen</font><div><div></div><div class="h5"><br>
    <br>
        <br>
    <br>
    On 05/10/2010 17:09, <a href="mailto:andrew2006@flight.us" target="_blank">andrew2006@flight.us</a> wrote:
    <blockquote type="cite">
      
      
      <p style="margin:0px"><span></span></p>
      <p> </p>
      <div style="margin:5px 0px;font-family:monospace"> On October
        5, 2010 at 3:38 PM Glen Pike <a href="mailto:glen@engineeredarts.co.uk" target="_blank"><glen@engineeredarts.co.uk></a>
        wrote:<br>
        <br>
        >   You might need to call Blender.Redraw(-1) </div>
      <p style="margin:0px"> </p>
      <p style="margin:0px">Tried Redraw(-1) -- no difference</p>
      <p style="margin:0px"> </p>
      <p style="margin:0px"> </p>
      <div style="margin:5px 0px;font-family:monospace"> ><br>
        >
        <a href="http://www.blender.org/documentation/249PythonDoc/frames.html" target="_blank">http://www.blender.org/documentation/249PythonDoc/frames.html</a><br>
        ><br>
        ><br>
        ><br>
        > On 05/10/2010 16:27, <a href="mailto:andrew2006@flight.us" target="_blank">andrew2006@flight.us</a> wrote:<br>
        > ><br>
        > > hi, all<br>
        > ><br>
        > > i am very new to both blender, python and blender
        python.<br>
        > ><br>
        > > I have a rudimentary script creating a mesh primitive
        (cylinder)<br>
        > ><br>
        > > I get the object handle like so:
        obj=Blender.Object.Get('cylmesh')<br>
        > ><br>
        > > then I do<br>
        > ><br>
        > > obj.setLocation(x,y,0.5)<br>
        > ><br>
        > > -- or, alternatively ---<br>
        > ><br>
        > > obj.LocX=x<br>
        > > obj.LocY=y<br>
        > ><br>
        > > (my "x" and "y" are non-zero)<br>
        > ><br>
        > > but the mesh stays at the origin<br>
        > ><br>
        > > the "setLocation()" call doesn't seem to have an
        effect, nor do the<br>
        > > "Loc[X,Y,Z]" assignments<br>
        > ><br>
        > > yet, there are no errors reported<br>
        > ><br>
        > > blender version: 2.49b<br>
        > ><br>
        > > tia<br>
        > ><br>
        > > andrew<br>
        > ><br>
        > ><br>
        > > _______________________________________________<br>
        > > Bf-python mailing list<br>
        > > <a href="mailto:Bf-python@blender.org" target="_blank">Bf-python@blender.org</a><br>
        > > <a href="http://lists.blender.org/mailman/listinfo/bf-python" target="_blank">http://lists.blender.org/mailman/listinfo/bf-python</a><br>
        ><br>
      </div>
      <pre><fieldset></fieldset>
_______________________________________________
Bf-python mailing list
<a href="mailto:Bf-python@blender.org" target="_blank">Bf-python@blender.org</a>
<a href="http://lists.blender.org/mailman/listinfo/bf-python" target="_blank">http://lists.blender.org/mailman/listinfo/bf-python</a>
</pre>
    </blockquote>
    <br>
  </div></div></div>

<br>_______________________________________________<br>
Bf-python mailing list<br>
<a href="mailto:Bf-python@blender.org">Bf-python@blender.org</a><br>
<a href="http://lists.blender.org/mailman/listinfo/bf-python" target="_blank">http://lists.blender.org/mailman/listinfo/bf-python</a><br>
<br></blockquote></div><br></div>