<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
For my purposes All I need is an ibject method.<br>
<br>
We have-<br>
obj.getData()<br>
obj.getType()<br>
<br>
A usefull function would be <br>
<br>
obj.getDataName()<br>
<br>
Since this would work for all data types and then this would be usefull
in many situateion- Notjust for meshs. And also, it sidesteps the issue
of there being an inconsistancy where NMesh.Get() returning names would
be unlike Image.Get - Etc.<br>
<br>
nmeshNames = []<br>
for obj in Object.GetSelected():<br>
    if obj.getType() == "Mesh":<br>
       name = obj.getDataName()<br>
       if name not in nmeshNames:<br>
          nmeshNames.append(name)<br>
<br>
Its still not so nice since it dosent give a list of nmesh names buyt I
think its better then having to expose the data of many objects when
all you need is the name.<br>
<br>
<br>
<br>
<br>
Yann Vernier wrote:
<blockquote cite="mid20041113222843.GA30812@donkey.dyndns.org"
 type="cite">
  <pre wrap="">On Sat, Nov 13, 2004 at 01:17:45PM +0100, jms wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">For the moment the empty GetRaw() returns a "new"  Mesh not the list of 
the meshes.
It works like the NMesh.New() function.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Thanks for the reminder, I had forgotten that. Yet another bit of
inconsistent interfaces.. oddly enough, we also have a
Blender.Library.Datablocks() call that does this sort of thing. Might
make sense to make a Blender.Datablocks() call that would do the same
for the current Blender file rather than the linked Library, or
something like that?

  </pre>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Bf-python mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Bf-python@projects.blender.org">Bf-python@projects.blender.org</a>
<a class="moz-txt-link-freetext" href="http://projects.blender.org/mailman/listinfo/bf-python">http://projects.blender.org/mailman/listinfo/bf-python</a>
  </pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">-- 
Campbell J Barton

133 Hope Street
Geelong West, Victoria 3218 Australia

URL:    <a class="moz-txt-link-freetext" href="http://www.metavr.com">http://www.metavr.com</a>
e-mail: <a class="moz-txt-link-abbreviated" href="mailto:cbarton@metavr.com">cbarton@metavr.com</a>
phone: AU (03) 5229 0241
</pre>
</body>
</html>