Notifications
Clear all

[Closed] (C#) Zoom viewport on objects

 MZ1

I want to create a thumbnail for some objects. This is the Maxscript code that I used, now I want to convert it to the C# code, anyone can help on this?

allObjs = objects as array
with redraw off
(
	oldSelection = selection as array
	objs = for o in allObjs where superclassof o == geometryclass collect o
	select objs
	max zoomext sel all
	max zoom in 2x
	select oldSelection
)
2 Replies

look in …SDK\howto\ui\customcontrols\custctrl.cpp how to call zoom command (full list is here: \include\maxcom.h or in sdk reference)
other things should be pretty easy to do as well

 MZ1

Thank you @Serejah, I will check it out.