<?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: VRED 2021 has broken my GUI script, How can i fix it in VRED Forum</title>
    <link>https://forums.autodesk.com/t5/vred-forum/vred-2021-has-broken-my-gui-script-how-can-i-fix-it/m-p/9419466#M4566</link>
    <description>&lt;P&gt;Unfortunately I cannot reproduce the issue with that code snippet. I just added the PySide2 import statements and implemented a sample build_gui function, and the dialog shows up on my screen (as seen in the attached screenshot) when I import the py file or run the script.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does the script below work for you?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What happens if you disable the build_gui function in your script, do you get an empty dialog? If you still get no dialog then, try deactivating other parts of the whole script (you wrote that the dialog is only a part of the whole script), to narrow down the search for the problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;from PySide2.QtWidgets import QDialog, QLineEdit, QVBoxLayout

class MasterGUI(QDialog):
    # Build the GUI
    def __init__(self, parent=None):
        super(MasterGUI, self).__init__(parent)
        self.parent = parent
        #self.build_Simple_Gui()
        self.build_gui() #This builds the layout and adds buttons and stuff. Proprietary and possibly confidential
    def build_gui(self):
        layout = QVBoxLayout()
        layout.addWidget(QLineEdit("test"))
        # Set dialog layout
        self.setLayout(layout)

dialog = MasterGUI(vredMainWindow())
dialog.show()&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 03 Apr 2020 07:31:56 GMT</pubDate>
    <dc:creator>sinje_thiedemann</dc:creator>
    <dc:date>2020-04-03T07:31:56Z</dc:date>
    <item>
      <title>VRED 2021 has broken my GUI script, How can i fix it</title>
      <link>https://forums.autodesk.com/t5/vred-forum/vred-2021-has-broken-my-gui-script-how-can-i-fix-it/m-p/9412517#M4563</link>
      <description>&lt;P&gt;Hi, I have a script that displays a GUI for the user to do quick actions that i have predefined in the script using the pyside 2 that comes with VRED.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That GUI now refuses to open with no errors in the terminal. Im aware that python3 is now being used, but again, no errors...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas? Alternatively, If i wanted to make a new window like the scene graph that can be docked to the window how would i go about that?&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 15:54:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vred-forum/vred-2021-has-broken-my-gui-script-how-can-i-fix-it/m-p/9412517#M4563</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-31T15:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: VRED 2021 has broken my GUI script, How can i fix it</title>
      <link>https://forums.autodesk.com/t5/vred-forum/vred-2021-has-broken-my-gui-script-how-can-i-fix-it/m-p/9414745#M4564</link>
      <description>Hi, 
where exactly is the script located? Is it a script plugin, in the script preferences, in the Script Editor?
If you deactivate the "Convert Python 2 to 3" option in the Script preferences, do you now get errors?
Can you share the part of the script that creates and shows the GUI? (Without gui content)
Kind regards
Sinje</description>
      <pubDate>Wed, 01 Apr 2020 13:51:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vred-forum/vred-2021-has-broken-my-gui-script-how-can-i-fix-it/m-p/9414745#M4564</guid>
      <dc:creator>sinje_thiedemann</dc:creator>
      <dc:date>2020-04-01T13:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: VRED 2021 has broken my GUI script, How can i fix it</title>
      <link>https://forums.autodesk.com/t5/vred-forum/vred-2021-has-broken-my-gui-script-how-can-i-fix-it/m-p/9417942#M4565</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;The script is imported as a python file as i did for all versions before 2021,&amp;nbsp; Deactivating the conversion from 2 to 3 does not help. There are still no errors. The part of the script that make the GUI is below, i have removed the stuff that builds the layout and adds buttons, that can be found by looking up a pyside 2 or q application example. Pretty standard implementation that is not working anymore.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;class MasterGUI(QDialog):
    # Build the GUI
    def __init__(self, parent=None):
        super(MasterGUI, self).__init__(parent)
        self.parent = parent
        #self.build_Simple_Gui()
        self.build_gui() #This builds the layout and adds buttons and stuff. Proprietary and possibly confidential

dialog = MasterGUI(vredMainWindow())
dialog.show()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 02 Apr 2020 15:50:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vred-forum/vred-2021-has-broken-my-gui-script-how-can-i-fix-it/m-p/9417942#M4565</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-02T15:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: VRED 2021 has broken my GUI script, How can i fix it</title>
      <link>https://forums.autodesk.com/t5/vred-forum/vred-2021-has-broken-my-gui-script-how-can-i-fix-it/m-p/9419466#M4566</link>
      <description>&lt;P&gt;Unfortunately I cannot reproduce the issue with that code snippet. I just added the PySide2 import statements and implemented a sample build_gui function, and the dialog shows up on my screen (as seen in the attached screenshot) when I import the py file or run the script.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does the script below work for you?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What happens if you disable the build_gui function in your script, do you get an empty dialog? If you still get no dialog then, try deactivating other parts of the whole script (you wrote that the dialog is only a part of the whole script), to narrow down the search for the problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;from PySide2.QtWidgets import QDialog, QLineEdit, QVBoxLayout

class MasterGUI(QDialog):
    # Build the GUI
    def __init__(self, parent=None):
        super(MasterGUI, self).__init__(parent)
        self.parent = parent
        #self.build_Simple_Gui()
        self.build_gui() #This builds the layout and adds buttons and stuff. Proprietary and possibly confidential
    def build_gui(self):
        layout = QVBoxLayout()
        layout.addWidget(QLineEdit("test"))
        # Set dialog layout
        self.setLayout(layout)

dialog = MasterGUI(vredMainWindow())
dialog.show()&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Apr 2020 07:31:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vred-forum/vred-2021-has-broken-my-gui-script-how-can-i-fix-it/m-p/9419466#M4566</guid>
      <dc:creator>sinje_thiedemann</dc:creator>
      <dc:date>2020-04-03T07:31:56Z</dc:date>
    </item>
  </channel>
</rss>

