Notifications
Clear all

[Closed] Icon disappearing from toolbar

Short story: I create a script and icon. Place it on my toolbar, then restart and the icon disappears. No idea why. All the other scripts remain, just the new one disappears.

Long story:
Lately Ive been having some problems with my maxlayout and new scripts just disappearing. ater max restart. The weird thing is, it just happens randomly to new scripts. f.e. 2 weeks ago I worked on a script, saved it,created icons. placed the icons in a toolbar and after restart, GONE… Edited a couple of times but nothing worked.

Now today I worked on another new script (mind you, in the meantime I created other scripts that DID work) that I wanted to add to my toolbar.
restarted and gone again.

I save the MaxStartUI.cui but that doesn’t help either.

-------------------------------------------------------------------------------
-- BBoxMaker.ms
-- By Neil Blevins (soulburn@blur.com)
-- v 1.00
-- Created On: 08/01/01
-- Modified On: 08/01/01
-- tested using Max 4.2

-------------------------------------------------------------------------------

-------------------------------------------------------------------------------
-- Description:
-- Creates bounding boxes for selected objects.
-------------------------------------------------------------------------------

-------------------------------------------------------------------------------
macroScript Bboxmaker
category:		"_PapiGiulio"
Tooltip:			"ObjSize | Create box for object size | Shift-click for group size"
icon:#("papigiulio",15)
  (
	undo "BBoxMaker" on
			(
				if $ == undefined  then
					(
						format "select objects"
						messagebox "Select 1 or more objects" title:"Oops!"
					)
					else
						for i in selection do
							(
							l = (i.max.y - i.min.y)
							w = (i.max.x - i.min.x)
							h = (i.max.z - i.min.z)
							c = i.center - [0, 0, (h/2)]		
							the_box = Box lengthsegs:1 widthsegs:1 heightsegs:1 length:l width:w height:h pos:c 
							the_box.name = i.name + "_dimensions"
							)
						
			)
	)

2 Replies

Hi,

Don’t use the | character in tooltips (:

Max thinks them as different buttons for each | separation or something. So it bails out on the first encounter of this.

Cheers,
Light

Hah! wow, that did it. Thanks a lot Light