Notifications
Clear all

[Closed] How to fix 3ds max 2018+ docking problem?

Dear all,
I have a project need dock script to top of screen,all versions are OK except 3ds max 2018+,I have already known this issue,but don’t know how to fix it.(Is it can be fixed?)The code:

cui.RegisterDialogBar test_rollout style:#(#cui_dock_top,#cui_max_sized, #cui_floatable, #cui_handles) maxSize:[200,25] minSize:[200,25]
cui.DockDialogBar test_rollout #cui_dock_top	

docking

5 Replies

Hi momo2012
Have you tried giving a fixed size on top your rollout on decleration, like:

Rollout test_rollout "testMe" width:200 height:25
(
)

I’ve tried,still has the same,below is the full code:

Rollout test_rollout "testMe" width:200 height:25
(
	button test "123" 
)
CreateDialog test_rollout 200 25
cui.RegisterDialogBar test_rollout style:#(#cui_dock_top,#cui_max_sized, #cui_floatable, #cui_handles) maxSize:[200,25] minSize:[200,25]
cui.DockDialogBar test_rollout #cui_dock_top	

q

Try this instead

Rollout test_rollout "testMe" width:200 height:25
(
	button test "123" 
)
CreateDialog test_rollout
cui.RegisterDialogBar test_rollout style:#(#cui_dock_top,#cui_max_sized, #cui_floatable, #cui_handles) 
cui.DockDialogBar test_rollout #cui_dock_top	

The “maxSize” is deprecated in 2018.
This code still does not dock above the ribbon but it handles height better.

OK,thanks for great help

Hi,

I have the same problem and I am looking for a solution.
Any have solved it yet ?