Invision Power Board: max script - Invision Power Board

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

max script how to do this or that ?

#1 User is offline   Codeman 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 266
  • Joined: 11-October 09
  • Gender:Male
  • Location:Mars
  • Interests:3d, gaming , coding tools and apps

Posted 12 March 2010 - 05:53 PM

so playing with mario's script, i was wondering how to select a mesh via maxscript then apply it a vertex weld with 0.1 threshold and finally the normal modifier with unify=1 and flip = 0
all in a script if it is possible ?


_-=<(¯`·._.·[ CodeMan ]·._.·´¯)>=-_
0

#2 User is offline   pixellegolas 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 580
  • Joined: 05-December 08
  • Gender:Male
  • Location:Utopia

Posted 12 March 2010 - 11:25 PM

cannot help you except that like all macros you can record everything you do so basically you should be able to do it on a current model and just use that code....right!? smile.gif


He will kill u all!
0

#3 User is offline   Mario_Kart64n 

  • Advanced Member
  • PipPipPip
  • Group: Root Admin
  • Posts: 1,134
  • Joined: 29-November 08

Posted 13 March 2010 - 04:08 AM

chrrox knows more then me. but the max help me file includes samples..

here's what I was able to piece together
CODE
obj = $Box01
vs=getVertSelection obj

subobjectLevel = 1
select obj.verts[vs]
meshop.weldVertsByThreshold obj vs 0.001

max modify mode
addModifier obj (Normalmodifier ())
$.modifiers[#Normal].flip = off
$.modifiers[#Normal].unify = on


only works on a single object in the scene.. must be named box01

but i'm sure there's another way to retrieve the names of the scenes objects.. and loop this operation said times, on said objects.. but I don't know how

http://mariokart64n.mybrute.com/cellule

♥♥♥ Nozomi Sasaki & Hwang Mi Hee ♥♥♥
Numpad for nunchuk emulation.
-Keyboard arrows for the D-pad.
-'S' shakes the Wiimote.
-A/B/1/2 are all mapped to their respective chars on the keyboard.
-A/B are also on the two primary buttons of a mouse.
-+ is 'P', - is 'M'.

Canada Bans Talking to Children
"we are quickly becoming a more, and more pathetic society. Is it really a good thing to make
adults so paranoid about even speaking to children? I feel like I'm going to be arrested for even smiling/waving at one x_x..."
-sankakucomplex.com
http://www.ctv.ca/servlet/ArticleNews/stor...1203?hub=Canada
0

#4 User is offline   Codeman 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 266
  • Joined: 11-October 09
  • Gender:Male
  • Location:Mars
  • Interests:3d, gaming , coding tools and apps

Posted 13 March 2010 - 04:27 PM

yes thanks for the reply, chrroxx also helped me on msn ^^
_-=<(¯`·._.·[ CodeMan ]·._.·´¯)>=-_
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users