<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic RenderPlugin, changing its parameters from another plugin, do I need to use Lock? in Navisworks API Forum</title>
    <link>https://forums.autodesk.com/t5/navisworks-api-forum/renderplugin-changing-its-parameters-from-another-plugin-do-i/m-p/12025885#M1312</link>
    <description>&lt;P&gt;I have a RenderPlugin that use settings that are changed by my main plugin.&lt;/P&gt;&lt;P&gt;Wondering if I need to put in place some mechanism (aka lock pLockObject) to ensure I'm not rendering while the settings are ongoing changes?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Having to put lock is feasible but make the code more complex + slow down the rendering if I need to lock on Render/Overlay method entry.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, provided the changes are done in my main plugin in response to a command, could I safely assume the Renderer Overlay/Render methods will not be called during that time?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Sun, 11 Jun 2023 14:37:10 GMT</pubDate>
    <dc:creator>alexisDVJML</dc:creator>
    <dc:date>2023-06-11T14:37:10Z</dc:date>
    <item>
      <title>RenderPlugin, changing its parameters from another plugin, do I need to use Lock?</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/renderplugin-changing-its-parameters-from-another-plugin-do-i/m-p/12025885#M1312</link>
      <description>&lt;P&gt;I have a RenderPlugin that use settings that are changed by my main plugin.&lt;/P&gt;&lt;P&gt;Wondering if I need to put in place some mechanism (aka lock pLockObject) to ensure I'm not rendering while the settings are ongoing changes?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Having to put lock is feasible but make the code more complex + slow down the rendering if I need to lock on Render/Overlay method entry.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, provided the changes are done in my main plugin in response to a command, could I safely assume the Renderer Overlay/Render methods will not be called during that time?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 14:37:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/renderplugin-changing-its-parameters-from-another-plugin-do-i/m-p/12025885#M1312</guid>
      <dc:creator>alexisDVJML</dc:creator>
      <dc:date>2023-06-11T14:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: RenderPlugin, changing its parameters from another plugin, do I need to use Lock?</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/renderplugin-changing-its-parameters-from-another-plugin-do-i/m-p/12026273#M1313</link>
      <description>&lt;P&gt;Add one bool variable to control render plugin to work or stop.&lt;BR /&gt;Adding simple if condition does not cause slow down issue.&lt;BR /&gt;&lt;A href="https://forums.autodesk.com/t5/navisworks-api/call-render-plugin-through-addinplugin/td-p/9430718" target="_blank" rel="noopener"&gt;https://forums.autodesk.com/t5/navisworks-api/call-render-plugin-through-addinplugin/td-p/9430718&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 22:11:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/renderplugin-changing-its-parameters-from-another-plugin-do-i/m-p/12026273#M1313</guid>
      <dc:creator>tetsuya_miwa</dc:creator>
      <dc:date>2023-06-11T22:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: RenderPlugin, changing its parameters from another plugin, do I need to use Lock?</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/renderplugin-changing-its-parameters-from-another-plugin-do-i/m-p/12028369#M1314</link>
      <description>That's actually what I did, but using Interlocked.XXX just in case &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;BR /&gt;Thanks for the suggestion and the link.</description>
      <pubDate>Mon, 12 Jun 2023 17:17:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/renderplugin-changing-its-parameters-from-another-plugin-do-i/m-p/12028369#M1314</guid>
      <dc:creator>alexisDVJML</dc:creator>
      <dc:date>2023-06-12T17:17:55Z</dc:date>
    </item>
  </channel>
</rss>

