<?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 Re: Move Camera Using Xbox Controller in Navisworks API Forum</title>
    <link>https://forums.autodesk.com/t5/navisworks-api-forum/move-camera-using-xbox-controller/m-p/8929626#M3196</link>
    <description>Yes several have attempted this including our company. We concluded that if users are to use xbox or playstation controllers as a input device for Navisworks, then Autodesk have to provide the support built-in - it is too cumbersome to fiddle with ourselfs. We did get it to a point where we could navigate with a controller, but it did not feel 100% like a native part of the application.&lt;BR /&gt;The reason you see a crash is because you are not allowed to change current(active) view directly - you always have to use the "copyto" method&lt;BR /&gt;Like so:&lt;BR /&gt;// update current viewpoint&lt;BR /&gt;oDoc.CurrentViewpoint.CopyFrom(oCurrVCopy);&lt;BR /&gt;&lt;BR /&gt;br&lt;BR /&gt;Ulrik&lt;BR /&gt;</description>
    <pubDate>Thu, 25 Jul 2019 07:18:37 GMT</pubDate>
    <dc:creator>ulski1</dc:creator>
    <dc:date>2019-07-25T07:18:37Z</dc:date>
    <item>
      <title>Move Camera Using Xbox Controller</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/move-camera-using-xbox-controller/m-p/8928971#M3195</link>
      <description>&lt;P&gt;Hello all. I am trying to move the camera through a model using my own control system. So far I have the code to make a plugin and currently, when you click on the plugin, the document name will get printed out, and when you have selected items, it will move the camera to view each selected item one by one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is, how can I move the camera by a certain step repeatedly? My current attempt is to create a new thread that runs all this code, but when I try to update the document viewpoint, the application crashes. Have there been similar projects like this? Is there something I am missing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the help!&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2019 20:39:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/move-camera-using-xbox-controller/m-p/8928971#M3195</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-24T20:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: Move Camera Using Xbox Controller</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/move-camera-using-xbox-controller/m-p/8929626#M3196</link>
      <description>Yes several have attempted this including our company. We concluded that if users are to use xbox or playstation controllers as a input device for Navisworks, then Autodesk have to provide the support built-in - it is too cumbersome to fiddle with ourselfs. We did get it to a point where we could navigate with a controller, but it did not feel 100% like a native part of the application.&lt;BR /&gt;The reason you see a crash is because you are not allowed to change current(active) view directly - you always have to use the "copyto" method&lt;BR /&gt;Like so:&lt;BR /&gt;// update current viewpoint&lt;BR /&gt;oDoc.CurrentViewpoint.CopyFrom(oCurrVCopy);&lt;BR /&gt;&lt;BR /&gt;br&lt;BR /&gt;Ulrik&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Jul 2019 07:18:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/move-camera-using-xbox-controller/m-p/8929626#M3196</guid>
      <dc:creator>ulski1</dc:creator>
      <dc:date>2019-07-25T07:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: Move Camera Using Xbox Controller</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/move-camera-using-xbox-controller/m-p/8930668#M3197</link>
      <description>&lt;P&gt;I am using the CopyFrom method now, the trouble is that method won't work on a separate thread. My goal is when an user clicks on the plugin, the Execute method will start a new thread and exit. The new thread will run in an infinite loop getting controller input, and moving the camera. The CopyFrom method does not seem to work on a separate thread and I was wondering if there was a way around that.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 15:08:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/move-camera-using-xbox-controller/m-p/8930668#M3197</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-25T15:08:27Z</dc:date>
    </item>
  </channel>
</rss>

