ScriptSpot

Forum topic · Scripts Wanted

change group box attributes

By othoap · 2011-05-12

Description

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 (3)

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

JokerMartini · 2011-05-12

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
)

IT's a Beautiful Thing

othoap · 2011-05-13

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.

No problem.

JokerMartini · 2011-05-13

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