Notifications
Clear all

[Closed] need some tips and help

Hi you all, im new in maxscript and i need some help well theres some stuff the first one is a interactive point by point modelling solution by keyboard imput

you give x, y and z cords and it add a point, again and again and when you have 4 it automaticaly close the pollygon ( in imput order conection 1-2 2-3 3-4 4-1, that works for the first poly , the second one you only give 2 points. the first point (1a) connect to the last created point (4), the second (2a) to the first (1a) and automaticaly conects to a close point lets say poly #3) <so 1a-2a 2a-3 3-4 4-1a>. here is the code for a 4 poly plane for points connected in correct order.

If you think of a better solution please tell me.

Box lengthsegs:1 widthsegs:1 heightsegs:1 length:6.30065 width:6.30065 height:6.30065 mapcoords:on pos:[-0.0949204,0.249225,0] isSelected:on
modPanel.addModToSelection (Edit_Poly ()) ui:on
subobjectLevel = 1
$.modifiers[#Edit_Poly].SetOperation #Create
$.modifiers[#Edit_Poly].CreateVertex [20,20,0]
$.modifiers[#Edit_Poly].CreateVertex [20,-20,0]
$.modifiers[#Edit_Poly].CreateVertex [-20,-20,0]
$.modifiers[#Edit_Poly].CreateVertex [-20,20,0]
subobjectLevel = 4
$.modifiers[#Edit_Poly].SetOperation #Create
$.modifiers[#Edit_Poly].SetSelection #Face #{}
$.modifiers[#Edit_Poly].SetOperation #Create
$.modifiers[#Edit_Poly].CreateFace #(9,10,11,12)

the second is to make that as an interface.

This is just a part of a bigger project. if you are interested about it and in helping fourther send me a PM and i will contact you .

tx in advance!