Open Floating Panel

Post Reply
User avatar
clintonman
Captain
Posts: 5432
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Open Floating Panel

Post by clintonman »

Script that opens any node as a floating panel with opened panels organized from right to left.
It has one issue in that if the node the panel was created from is deleted the floating panel remains.

There are more options by setting connector values on the script node than shown below, but it can be run like so:

Code: Select all

    start = "/Scripts/CustomCommands/OpenFloatingPanel/Start"
    Node.Value(start, "TheNode") = full path to the node
    Activity.Run(start)
http://clintons3d.com/plugins/truespace ... atingpanel

It uses an updated Global Functions Set
http://clintons3d.com/plugins/truespace ... lfunctions
The only change compared to the UU version is that 1 line was added to the top

Code: Select all

var PreExistingWindowFrames;
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5432
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: Open Floating Panel

Post by clintonman »

Small Update
The script Aspect value was not resetting itself after running, fixed so value is set to 3 after the run
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5432
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: Open Floating Panel

Post by clintonman »

March 11 2024
Updated with modified trueBlue code

When the source node is deleted the floating panel will close
Add check for invalid selection

Is currently limited to 8 automatic closing panels at one time. After the limit is reached an option/warning is given and all subsequent panels will not automatically close when the source node is deleted. I figure 8 is enough but more can be easily added.
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5432
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: Open Floating Panel

Post by clintonman »

April 17 2024
Update

added the ability to open a floating panel at the mouse location relative to the active window

Code: Select all

    start = "/Scripts/CustomCommands/OpenFloatingPanel/Start"
    Node.Value(start, "TheNode") = full path to the node
    Node.Value(start, "AtMouse") = true
    Activity.Run(start)
Clinton Reese

http://clintons3d.com
Post Reply