<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>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 type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<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>

</body></html>