PDA

View Full Version : some little help with basci maxscript?


metamesh
02-02-2008, 05:09 PM
Hello there guys,
═ have no really idea about maxscript, and i haven┤t managed to make something very simple:

the idea is to select a bunch of vertices in a mesh ( wether in editable poly, edit poly or mesh poly select...) run the script and it will create a point helper per vertex selected, and in the position of each vertex...any ideas on how to do that?

thanks gurus of maxscript!

Guimas
02-03-2008, 11:41 AM
Hey metamesh, whasup?

There it goes:


vertArray = getVertSelection $

for verts in vertArray do
(
p = point()
p.pos = polyOp.getVert $ verts
)


if you want it to work with a mesh you just have to remove "polyOp." from the last line and it will work. I hope it helps.

see ya

metamesh
02-03-2008, 01:42 PM
dude, u are a genius :) it works like a charm, thnx so much!

btw, i just tried twice with an edit poly instead of editable poly and it crashed max twice...any ideas why?

thx anyway!

CGTalk Moderation
02-03-2008, 01:42 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.