I'm using a script to create points in the vertices just by changing the ID number creates the points.
The question is how to create a menu where the user can add the ID number where the point is going to be created?
fn attachObjectToVertex objToAttach targetMesh vertexIndex =
		(
						
					
					controlador= attachment()
					pot.pos.controller = controlador
					controlador.node = btn_OBJECT.object
					controlador.align = false
					addnewKey controlador 0f
					posicionAttach= attachCtrl.getKey controlador 1
					theMesh = snapshotAsMesh btn_OBJECT.object
					theFaces = (meshOp.getFacesUsingVert btn_OBJECT.object vertexIndex) as array
					theFace = getFace btn_OBJECT.object theFaces[1]
					posicionAttach.face = theFaces[1]-1
					posicionAttach.coord =if theFace.x == vertexIndex then [1,0] else if theFace.y == vertexIndex then [0,1] else [0,0]
						
		)
							attachObjectToVertex $point $btn_OBJECT_REFERENCIA 30
Replies
You can make pretty much any UI event launch your function.
It's all covered pretty thoroughly in the maxscript docs.
As I said above, look in the help. This is very basic and will be covered in the examples.