[Bf-python] Object.shareFrom function

Michel Selten michel.s at home.nl
Mon Sep 15 19:16:22 CEST 2003


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)


With regards,
	Michel





More information about the Bf-python mailing list