<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Blender’s rendered viewport keeps the session alive while objects are added and removed. When you run Blender in a debugger, you can set a breakpoint in objects.cpp Object::~Object() to get a call stack of when and where that happens or you can step through BlenderSession::synchronize() in blender_session.cpp to get the full picture of how Blender updates a Cycles session with object changes.<div class=""><br class=""></div><div class="">-Stefan<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 19. Dec 2018, at 11:03, Cédric PAILLE <<a href="mailto:cedricpaille@gmail.com" class="">cedricpaille@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Thank you for your reply, As I understand, there is no way to add/remove objects interactively. It seems (maybe I'm wrong) that the session deleted, then re-created after a scene change. Anyone can confirm ?</div><br class=""><div class="gmail_quote"><div dir="ltr" class="">On Tue, Dec 18, 2018 at 8:06 PM Mohamed Sakr <<a href="mailto:3dsakr@gmail.com" class="">3dsakr@gmail.com</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="">Hi,<br class=""><br class="">in general, follow what blender exporter does (files under Blender/ in the Cycles Standalone repo).<br class="">you may need to do a tag update that is probably missing and causing your crash.<br class=""><br class="">cheers,<br class="">Mohamed Sakr</div><br class=""><div class="gmail_quote"></div><div class="gmail_quote"><div dir="ltr" class="">On Tue, Dec 18, 2018 at 1:10 PM Cédric PAILLE <<a href="mailto:cedricpaille@gmail.com" target="_blank" class="">cedricpaille@gmail.com</a>> wrote:<br class=""></div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr" class="">Hi,<div class=""><br class=""></div><div class="">I'm new to the list, and I'm trying to integrate Cycles in our pipeline. It's working pretty well, but I'm stuck when it comes to add/remove objects from the scene in interactive mode. I tried to pause the session, but I always get a crash when I delete object from the scene (scene.objects vector)</div><div class=""><br class=""></div><div class="">Is there a developper documentation about that ?</div><div class=""><br class=""></div><div class="">Thank you and congratulation for the great job.</div></div></blockquote></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
_______________________________________________<br class="">
Bf-cycles mailing list<br class="">
<a href="mailto:Bf-cycles@blender.org" target="_blank" class="">Bf-cycles@blender.org</a><br class="">
<a href="https://lists.blender.org/mailman/listinfo/bf-cycles" rel="noreferrer" target="_blank" class="">https://lists.blender.org/mailman/listinfo/bf-cycles</a><br class="">
</blockquote></div>
_______________________________________________<br class="">
Bf-cycles mailing list<br class="">
<a href="mailto:Bf-cycles@blender.org" target="_blank" class="">Bf-cycles@blender.org</a><br class="">
<a href="https://lists.blender.org/mailman/listinfo/bf-cycles" rel="noreferrer" target="_blank" class="">https://lists.blender.org/mailman/listinfo/bf-cycles</a><br class="">
</blockquote></div>
_______________________________________________<br class="">Bf-cycles mailing list<br class=""><a href="mailto:Bf-cycles@blender.org" class="">Bf-cycles@blender.org</a><br class="">https://lists.blender.org/mailman/listinfo/bf-cycles<br class=""></div></blockquote></div><br class=""></div></body></html>