[Bf-python] Object.shareFrom function

jms jmsoler at free.fr
Mon Sep 15 21:15:34 CEST 2003


Michel Selten wrote:

>On Sun, 2003-09-14 at 12:26, jms wrote:
>  
>
>>Did this function work vorrevtly now?
>>    
>>
>
>Object.shareFrom() currently only works on Mesh objects. I have no clear
>idea how much it will take / what it will take to add support for the
>other object types.
>
>  
>
>>If it worked before, where can we  get
>>an example (blend file for instance) which
>>gives good results?
>>    
>>
>
>The following example works for me on a clear scene:
>
>import Blender
>
>src = Blender.Object.GetSelected()
>dst = Blender.Object.New ("Mesh")
>
>dst.shareFrom (src[0])
>
>scene = Blender.Scene.GetCurrent()
>scene.link (dst)
>
>  
>

Sorry, this does not work under win32.

Return:

Using a clean Global Dictionary.
In Object_GetSelected()
Traceback (most recent call last):
  File "Text", line 6, in ?
TypeError: argument 1 is not of type 'Object'

Regards.
jms
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.blender.org/pipermail/bf-python/attachments/20030915/f7a457f7/attachment.html>


More information about the Bf-python mailing list