<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title></title>
</head>
<body>
<p style="margin: 0px;"><span></span></p>
<p> </p>
<div style="margin: 5px 0px 5px 0px; font-family: monospace;">
On October 11, 2010 at 6:08 AM Stephen Swaney <sswaney@centurytel.net> wrote:<br />
<br />
> On Mon, Oct 11, 2010 at 01:15:22AM -0400, andrew2006@flight.us wrote:<br />
> ><br />
> > <br />
> ><br />
> > On October 11, 2010 at 4:22 AM Stephen Swaney <sswaney@centurytel.net> wrote:<br />
> > <br />
> > > To refer to an object by name, you have to use its actual name.<br />
> > <br />
> > No! that has been my point all along. Using the original (actual?) name does not<br />
> > work for me (see original post), but using the name plus the ".001" does. Like<br />
> > so:<br />
> > <br />
> > Blender.Object.Get('name_i_originally_gave.001')<br />
><br />
> Uh, yes! To refer to an object by name, you must use the actual object name.<br />
> You are over-thinking this. I am not sure how to make this any clearer than<br />
> repeating what we have already said. Go read what Alberto wrote and think about<br />
> the implications.<br />
</div>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">with the following code, my new mesh object remains at the origin, in spite of the setLocation line:</p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">myscene.objects.new(me,'cylmesh')<br />
meshobj=Blender.Object.Get('cylmesh')</p>
<p style="margin: 0px;">meshobj.setLocation(newx, newy, newz)</p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">but with the following code, the new mesh object does get relocated to (newx, newy, newz):</p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">myscene.objects.new(me,'cylmesh')<br />
meshobj=Blender.Object.Get('cylmesh.001')<br />
meshobj.setLocation(newx, newy, newz)</p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">the difference is the ".001" suffix</p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">Thus, I don't understand what you guys mean when you say I should "use the actual object name".</p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">What IS the actual object name? What works for me is the "Blender.Object.Get('cylmesh.001')" reference, not the Blender.Object.Get('cylmesh'). Is 'cylmesh' the actual name, because I used it when calling myscene.objects.new(...)? Or "cylmesh.001" is the actual name??</p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">a.</p>
<br />
<br />
<br />
<div style="margin: 5px 0px 5px 0px; font-family: monospace;">
> > S.<br />
> --<br />
> Stephen Swaney <br />
> sswaney@centurytel.net<br />
><br />
> _______________________________________________<br />
> Bf-python mailing list<br />
> Bf-python@blender.org<br />
> http://lists.blender.org/mailman/listinfo/bf-python<br />
</div>
</body>
</html>