change group box attributes

Would it be possible to change the "group box" attributes? It'd be nice if the objects coordinates that you place in the box were relative to the box and not the rollout.

In other words could the maxscript groupbox be like a folder. Whatever you place into the box it moves with it.

my guess it's not possible with out big maxscript changes.

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
JokerMartini's picture

Hey, here you go. There is no dynamic way of doing it really.

But keeping it simple you can do it with a few variables.

(
	-- Groupbox Folder (only change these values)
	Gp1W = 10
	Gp1H = 10
 
	Gp2W = 10
	Gp2H = 80
 
	rollout rlGp "Groupbox"
	(
		groupbox gp "Group1" width:100 height:50 pos:[Gp1W,Gp1H]
		button btnButton1 "Button" width:60 height:20 pos:[(Gp1W+9),(Gp1H+20)]
 
		groupbox gp2 "Group2" width:100 height:50 pos:[Gp2W,Gp2H]
		button btnButton2 "Button" width:60 height:20 pos:[(Gp2W+9),(Gp2H+20)]
	)
	createDialog rlGp
)

John Martini
Digital Artist
http://www.JokerMartini.com (new site)

othoap's picture

IT's a Beautiful Thing

JokerMartini,

I'm sure it's elementary to you but THIS IS GREAT!! THANKS SO MUCH

Also thanks you for all your GREAT scripts. I use many of them each day. The above and beyond work you do on the videos are greatly appreciated. I also love the graphic packaging you do for them. It really show your a man of detail.

JokerMartini's picture

No problem.

I appreciate the comments. Thank you.
If you have any question or anything let me know.

John Martini
Digital Artist
http://www.JokerMartini.com (new site)

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.