0
$\begingroup$

I created two materials for world, World and WorldMask. How to change world from World to WorldMask using python script?

$\endgroup$
  • $\begingroup$ I've found a solution: bpy.context.scene.world = bpy.data.worlds['WorldMask'] $\endgroup$ – quarkpol Sep 13 '19 at 6:28
  • $\begingroup$ Please write this in the answer field and to add it as an answer. You can always answer your own question, if you find a solution. This will be helpful for others in the future who find your Q. $\endgroup$ – Leander Sep 13 '19 at 6:44
0
$\begingroup$

I've found a solution bpy.context.scene.world = bpy.data.worlds['WorldMask']

|improve this answer|||||
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for?Browse other questions tagged or ask your own question.