Notifications
Clear all

[Closed] Help!!!How to create a box by script???

hi, you guys, I got a problem, how to create a box by setmesh() ? i want to create a new button in main rollout, how to make it work as the default 鈥渂ox鈥?button? many thanks鈥?/p>

3 Replies

If you want to create a new primitive as a box, there are some examples for it:
(That鈥檚 for a box but but the principle remain the same.)

in the help file : How To 鈥?Create Scripted Geometry Plug-in
in cgtalk : http://www.cgtalk.com/showthread.php?t=211402

It is interesting鈥?br>
Unfortunately there does not seem be means to create an editable poly directly.
Maybe somebody can explain how to make that? That interests me鈥?

To make a box, it鈥檚 just:

theBox = Box length:10 width: 10 height:10

To make it editable poly:

convertTo thebox (Editable_poly)

Just that simple. Check the maxscript helpfile. Making a box is the very first thing you learn!

[left]

[/left]

———thanks!