<?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 How can I make 3D models appear using 3d toggles in Studio? in Vuforia Studio</title>
    <link>https://www.ptcusercommunity.com/t5/Vuforia-Studio/How-can-I-make-3D-models-appear-using-3d-toggles-in-Studio/m-p/772151#M10495</link>
    <description>&lt;P&gt;Let me start by saying everything works perfectly in preview, but not on HoloLens.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I'm creating an experience where certain models appear and disappear depending upon which 3D toggle is active/inactive.&amp;nbsp; There are three toggles that make the same model appear (it's generic and has no sequences or animation). When the other toggles are selected, the generic model will disappear, but none of the other models (all of which DO have sequences) do not appear. I'm guess it has to do with the fact that they have sequences attached to them since the JS seems to be the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's an example of some of the JS I'm using for each 3D Toggle:&lt;/P&gt;&lt;P&gt;//Overview Settings&lt;BR /&gt;$scope.overview = function() {&lt;BR /&gt;$scope.view.wdg['3DToggleButton-2']['pressed'] = false;&lt;BR /&gt;$scope.view.wdg['3DToggleButton-3']['pressed'] = false;&lt;BR /&gt;$scope.view.wdg['3DToggleButton-4']['pressed'] = false;&lt;BR /&gt;$scope.view.wdg['3DToggleButton-5']['pressed'] = false;&lt;BR /&gt;$scope.view.wdg['3DToggleButton-6']['pressed'] = false;&lt;BR /&gt;$scope.view.wdg['3DToggleButton-7']['pressed'] = false;&lt;BR /&gt;$scope.view.wdg['3DToggleButton-8']['pressed'] = false;&lt;BR /&gt;$scope.app.params.model1 = true;&lt;BR /&gt;$scope.app.params.model2 = false;&lt;BR /&gt;$scope.app.params.model3 = false;&lt;BR /&gt;$scope.app.params.model4 = false;&lt;BR /&gt;$scope.app.params.model5 = true;&lt;BR /&gt;$scope.app.params.model6 = false;&lt;BR /&gt;$scope.app.params.image2 = true;&lt;BR /&gt;$scope.app.params.image3 = false;&lt;BR /&gt;$scope.app.params.image4 = false;&lt;BR /&gt;$scope.app.params.image5 = false;&lt;BR /&gt;$scope.app.params.image6 = false;&lt;BR /&gt;$scope.app.params.image7 = false;&lt;BR /&gt;$scope.app.params.image8 = false;&lt;BR /&gt;$scope.app.params.image9 = false;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;//Pole Settings&lt;BR /&gt;$scope.pole = function() {&lt;BR /&gt;$scope.view.wdg['3DToggleButton-1']['pressed'] = false;&lt;BR /&gt;$scope.view.wdg['3DToggleButton-3']['pressed'] = false;&lt;BR /&gt;$scope.view.wdg['3DToggleButton-4']['pressed'] = false;&lt;BR /&gt;$scope.view.wdg['3DToggleButton-5']['pressed'] = false;&lt;BR /&gt;$scope.view.wdg['3DToggleButton-6']['pressed'] = false;&lt;BR /&gt;$scope.view.wdg['3DToggleButton-7']['pressed'] = false;&lt;BR /&gt;$scope.view.wdg['3DToggleButton-8']['pressed'] = false;&lt;BR /&gt;$scope.app.params.model1 = false;&lt;BR /&gt;$scope.app.params.model2 = false;&lt;BR /&gt;$scope.app.params.model3 = false;&lt;BR /&gt;$scope.app.params.model4 = false;&lt;BR /&gt;$scope.app.params.model5 = true;&lt;BR /&gt;$scope.app.params.model6 = true;&lt;BR /&gt;$scope.app.params.image2 = false;&lt;BR /&gt;$scope.app.params.image3 = true;&lt;BR /&gt;$scope.app.params.image4 = false;&lt;BR /&gt;$scope.app.params.image5 = false;&lt;BR /&gt;$scope.app.params.image6 = false;&lt;BR /&gt;$scope.app.params.image7 = false;&lt;BR /&gt;$scope.app.params.image8 = false;&lt;BR /&gt;$scope.app.params.image9 = false;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;//Light Arm Settings&lt;BR /&gt;$scope.lightArm = function() {&lt;BR /&gt;$scope.view.wdg['3DToggleButton-1']['pressed'] = false;&lt;BR /&gt;$scope.view.wdg['3DToggleButton-2']['pressed'] = false;&lt;BR /&gt;$scope.view.wdg['3DToggleButton-4']['pressed'] = false;&lt;BR /&gt;$scope.view.wdg['3DToggleButton-5']['pressed'] = false;&lt;BR /&gt;$scope.view.wdg['3DToggleButton-6']['pressed'] = false;&lt;BR /&gt;$scope.view.wdg['3DToggleButton-7']['pressed'] = false;&lt;BR /&gt;$scope.view.wdg['3DToggleButton-8']['pressed'] = false;&lt;BR /&gt;$scope.app.params.model1 = false;&lt;BR /&gt;$scope.app.params.model2 = true;&lt;BR /&gt;$scope.app.params.model3 = false;&lt;BR /&gt;$scope.app.params.model4 = false;&lt;BR /&gt;$scope.app.params.model5 = true;&lt;BR /&gt;$scope.app.params.model6 = false;&lt;BR /&gt;$scope.app.params.image2 = false;&lt;BR /&gt;$scope.app.params.image3 = false;&lt;BR /&gt;$scope.app.params.image4 = true;&lt;BR /&gt;$scope.app.params.image5 = false;&lt;BR /&gt;$scope.app.params.image6 = false;&lt;BR /&gt;$scope.app.params.image7 = false;&lt;BR /&gt;$scope.app.params.image8 = false;&lt;BR /&gt;$scope.app.params.image9 = false;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Jan 2022 14:45:01 GMT</pubDate>
    <dc:creator>CB_9115947</dc:creator>
    <dc:date>2022-01-11T14:45:01Z</dc:date>
    <item>
      <title>How can I make 3D models appear using 3d toggles in Studio?</title>
      <link>https://www.ptcusercommunity.com/t5/Vuforia-Studio/How-can-I-make-3D-models-appear-using-3d-toggles-in-Studio/m-p/772151#M10495</link>
      <description>&lt;P&gt;Let me start by saying everything works perfectly in preview, but not on HoloLens.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I'm creating an experience where certain models appear and disappear depending upon which 3D toggle is active/inactive.&amp;nbsp; There are three toggles that make the same model appear (it's generic and has no sequences or animation). When the other toggles are selected, the generic model will disappear, but none of the other models (all of which DO have sequences) do not appear. I'm guess it has to do with the fact that they have sequences attached to them since the JS seems to be the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's an example of some of the JS I'm using for each 3D Toggle:&lt;/P&gt;&lt;P&gt;//Overview Settings&lt;BR /&gt;$scope.overview = function() {&lt;BR /&gt;$scope.view.wdg['3DToggleButton-2']['pressed'] = false;&lt;BR /&gt;$scope.view.wdg['3DToggleButton-3']['pressed'] = false;&lt;BR /&gt;$scope.view.wdg['3DToggleButton-4']['pressed'] = false;&lt;BR /&gt;$scope.view.wdg['3DToggleButton-5']['pressed'] = false;&lt;BR /&gt;$scope.view.wdg['3DToggleButton-6']['pressed'] = false;&lt;BR /&gt;$scope.view.wdg['3DToggleButton-7']['pressed'] = false;&lt;BR /&gt;$scope.view.wdg['3DToggleButton-8']['pressed'] = false;&lt;BR /&gt;$scope.app.params.model1 = true;&lt;BR /&gt;$scope.app.params.model2 = false;&lt;BR /&gt;$scope.app.params.model3 = false;&lt;BR /&gt;$scope.app.params.model4 = false;&lt;BR /&gt;$scope.app.params.model5 = true;&lt;BR /&gt;$scope.app.params.model6 = false;&lt;BR /&gt;$scope.app.params.image2 = true;&lt;BR /&gt;$scope.app.params.image3 = false;&lt;BR /&gt;$scope.app.params.image4 = false;&lt;BR /&gt;$scope.app.params.image5 = false;&lt;BR /&gt;$scope.app.params.image6 = false;&lt;BR /&gt;$scope.app.params.image7 = false;&lt;BR /&gt;$scope.app.params.image8 = false;&lt;BR /&gt;$scope.app.params.image9 = false;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;//Pole Settings&lt;BR /&gt;$scope.pole = function() {&lt;BR /&gt;$scope.view.wdg['3DToggleButton-1']['pressed'] = false;&lt;BR /&gt;$scope.view.wdg['3DToggleButton-3']['pressed'] = false;&lt;BR /&gt;$scope.view.wdg['3DToggleButton-4']['pressed'] = false;&lt;BR /&gt;$scope.view.wdg['3DToggleButton-5']['pressed'] = false;&lt;BR /&gt;$scope.view.wdg['3DToggleButton-6']['pressed'] = false;&lt;BR /&gt;$scope.view.wdg['3DToggleButton-7']['pressed'] = false;&lt;BR /&gt;$scope.view.wdg['3DToggleButton-8']['pressed'] = false;&lt;BR /&gt;$scope.app.params.model1 = false;&lt;BR /&gt;$scope.app.params.model2 = false;&lt;BR /&gt;$scope.app.params.model3 = false;&lt;BR /&gt;$scope.app.params.model4 = false;&lt;BR /&gt;$scope.app.params.model5 = true;&lt;BR /&gt;$scope.app.params.model6 = true;&lt;BR /&gt;$scope.app.params.image2 = false;&lt;BR /&gt;$scope.app.params.image3 = true;&lt;BR /&gt;$scope.app.params.image4 = false;&lt;BR /&gt;$scope.app.params.image5 = false;&lt;BR /&gt;$scope.app.params.image6 = false;&lt;BR /&gt;$scope.app.params.image7 = false;&lt;BR /&gt;$scope.app.params.image8 = false;&lt;BR /&gt;$scope.app.params.image9 = false;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;//Light Arm Settings&lt;BR /&gt;$scope.lightArm = function() {&lt;BR /&gt;$scope.view.wdg['3DToggleButton-1']['pressed'] = false;&lt;BR /&gt;$scope.view.wdg['3DToggleButton-2']['pressed'] = false;&lt;BR /&gt;$scope.view.wdg['3DToggleButton-4']['pressed'] = false;&lt;BR /&gt;$scope.view.wdg['3DToggleButton-5']['pressed'] = false;&lt;BR /&gt;$scope.view.wdg['3DToggleButton-6']['pressed'] = false;&lt;BR /&gt;$scope.view.wdg['3DToggleButton-7']['pressed'] = false;&lt;BR /&gt;$scope.view.wdg['3DToggleButton-8']['pressed'] = false;&lt;BR /&gt;$scope.app.params.model1 = false;&lt;BR /&gt;$scope.app.params.model2 = true;&lt;BR /&gt;$scope.app.params.model3 = false;&lt;BR /&gt;$scope.app.params.model4 = false;&lt;BR /&gt;$scope.app.params.model5 = true;&lt;BR /&gt;$scope.app.params.model6 = false;&lt;BR /&gt;$scope.app.params.image2 = false;&lt;BR /&gt;$scope.app.params.image3 = false;&lt;BR /&gt;$scope.app.params.image4 = true;&lt;BR /&gt;$scope.app.params.image5 = false;&lt;BR /&gt;$scope.app.params.image6 = false;&lt;BR /&gt;$scope.app.params.image7 = false;&lt;BR /&gt;$scope.app.params.image8 = false;&lt;BR /&gt;$scope.app.params.image9 = false;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jan 2022 14:45:01 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Vuforia-Studio/How-can-I-make-3D-models-appear-using-3d-toggles-in-Studio/m-p/772151#M10495</guid>
      <dc:creator>CB_9115947</dc:creator>
      <dc:date>2022-01-11T14:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: How can I make 3D models appear using 3d toggles in Studio?</title>
      <link>https://www.ptcusercommunity.com/t5/Vuforia-Studio/How-can-I-make-3D-models-appear-using-3d-toggles-in-Studio/m-p/772198#M10499</link>
      <description>&lt;P&gt;The sequence visibility does take precedence over any JS. This could be the issue. You can try setting the sequence to blank and then explore the JS&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jan 2022 17:42:53 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Vuforia-Studio/How-can-I-make-3D-models-appear-using-3d-toggles-in-Studio/m-p/772198#M10499</guid>
      <dc:creator>sgreywilson</dc:creator>
      <dc:date>2022-01-11T17:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: How can I make 3D models appear using 3d toggles in Studio?</title>
      <link>https://www.ptcusercommunity.com/t5/Vuforia-Studio/How-can-I-make-3D-models-appear-using-3d-toggles-in-Studio/m-p/772202#M10500</link>
      <description>&lt;P&gt;I'll give that a try.&amp;nbsp; But then how do I apply the sequence?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jan 2022 18:03:29 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Vuforia-Studio/How-can-I-make-3D-models-appear-using-3d-toggles-in-Studio/m-p/772202#M10500</guid>
      <dc:creator>CB_9115947</dc:creator>
      <dc:date>2022-01-11T18:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: How can I make 3D models appear using 3d toggles in Studio?</title>
      <link>https://www.ptcusercommunity.com/t5/Vuforia-Studio/How-can-I-make-3D-models-appear-using-3d-toggles-in-Studio/m-p/772206#M10502</link>
      <description>&lt;P&gt;via code you can set the sequence (you will have to know the name )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;$scope.view.wdg['model-1']['sequence']='app/resources/Uploaded/Illustration/l-Creo%203D%20-%20drillChuck.pvi';&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then you will need to listern for event&amp;nbsp;sequenceloaded&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="c-mrkdwn__pre" data-stringify-type="pre"&gt;var modelName = "model-1";&lt;BR /&gt;$scope.$on('sequenceloaded', function(evt, args, meta) {      &lt;BR /&gt;&lt;BR /&gt;// do something   
    $scope.$broadcast('app.view["Home"].wdg["' +modelName+ '"].svc.playAll');
  });&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp; Hope this helps&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jan 2022 18:15:46 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Vuforia-Studio/How-can-I-make-3D-models-appear-using-3d-toggles-in-Studio/m-p/772206#M10502</guid>
      <dc:creator>sgreywilson</dc:creator>
      <dc:date>2022-01-11T18:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: How can I make 3D models appear using 3d toggles in Studio?</title>
      <link>https://www.ptcusercommunity.com/t5/Vuforia-Studio/How-can-I-make-3D-models-appear-using-3d-toggles-in-Studio/m-p/772207#M10503</link>
      <description>&lt;P&gt;I will give it a try, thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jan 2022 18:24:46 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Vuforia-Studio/How-can-I-make-3D-models-appear-using-3d-toggles-in-Studio/m-p/772207#M10503</guid>
      <dc:creator>CB_9115947</dc:creator>
      <dc:date>2022-01-11T18:24:46Z</dc:date>
    </item>
  </channel>
</rss>

