Is it possible to link a World to the current Scene?

Scripting in Blender with Python, and working on the API

Moderators: jesterKing, stiv

Post Reply
flippyneck
Posts: 0
Joined: Thu Jul 31, 2003 10:34 am
Contact:

Is it possible to link a World to the current Scene?

Post by flippyneck »

I asked this at Elysiun but there don't seem to be any takers. I'm trying to link a newly created world to the current scene, but this...

Code: Select all

import Blender 

sc = Blender.Scene.GetCurrent() 
w = Blender.World.New('Test') 
w.setHor([1,0,0]) 

sc.link(w) 
 
...does not work. Can anyone help me out here please?

Post Reply