How can I use two command panel columns in one column?

How can I use two command panel columns in one column?

mahmutoymaci
Enthusiast Enthusiast
94 Views
4 Replies
Message 1 of 5

How can I use two command panel columns in one column?

mahmutoymaci
Enthusiast
Enthusiast

How can set command panel column size with maxscript like "Arnold Light" settings. is possible access command panel column width settings with maxscript?

 

 

Screenshot_3.jpg

0 Likes
95 Views
4 Replies
Replies (4)
Message 2 of 5

miauuuu
Collaborator
Collaborator

This works for floating Command Panel:

(			
		
	QtWidgets = python.import "PySide2.QtWidgets" 	-- for 3ds max 2025+:  python.import "PySide6.QtWidgets"
	shiboken =  python.import "shiboken2"  				-- for 3ds max 2025+:  python.import "shiboken6"
	
	cArr = (QtWidgets.QApplication.topLevelWidgets()) as array
	for child in cArr where (shiboken.isValid child) and (child.objectName() == "CommandPanel") do
	(		
		childGeom = 	(child.geometry())
		child.setGeometry (childGeom.x()) (childGeom.y()) (child.width() * 2) (child.height())
		child.updateGeometry()
		exit
	)	
)

 

As you can see the code doubles the width of the Command Panel. Not exactly what you need but you can use it as a starting point.

 

 

 

https://miauu-maxscript.com/
Message 3 of 5

mahmutoymaci
Enthusiast
Enthusiast

Is it not possible to expand a single column without splitting it into two?

0 Likes
Message 4 of 5

miauuuu
Collaborator
Collaborator

You can set the width and the height of the Command panel. How 3ds max will resize it is different story.

If you want to make a single column wider, then do not multiply its width by 2, but it by 1.5 for example:

child.setGeometry (childGeom.x()) (childGeom.y()) (child.width() * 1.5) (child.height())

https://miauu-maxscript.com/
0 Likes
Message 5 of 5

mahmutoymaci
Enthusiast
Enthusiast

This process is no different than manual expansion. I want it to work exactly like the "Arnold Light" function, which is what I'm looking for.

0 Likes