Previous Thread  Next Thread

chat icon How to export object data from a linked object?

el_filipe

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!
Reply with quote


CoDEmanX

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...
Reply with quote


el_filipe

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
Reply with quote


 
Jump to:  
Powered by phpBB © 2001, 2005 phpBB Group