<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>for completeness of this thread :</p>
<p>Zack Lee schreef op 09-03-2020 0:03:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<div dir="ltr">
<div>"<span style="font-family: Verdana,Geneva,sans-serif; font-size: 13.3333px;">with the Lua script the the 'old' instance is replaced by a fresh one everytime [ofSetup] is done."</span></div>
<div><span style="font-family: Verdana, Geneva, sans-serif;"><span style="font-size: 13.3333px;">-> Yes, this is true. In Ofelia Pd object, the instance is created only once when the object is created.</span></span></div>
<div><span style="font-family: Verdana, Geneva, sans-serif;"><span style="font-size: 13.3333px;"> </span></span></div>
<div><span style="font-family: Verdana, Geneva, sans-serif;"><span style="font-size: 13.3333px;">It seems some OF classes don't work properly once the window is destroyed.</span></span></div>
<div><span style="font-family: Verdana, Geneva, sans-serif;"><span style="font-size: 13.3333px;">Basically, OF was designed to close the window only </span></span><span style="font-size: 13.3333px; font-family: Verdana,Geneva,sans-serif;">when the app is quitting.</span></div>
<div><span style="font-size: 13.3333px; font-family: Verdana,Geneva,sans-serif;"> </span></div>
<div><span style="font-size: 13.3333px; font-family: Verdana,Geneva,sans-serif;">For now, if you find such an issue, I think you should write a Lua script to fix it.</span></div>
<div><span style="font-size: 13.3333px; font-family: Verdana,Geneva,sans-serif;"> </span></div>
<div><span style="font-size: 13.3333px; font-family: Verdana,Geneva,sans-serif;">Best, </span></div>
<div><span style="font-size: 13.3333px; font-family: Verdana,Geneva,sans-serif;">Zack</span></div>
<div><span style="font-family: Verdana, Geneva, sans-serif;"><span style="font-size: 13.3333px;"> </span></span></div>
</div>
<br />
<div class="gmail_quote">
<div class="gmail_attr" dir="ltr">2020년 3월 8일 (일) 오전 7:07, <<a href="mailto:rolfm@dds.nl" rel="noreferrer">rolfm@dds.nl</a>>님이 작성:</div>
<blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left: 1px solid #cccccc; padding-left: 1ex;">
<div style="font-size: 10pt; font-family: Verdana,Geneva,sans-serif;">
<p>thanks Zack, your solution works.</p>
<p>you put the creation of the ofEasyCam instance in a Lua script where i used the Ofelia Pd object.</p>
<p>with the Lua script the the 'old' instance is replaced by a fresh one everytime [ofSetup] is done.</p>
<p>am i right this shows  a significant difference between the two patching methods.</p>
<p>is this only with [ofSetup] ?</p>
<p>rolf</p>
<p><br /></p>
<p>Zack Lee schreef op 07-03-2020 5:56:</p>
<blockquote style="padding: 0px 0.4em; border-left: 2px solid #1010ff; margin: 0px;">
<div dir="ltr">Hi Rolf,
<div> </div>
<div>I think it is [ofEasyCam]'s problem.</div>
<div>After you recreate the window, if you also recreate [ofEasyCam MA-cam] object and call "setupPerspective()", it works again.</div>
<div> </div>
<div>One way to fix this could be to recreate the ofEasyCam class instance whenever the window is created.</div>
<div>I attached the patch that does this. Let me know if you still have the problem.</div>
<div> </div>
<div>Regards,</div>
<div>Zack</div>
<div> </div>
</div>
<br />
<div class="gmail_quote">
<div class="gmail_attr" dir="ltr">2020년 3월 5일 (목) 오전 7:21, <<a href="mailto:rolfm@dds.nl" rel="noreferrer">rolfm@dds.nl</a>>님이 작성:</div>
<blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left: 1px solid #cccccc; padding-left: 1ex;">
<div style="font-size: 10pt; font-family: Verdana,Geneva,sans-serif;">
<p>hi,</p>
<p>(windows 10, pd-50.0)</p>
<p>1. after destroy and create of the ofWindow i cannot use the mouse anymore to move the EasyCam.</p>
<p>until now i didn't find a solution (workaround) for this.</p>
<p>2. when doing destroy and create in the same message the result seems to be unpredictable.</p>
<p>   using a [del 200] between destroy and create 'solves' this. (the 200 is just a choice).</p>
<p>3. after a reset (destroy and create ofWindow) my objects are at a position different from the one after initializing.</p>
<p>   (could this be connected with the EasyCam problem?)</p>
<p>  i've 'solved' this by doing the first reset automatically after initialisation.</p>
<p>  </p>
<p>attached is a test patch demonstrating 1. and 3.</p>
<p><br /></p>
<p>i'm using the Pd objects of Ofelia (not Lua  script)  because it's easier for me to embed it in a bigger patch </p>
<p>where data are send to different OF sub-patches.</p>
<p><br /></p>
<p>has anybody else encountered these problems?</p>
<p><br /></p>
<p>rolf</p>
<p><br /></p>
<p>@zack</p>
<p>as you can see i'm making progress.</p>
</div>
</blockquote>
</div>
</blockquote>
<p><br /></p>
</div>
</blockquote>
</div>
</blockquote>
<p><br /></p>

</body></html>