Hello,<br><br>Nobody to help me ?<br><br>It is quite strange to have a different way to work in console and in a script ...<br><br>Regards,<br><br><div class="gmail_quote">On Wed, Mar 23, 2011 at 8:28 AM, revuedelibre . <span dir="ltr"><<a href="mailto:revuedelibre@gmail.com">revuedelibre@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hello,<br><br>Is there a solution to change Scene by python API ?<br><br>I found that we can change it by screen.scene = bpy.data.scene['NewScene'].<br>
<br>Juste after that, bpy.ops.mesh.primitive_cube_add() have does :<br>
<br>- add a cube in the new selected scene when these 2 actions are done step by step in python console<br>- add a cube in previous selected scene when these 2 actions are in a script.<br><br>--> Strange to have a difference in these 2 actions<br>

<br><br>And what about background mode ( not tested ) ? It's quite strange to use "screen" for change scene in background mode ( no screen ! )<br><br>Thanks & Regards,<br><br>Ju<br>
</blockquote></div><br>