<?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: How to change model when 3D button is clicked in Vuforia Studio</title>
    <link>https://www.ptcusercommunity.com/t5/Vuforia-Studio/How-to-change-model-when-3D-button-is-clicked/m-p/728830#M9794</link>
    <description>&lt;P&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/424978"&gt;@Adrian_G.&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;For 3D Eyewear experiences, you can use 3D Button to set the source of the model dynamically. The logic is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1&amp;gt; Define an application parameter, like "modelSelect"&lt;/P&gt;
&lt;P&gt;2&amp;gt; Upload the Models to the resources&lt;/P&gt;
&lt;P&gt;3&amp;gt; Create a JS script like below to set the source of the "model-1" widget based on the value of "modelSelect". Call the function for the click of the 3D button:&lt;/P&gt;
&lt;P&gt;/////////////////////////////////////////////////////////////////////////////&lt;/P&gt;
&lt;P&gt;$scope.changeModel = function (modelSelect) {&lt;BR /&gt;let models = $scope.view.wdg['model-1'];&lt;BR /&gt;switch (modelSelect)&lt;BR /&gt;{&lt;BR /&gt;case 1:&lt;BR /&gt;models.src='app/resources/Uploaded/blue_pump.pvz';&lt;BR /&gt;break;&lt;BR /&gt;case 2:&lt;BR /&gt;models.src='app/resources/Uploaded/Fan.pvz';&lt;BR /&gt;break; &lt;BR /&gt;default:&lt;BR /&gt;models.src='app/resources/Uploaded/Robot Arm Model.pvz';&lt;/P&gt;
&lt;P&gt;}&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;//////////////////&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 12 May 2021 07:47:10 GMT</pubDate>
    <dc:creator>Jimwang</dc:creator>
    <dc:date>2021-05-12T07:47:10Z</dc:date>
    <item>
      <title>How to change model when 3D button is clicked</title>
      <link>https://www.ptcusercommunity.com/t5/Vuforia-Studio/How-to-change-model-when-3D-button-is-clicked/m-p/728547#M9780</link>
      <description>&lt;P&gt;Hello Everyone.&lt;BR /&gt;&lt;BR /&gt;Sorry if this question was asked already.&lt;BR /&gt;I'm new to Vuforia Studio and am just trying to create contents using the tutorials and guides available here.&lt;BR /&gt;&lt;BR /&gt;I am now tasked to create a content using HoloLens and I was given a model to work with.&lt;BR /&gt;My task is to create a button that when clicked (or when I tap at the specific part), it will change the model to another one.&lt;BR /&gt;&lt;BR /&gt;I have a 4 part component.&lt;BR /&gt;What I want is when I click on a button (or tap the part), the model will change to an exploded version.&lt;BR /&gt;I have here a pvz file that all components are compact.&lt;BR /&gt;Another pvz file where part 1 is exploded, another one where part 2 is exploded, so on, until part 4.&lt;BR /&gt;So basically I have 5 pvz files.&lt;BR /&gt;&lt;BR /&gt;Is this possible?&lt;BR /&gt;I'm sorry, I'm so new about this and I don't have any background or training. Hope you can help me..&lt;BR /&gt;Or if you could link a useful resource, I would really appreciate it.&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 23:36:56 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Vuforia-Studio/How-to-change-model-when-3D-button-is-clicked/m-p/728547#M9780</guid>
      <dc:creator>Adrian_G.</dc:creator>
      <dc:date>2021-05-10T23:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to change model when 3D button is clicked</title>
      <link>https://www.ptcusercommunity.com/t5/Vuforia-Studio/How-to-change-model-when-3D-button-is-clicked/m-p/728585#M9786</link>
      <description>&lt;P&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/424978"&gt;@Adrian_G.&lt;/a&gt; , you may refer to the sample of "Dynamic Model Load" at &lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.ptc.com/help/vuforia/studio/en/index.html#page/Studio_Help_Center/Intermediate_DynamicModelLoad.html" target="_self"&gt;http://support.ptc.com/help/vuforia/studio/en/index.html#page/Studio_Help_Center/Intermediate_DynamicModelLoad.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 06:17:30 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Vuforia-Studio/How-to-change-model-when-3D-button-is-clicked/m-p/728585#M9786</guid>
      <dc:creator>Jimwang</dc:creator>
      <dc:date>2021-05-11T06:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to change model when 3D button is clicked</title>
      <link>https://www.ptcusercommunity.com/t5/Vuforia-Studio/How-to-change-model-when-3D-button-is-clicked/m-p/728586#M9787</link>
      <description>&lt;P&gt;Hello Sir&lt;BR /&gt;&lt;BR /&gt;Thank you for the reply.&lt;BR /&gt;Yes, I managed to do that. But I don't know how will I make it using HoloLens.&lt;BR /&gt;&lt;BR /&gt;When creating an experience for Tablet or Mobile devices, I am using that step.&lt;BR /&gt;Now I am trying to do the same for 3D Wear devices and I don't know how to do it not using Select Widget.&lt;BR /&gt;&lt;BR /&gt;Or I am just missing something?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 06:21:21 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Vuforia-Studio/How-to-change-model-when-3D-button-is-clicked/m-p/728586#M9787</guid>
      <dc:creator>Adrian_G.</dc:creator>
      <dc:date>2021-05-11T06:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to change model when 3D button is clicked</title>
      <link>https://www.ptcusercommunity.com/t5/Vuforia-Studio/How-to-change-model-when-3D-button-is-clicked/m-p/728774#M9791</link>
      <description>&lt;P&gt;Additional Information:&lt;BR /&gt;&lt;BR /&gt;I tried to make this experience using Mobile Environment..&amp;nbsp;&lt;BR /&gt;I used a 2D Widget (Select) and I can switch models dynamically.&lt;BR /&gt;&lt;BR /&gt;But using 3D Wear as an environment, it is quite difficult.&lt;BR /&gt;There is no 2D widgets and I really don't know what to do next.&lt;BR /&gt;&lt;BR /&gt;I badly need help. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 23:53:28 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Vuforia-Studio/How-to-change-model-when-3D-button-is-clicked/m-p/728774#M9791</guid>
      <dc:creator>Adrian_G.</dc:creator>
      <dc:date>2021-05-11T23:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to change model when 3D button is clicked</title>
      <link>https://www.ptcusercommunity.com/t5/Vuforia-Studio/How-to-change-model-when-3D-button-is-clicked/m-p/728830#M9794</link>
      <description>&lt;P&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/424978"&gt;@Adrian_G.&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;For 3D Eyewear experiences, you can use 3D Button to set the source of the model dynamically. The logic is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1&amp;gt; Define an application parameter, like "modelSelect"&lt;/P&gt;
&lt;P&gt;2&amp;gt; Upload the Models to the resources&lt;/P&gt;
&lt;P&gt;3&amp;gt; Create a JS script like below to set the source of the "model-1" widget based on the value of "modelSelect". Call the function for the click of the 3D button:&lt;/P&gt;
&lt;P&gt;/////////////////////////////////////////////////////////////////////////////&lt;/P&gt;
&lt;P&gt;$scope.changeModel = function (modelSelect) {&lt;BR /&gt;let models = $scope.view.wdg['model-1'];&lt;BR /&gt;switch (modelSelect)&lt;BR /&gt;{&lt;BR /&gt;case 1:&lt;BR /&gt;models.src='app/resources/Uploaded/blue_pump.pvz';&lt;BR /&gt;break;&lt;BR /&gt;case 2:&lt;BR /&gt;models.src='app/resources/Uploaded/Fan.pvz';&lt;BR /&gt;break; &lt;BR /&gt;default:&lt;BR /&gt;models.src='app/resources/Uploaded/Robot Arm Model.pvz';&lt;/P&gt;
&lt;P&gt;}&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;//////////////////&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 07:47:10 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Vuforia-Studio/How-to-change-model-when-3D-button-is-clicked/m-p/728830#M9794</guid>
      <dc:creator>Jimwang</dc:creator>
      <dc:date>2021-05-12T07:47:10Z</dc:date>
    </item>
  </channel>
</rss>

