Hello, everyone, i'm currently working on my own format's exporter, and have been stumbling upon the same block for some months now (i asked here about this some time ago but no response worked correctly).<div><br>

</div><div>My current exporter can succesfully export Single-scened files, multi-scene files are a real problem, because i cannot enter edit mode of my "non-current" scenes.</div><div><br></div><div>Namely, i iterate over each scene like this:</div>

<div><br></div><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">    arr_tmp = []</blockquote>

<blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">    for sce in bpy.data.scenes:</blockquote>

<blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">        bpy.context.screen.scene = sce</blockquote>

<blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><br></blockquote>

<blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">        if bpy.ops.screen.frame_jump.poll():</blockquote>

<blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">            bpy.ops.screen.frame_jump()</blockquote>

<blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">            arr_tmp.append(export_scene_json(sce, export_binary))</blockquote>

<blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">        else:</blockquote>

<blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">            raise Exception("Couldn't poll frame_jump")</blockquote>

</blockquote><div> </div><div>And it works flawlessly, but then, inside "export_scene_json" when i iterate over the objects an triangulate them, it cannot set the edit mode of the objects because it cannot poll "bpy.ops.object.mode_set".</div>

<div><br></div><div>I suppose this is because it is the second scene and blender hasn't set the current scene yet when i try to mode_set the objects.</div><div><br></div><div>Is there a way i can solve this? Does blender have a function like "wait for the new scene to be settled" or something?</div>

<div><br></div><div>I'm pulling out my hair here so please, bear with me :(</div><div><br clear="all">John Villar<br>Cell: (058)(416)926.86.45<br>
</div>