Notifications
Clear all

[Closed] Convert To EPoly?

Hey,

I know this is a real noob question, but let’s say i wanted to create a box and then convert it to EPoly at the press of 1 button…what would be the code for the button do()?

Thanks

-Gerd

2 Replies

This is fairly straightforward with a little reference browsing, but here’s one way to do it:

on btn1 pressed  do
 	(
 		boxObj = box()
 		convertto boxObj editable_poly
 	)
 

This give you the default box converted to editPoly. There are other ways to convert to editPoly as well.

For the most part, if you just open the maxscript listener (F11) & enable it with the right settings, then do your action, it should show up… You can then just copy and paste that code into your maxscript file.