<?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 Betreff: Toggle sceneplate with python in VRED Forum</title>
    <link>https://forums.autodesk.com/t5/vred-forum/toggle-sceneplate-with-python/m-p/9239784#M5267</link>
    <description>&lt;P&gt;You want to control the viewport option that can be found in the menu bar?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020-01-09 11_16_15-untitled - Autodesk VRED Professional 2021 Beta.png" style="width: 225px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/714751i64AC8F2992E84AAE/image-size/large?v=v2&amp;amp;px=999" role="button" title="2020-01-09 11_16_15-untitled - Autodesk VRED Professional 2021 Beta.png" alt="2020-01-09 11_16_15-untitled - Autodesk VRED Professional 2021 Beta.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This is currently not possible but we have a ticket for it in the backlog.&lt;/P&gt;</description>
    <pubDate>Thu, 09 Jan 2020 10:22:58 GMT</pubDate>
    <dc:creator>seiferp</dc:creator>
    <dc:date>2020-01-09T10:22:58Z</dc:date>
    <item>
      <title>Toggle sceneplate with python</title>
      <link>https://forums.autodesk.com/t5/vred-forum/toggle-sceneplate-with-python/m-p/8986682#M5261</link>
      <description>&lt;P&gt;Is there any way to control sceneplate switch on and off via python?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Hiroshi&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2019 03:16:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vred-forum/toggle-sceneplate-with-python/m-p/8986682#M5261</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-26T03:16:00Z</dc:date>
    </item>
    <item>
      <title>Betreff: Toggle sceneplate with python</title>
      <link>https://forums.autodesk.com/t5/vred-forum/toggle-sceneplate-with-python/m-p/8987388#M5262</link>
      <description>&lt;P&gt;Sure...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;vrdSwitchNode(vrSceneplateService.getRootNode().getChild(1)).setChoice(0)&lt;/PRE&gt;
&lt;P&gt;This will select the 1st frontplate in the 2nd switch...&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sceneplate Editor.png" style="width: 257px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/670782iEB4DB872B2EF531D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Sceneplate Editor.png" alt="Sceneplate Editor.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Pascal&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2019 11:29:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vred-forum/toggle-sceneplate-with-python/m-p/8987388#M5262</guid>
      <dc:creator>seiferp</dc:creator>
      <dc:date>2019-08-26T11:29:32Z</dc:date>
    </item>
    <item>
      <title>Betreff: Toggle sceneplate with python</title>
      <link>https://forums.autodesk.com/t5/vred-forum/toggle-sceneplate-with-python/m-p/8987507#M5263</link>
      <description>&lt;P&gt;Or, if your node name is unique in the Sceneplate Editor, use findNode.&lt;/P&gt;
&lt;P&gt;Of course this can also be done in one line as posted by Pascal but here are the individual steps:&lt;/P&gt;
&lt;PRE&gt;node = vrSceneplateService.findNode("MySwitch") # this returns a vrdNode object
switch = vrdSwitchNode(node) # convert it to a switch node&lt;BR /&gt;switch.setChoice(0) # set the choice&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2019 12:35:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vred-forum/toggle-sceneplate-with-python/m-p/8987507#M5263</guid>
      <dc:creator>sinje_thiedemann</dc:creator>
      <dc:date>2019-08-26T12:35:54Z</dc:date>
    </item>
    <item>
      <title>Betreff: Toggle sceneplate with python</title>
      <link>https://forums.autodesk.com/t5/vred-forum/toggle-sceneplate-with-python/m-p/8987520#M5264</link>
      <description>&lt;P&gt;If your question was not about Switch nodes but frontplates/backplates:&lt;/P&gt;
&lt;PRE&gt;node = vrSceneplateService.findNode("My Frontplate")
vrdSceneplateNode(node).setVisibilityFlag(False) # hides the front plate
&lt;/PRE&gt;
&lt;P&gt;setVisibilityFlag is a function of vrdSceneplateNode's base class vrdNode.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2019 12:40:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vred-forum/toggle-sceneplate-with-python/m-p/8987520#M5264</guid>
      <dc:creator>sinje_thiedemann</dc:creator>
      <dc:date>2019-08-26T12:40:46Z</dc:date>
    </item>
    <item>
      <title>Betreff: Toggle sceneplate with python</title>
      <link>https://forums.autodesk.com/t5/vred-forum/toggle-sceneplate-with-python/m-p/8988871#M5265</link>
      <description>&lt;P&gt;Yes, I mean toggle visibility, so that works perfect!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2019 01:18:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vred-forum/toggle-sceneplate-with-python/m-p/8988871#M5265</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-27T01:18:15Z</dc:date>
    </item>
    <item>
      <title>Betreff: Toggle sceneplate with python</title>
      <link>https://forums.autodesk.com/t5/vred-forum/toggle-sceneplate-with-python/m-p/9239709#M5266</link>
      <description>&lt;P&gt;Hi Pascal,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is there also a python-way to (de-)activate Sceneplates (maybe individual for front- and backplates) as it can be done with vredGui?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Marc&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 09:37:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vred-forum/toggle-sceneplate-with-python/m-p/9239709#M5266</guid>
      <dc:creator>marc.winter2</dc:creator>
      <dc:date>2020-01-09T09:37:31Z</dc:date>
    </item>
    <item>
      <title>Betreff: Toggle sceneplate with python</title>
      <link>https://forums.autodesk.com/t5/vred-forum/toggle-sceneplate-with-python/m-p/9239784#M5267</link>
      <description>&lt;P&gt;You want to control the viewport option that can be found in the menu bar?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020-01-09 11_16_15-untitled - Autodesk VRED Professional 2021 Beta.png" style="width: 225px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/714751i64AC8F2992E84AAE/image-size/large?v=v2&amp;amp;px=999" role="button" title="2020-01-09 11_16_15-untitled - Autodesk VRED Professional 2021 Beta.png" alt="2020-01-09 11_16_15-untitled - Autodesk VRED Professional 2021 Beta.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This is currently not possible but we have a ticket for it in the backlog.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 10:22:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vred-forum/toggle-sceneplate-with-python/m-p/9239784#M5267</guid>
      <dc:creator>seiferp</dc:creator>
      <dc:date>2020-01-09T10:22:58Z</dc:date>
    </item>
    <item>
      <title>Betreff: Toggle sceneplate with python</title>
      <link>https://forums.autodesk.com/t5/vred-forum/toggle-sceneplate-with-python/m-p/9239809#M5268</link>
      <description>&lt;P&gt;Hi Marc,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess this is not what you want but maybe you can use it, this simply sets the visibility flag of all sceneplates, it takes the type of the plate (front or back) into account.&lt;/P&gt;&lt;PRE&gt;for sp in vrSceneplateService.getAllSceneplates():
    if sp.getNodeType() == vrSceneplateTypes.NodeType.Frontplate:
        sp.setVisibilityFlag(False)
    if sp.getNodeType() == vrSceneplateTypes.NodeType.Backplate:
        sp.setVisibilityFlag(True) &lt;/PRE&gt;</description>
      <pubDate>Thu, 09 Jan 2020 10:32:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vred-forum/toggle-sceneplate-with-python/m-p/9239809#M5268</guid>
      <dc:creator>thorsten.droell</dc:creator>
      <dc:date>2020-01-09T10:32:25Z</dc:date>
    </item>
    <item>
      <title>Betreff: Toggle sceneplate with python</title>
      <link>https://forums.autodesk.com/t5/vred-forum/toggle-sceneplate-with-python/m-p/9239814#M5269</link>
      <description>&lt;P&gt;Hi Pascal,&lt;/P&gt;&lt;P&gt;yes this what i want.&lt;/P&gt;&lt;P&gt;So i'll wait.&lt;/P&gt;&lt;P&gt;Thx.&lt;/P&gt;&lt;P&gt;Marc&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 10:36:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vred-forum/toggle-sceneplate-with-python/m-p/9239814#M5269</guid>
      <dc:creator>marc.winter2</dc:creator>
      <dc:date>2020-01-09T10:36:21Z</dc:date>
    </item>
    <item>
      <title>Betreff: Toggle sceneplate with python</title>
      <link>https://forums.autodesk.com/t5/vred-forum/toggle-sceneplate-with-python/m-p/9239818#M5270</link>
      <description>&lt;P&gt;Hi Thorsten,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your answer.&lt;/P&gt;&lt;P&gt;But you are right, this is not what i'm looking for.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Marc&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 10:38:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vred-forum/toggle-sceneplate-with-python/m-p/9239818#M5270</guid>
      <dc:creator>marc.winter2</dc:creator>
      <dc:date>2020-01-09T10:38:42Z</dc:date>
    </item>
    <item>
      <title>Betreff: Toggle sceneplate with python</title>
      <link>https://forums.autodesk.com/t5/vred-forum/toggle-sceneplate-with-python/m-p/9792220#M5271</link>
      <description>&lt;P&gt;Hi Marc -&lt;/P&gt;&lt;P&gt;I was wondering about toggling the sceneplates just like via GUI as well.&lt;/P&gt;&lt;P&gt;If you're not aware of this yet, they just added a command for 2021.2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;enableSceneplates(bool)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It works great.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Chris&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2020 18:46:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vred-forum/toggle-sceneplate-with-python/m-p/9792220#M5271</guid>
      <dc:creator>cjess</dc:creator>
      <dc:date>2020-10-08T18:46:44Z</dc:date>
    </item>
    <item>
      <title>Betreff: Toggle sceneplate with python</title>
      <link>https://forums.autodesk.com/t5/vred-forum/toggle-sceneplate-with-python/m-p/9792241#M5272</link>
      <description>&lt;P&gt;The Sceneplate Module is fully decoupled with the Python 2 API if you want to fiddle inside the Sceneplates itself.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;If you want to toggle the global switch from the menu bar on and off we have added the following commands to the latest 2021.2 release!&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;enableBackplates(), getBackplatesEnabled()
enableFrontplates(), getFrontplatesEnabled()
enableSceneplates(), getSceneplatesEnabled()&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2020 18:37:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vred-forum/toggle-sceneplate-with-python/m-p/9792241#M5272</guid>
      <dc:creator>seiferp</dc:creator>
      <dc:date>2020-10-08T18:37:53Z</dc:date>
    </item>
    <item>
      <title>Betreff: Toggle sceneplate with python</title>
      <link>https://forums.autodesk.com/t5/vred-forum/toggle-sceneplate-with-python/m-p/9806043#M5273</link>
      <description>&lt;P&gt;hi Pascal -&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1842879"&gt;@seiferp&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry to resurrect this post again, but I was looking at your code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;vrdSwitchNode(vrSceneplateService.getRootNode().getChild(2)).setChoice(0)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works great but I would like to call a specific sceneplate in a specific switch by name. That way if a new sceneplate or switch gets added to the file or the sceneplates get rearranged in the Sceneplate Editor my script will still work as it's not bound to a specific order - like child 2 and choice 0 in your example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking at the image you posted I want to call "Frontplate2" in "Switch1" even if 'Switch1' gets moved above 'Switch'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was hoping&amp;nbsp;&lt;SPAN&gt;&lt;EM&gt;selectNodeVariant&lt;/EM&gt; would work just like for geometry switches or&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;EM&gt;selectMaterialVariant&lt;/EM&gt; for Materials.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;With that logic I woul hope for a command like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;selectSceneplateVariant("SceneplateSwitch", "SceneplateOption")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But that doesn't work...&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;P&gt;-Chris&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2020 23:20:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vred-forum/toggle-sceneplate-with-python/m-p/9806043#M5273</guid>
      <dc:creator>cjess</dc:creator>
      <dc:date>2020-10-15T23:20:40Z</dc:date>
    </item>
    <item>
      <title>Betreff: Toggle sceneplate with python</title>
      <link>https://forums.autodesk.com/t5/vred-forum/toggle-sceneplate-with-python/m-p/9806609#M5274</link>
      <description>&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;maybe you are looking for something like this:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;switch = vrdSwitchNode(vrSceneplateService.findNode("Switch1"))
frontplate = vrSceneplateService.findNode("Frontplate1")
childIndex = switch.getChildIndex(frontplate)
switch.setChoice(childIndex)&lt;/LI-CODE&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thorsten&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2020 08:27:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vred-forum/toggle-sceneplate-with-python/m-p/9806609#M5274</guid>
      <dc:creator>thorsten.droell</dc:creator>
      <dc:date>2020-10-16T08:27:04Z</dc:date>
    </item>
    <item>
      <title>Betreff: Toggle sceneplate with python</title>
      <link>https://forums.autodesk.com/t5/vred-forum/toggle-sceneplate-with-python/m-p/9807643#M5275</link>
      <description>&lt;P&gt;Thank you Thorsten - this works.&lt;/P&gt;&lt;P&gt;It's a bit complicated, I was hoping for a single line as mentioned before. Considering you can access other variants easily (for example geometry &amp;amp; materials) I will write this up as a request.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a good day and stay healthy.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2020 17:19:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vred-forum/toggle-sceneplate-with-python/m-p/9807643#M5275</guid>
      <dc:creator>cjess</dc:creator>
      <dc:date>2020-10-16T17:19:42Z</dc:date>
    </item>
    <item>
      <title>Betreff: Toggle sceneplate with python</title>
      <link>https://forums.autodesk.com/t5/vred-forum/toggle-sceneplate-with-python/m-p/9888419#M5276</link>
      <description>&lt;P&gt;Hi Chris,&lt;/P&gt;
&lt;P&gt;maybe this one helps:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/simonnagel/VRED-snippets/blob/master/VRED-toggleToNextSceneplate.py" target="_blank"&gt;https://github.com/simonnagel/VRED-snippets/blob/master/VRED-toggleToNextSceneplate.py&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This script uses the pageup and pagedown buttons on your keyboard to toogle through all children of a sceneplate node called "&lt;SPAN&gt;TextSwitch&lt;/SPAN&gt;".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Nov 2020 08:30:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vred-forum/toggle-sceneplate-with-python/m-p/9888419#M5276</guid>
      <dc:creator>Simon.Nagel</dc:creator>
      <dc:date>2020-11-23T08:30:37Z</dc:date>
    </item>
    <item>
      <title>Betreff: Toggle sceneplate with python</title>
      <link>https://forums.autodesk.com/t5/vred-forum/toggle-sceneplate-with-python/m-p/9889732#M5277</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2311036"&gt;@Simon.Nagel&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for that script. Interesting setup, but I am not using hotkeys at this point for what I am doing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have submitted a request (and will probably do so as well through our support account) that you can see here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/vred-ideas/simple-python-sceneplate-switch/idi-p/9807682" target="_blank" rel="noopener"&gt;https://forums.autodesk.com/t5/vred-ideas/simple-python-sceneplate-switch/idi-p/9807682&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The idea being that sceneplates should be accessible just like a material or geometry switch. The fact that Sceneplate switches show up in the Variants window tells me that this should work.&lt;/P&gt;&lt;P&gt;Calling a specific sceneplate as well as a !Next or !Previous function should work as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If anyone in this thread agrees upvote the idea at the above link!&lt;/STRONG&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Mon, 23 Nov 2020 17:37:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vred-forum/toggle-sceneplate-with-python/m-p/9889732#M5277</guid>
      <dc:creator>cjess</dc:creator>
      <dc:date>2020-11-23T17:37:08Z</dc:date>
    </item>
  </channel>
</rss>

