Python command for toggle Collaboration Window

Python command for toggle Collaboration Window

Shawn_Collins-Lopez
Enthusiast Enthusiast
670 Views
4 Replies
Message 1 of 5

Python command for toggle Collaboration Window

Shawn_Collins-Lopez
Enthusiast
Enthusiast

Hi,

I cannot find the Python command to toggle on and off the Collaboration window in the VRED Pro interface.

Attached screen grab of the window in question.

 

Need to create a Hotkey and Auto Load for it...

 

Thank you, Shawn

 

0 Likes
Accepted solutions (1)
671 Views
4 Replies
Replies (4)
Message 2 of 5

dlincol1
Advocate
Advocate

Hi Shawn,

 

The vrMenu class should have the methods you are looking for.

https://help.autodesk.com/view/VREDPRODUCTS/2022/ENU/?guid=VRED_Python_Documentation_Python_API_V1_v...

 

In the example filemenu3d_scene.py I modified line 11 as shown below to display collaboration menu.

menu.setWindowResize("Collaboration", 640, 400)

 

 

 

Regards,
Dan
0 Likes
Message 3 of 5

Shawn_Collins-Lopez
Enthusiast
Enthusiast

Hi Dan,

Thank you for pointing me to the demo script.  Its cool to map a VRED menu to a cube but that's not what I am looking to do.

 

I just want to toggle on and off the Collaboration window in VRED without mouse clicking the icon or going to Interaction - Collaboration.  Too many clicks to get to the window.

 

I'm looking to make a toggle like the preferences scripts:

 

keyQs = vrKey(Key_Q, ShiftButton)

keyQs.connect("togglePivotManipulator()")

keyQs.setDescription("Toogle Pivot Manipulator")

 

The Collaboration window will auto open when I use the VRED-Collaboration.vrs attachment.  When you double click it will auto load VRED and open the Collaboration window and fill out the address.

 

This is the code in this .vrs file:

<?xml version="1.0"?>
<vred_collaboration link="USBLXWDCAD929DK/6a1b61612bc4e3" version="1"/>

 

Just want a toggle hotkey to open the window!

 

Thank you for your assistance.

Shawn

0 Likes
Message 4 of 5

sinje_thiedemann
Autodesk
Autodesk
Accepted solution

The function to open the GUI of a module is showModule(...), in this case

showModule("Collaboration")

Another idea would be to save a Window Layout with this module opened?

Or add collaboration module icon to the bottom icon bar (by drag&drop).

0 Likes
Message 5 of 5

Shawn_Collins-Lopez
Enthusiast
Enthusiast

Thank you this code works!  Where in the documentation would I have found this?  

 

In addition I can use hideModule("Collaboration") to turn it off too.  Just what I was looking for!

 

Thank you!

0 Likes