Popup Toolbars

free scripts, plugins, models, textures
Post Reply
User avatar
clintonman
Captain
Posts: 4259
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Popup Toolbars

Post by clintonman »

Quick popup toolbars for point edit, view, point edit widgets and object navigation widget controls. The system replaces the older slower Quad Toolbar.
The point edit toolbar will hide itself instead of closing which makes it's operation much faster.
The new toolbars are mostly a collection of buttons for functions that only exist as shortcuts in the Unofficial Updates and adds zoom buttons that effect all open windows.
Quad Toolbar and Quad Menu buttons are named Point Edit and Point Edit 2 toolbars in the new buttons.

The main reason for it's creation was because the old Quad toolbars were too slow and because there are too many shortcut exclusive functions in the Unofficial Updates for me to memorize and use effectively.

http://clintons3d.com/plugins/truespace ... opups.html
Clinton Reese

http://clintons3d.com

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

Re: Popup Toolbars

Post by clintonman »

Update Aug 31

undo friendly code
buttons closer in content to UU popup buttons
replaces pe end edit node with original - no auto close of toolbar when exit pe mode
restrictions on when panels can open added
will start pe mode for pe widget menu
will exit pe mode for obj nav widget menu
removes quad toolbar buttons and scripts
fixed quad toolbar size definition - get rid of extra blank line
set toolbar frame owner to the active window so they will be covered by other windows and less likely to show when tS is minimized

Dev Notes:
Restrictions loosely based on UU restrictions but doesn't allow selections like script nodes.
Point Edit Toolbars 1 and 2

Code: Select all

	if(!Node.IsRenderable(Node.FirstSelected())) return;
Point Edit Widget

Code: Select all

	var firstSel = Node.FirstSelected();

	if(!Node.IsRenderable(firstSel) || Node.IsCamera(firstSel) || Node.IsLight(firstSel)) return;

	if(!Node.ConExists(firstSel, "Selection")) {
		MeshModifiers.ActivatePointEditWidget('','','Default');
	}
Object Nav Widget

Code: Select all

	var firstSel = Node.FirstSelected();

	if(!Node.IsRenderable(firstSel) || Node.IsCamera(firstSel) || Node.IsLight(firstSel)) return;

	Widgets.ActivateDefaultWidget()
Clinton Reese

http://clintons3d.com

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

Re: Popup Toolbars

Post by clintonman »

Update Sept 7 2021

additions to make it closer to the UU version and to add support for the upcoming point edit and object nav widget update which is a stripped down version of the UU widgets.
Clinton Reese

http://clintons3d.com

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

Re: Popup Toolbars

Post by clintonman »

Update October 14, 2021

bug fix for incompatibility with the quadrify by normals tools

The quad by normals script alters the definition of what an array is. What I didn't know is that it does it globally for the current tS session and the change in quadrify was breaking the popup toolbars. Only way to get rid of the error was to restart truespace.
To see the error before installing the fix you can run quadrify on an object, start point edit mode and try to use the point edit popup toolbar.

script change is 1 line at line 21 of the OpenToolbars script

Code: Select all

		//if(i == "indexOf") continue;
		if(!tbs[i].toolbar) continue;
Clinton Reese

http://clintons3d.com

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

Re: Popup Toolbars

Post by clintonman »

Oct 17 Update

reduced restrictions on popups
object nav popup now works with group objects
Clinton Reese

http://clintons3d.com

Post Reply