Posted: Tue Aug 07, 2012 3:23 pm
Joined: 07 Aug 2012
Posts: 2
hello
I have a scene where I added "Group Instance".
These "Group Instance" are Link (not Append) from a Library .blend file.
My problem is: in my python script, these instances are EMPTY types.
This comes as no surprise given that liked object are not mesh
but, how to get their data anyway?
merci beaucoup!
Posted: Wed Aug 08, 2012 11:15 pm
Joined: 05 Apr 2009
Posts: 699
i'm not sure if this is what you are looking for but...
there is a "Make duplicates real" function, to turn dupli stuff into real meshes.
_________________
I'm sitting, waiting, wishing, building Blender in superstition...
Posted: Thu Aug 09, 2012 12:29 pm
Joined: 07 Aug 2012
Posts: 2
hello CoDEmanX, no i whant do this methode
recently i try somethings like this:
| Code: |
bScene = context.scene
for bObject in bScene.objects:
print( bObject.type ) # show> EMPTY
pprint.pprint( bObject ) # show> bpy.data.objects['myLikedObj']
bObject.dupli_list_create(bScene)
bObject.to_mesh(self.gBScene, True, 'PREVIEW')
|
unfortunately to_mesh() return me RuntimeError: Error: Object does not have geometry data