Announcement

Collapse
No announcement yet.

MAXScript - 2 Groups next to each other?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • MAXScript - 2 Groups next to each other?

    Hi all Clever peeeeeepol

    I'm trying to put 2 groups next to each other, basically making 2 columns of buttons, but each column should be in its own group

    I tried:
    Code:
    across:2
    also tried
    on the 1st group
    Code:
    width:250 align:#left
    on the 2nd group
    Code:
    width:250 align:#right offset:[0,-26]
    also tried
    Code:
    pos:[0,24]
    but I'm starting to think you can't with standard maxscript put groups next to each other?

    Maybe I will just have to stick a label on the top row of each button column as workaround for now...
    Kind Regards,
    Morne

  • #2
    OK seems if I want that, then I should use groupBox and not group
    Also, I then have to explicitly state the position of everything

    I geuss I can just use the visualmaxscript for that, and not worry about the position code
    Kind Regards,
    Morne

    Comment


    • #3
      Originally posted by Morne View Post
      I geuss I can just use the visualmaxscript for that, and not worry about the position code
      You can use visual maxscript to start with but after a bit of practice I think it is quicker just to write it yourself.

      Originally posted by Morne View Post
      OK seems if I want that, then I should use groupBox and not group
      Also, I then have to explicitly state the position of everything
      I agree, it is much better to explicitly state the position and size of all UI elements than rely on align and across. I don't know why the examples in the help are rarely written this way.
      Code:
      (
      	rollout test1 "Group Test" width:320 height:95
      	(
      		groupBox gb1 "Group Box 1:" pos:[10,5] width:145 height:85
      			button bt1 "Populate Scene" pos:[20,25] width:125 height:25
      			button bt2 "Light Scene" pos:[20,55] width:125 height:25
      		groupBox gb2 "Group Box 2:" pos:[165,5] width:145 height:85
      			button bt3 "Optimize" pos:[175,25] width:125 height:25
      			button bt4 "Make Art" pos:[175,55] width:125 height:25
      	)
      	createDialog test1
      )
      Dan Brew

      Comment

      Working...
      X