Notifications
Clear all
[Closed] (C#) Zoom viewport on objects
Feb 04, 2022 10:57 pm
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
Feb 04, 2022 10:57 pm
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