home *** CD-ROM | disk | FTP | other *** search
/ Maximum 3D 3 / m3d-p3.iso / 3DS_MAX / 3DSMAX.2_0 / SCRIPTS / METAPETE.MS < prev    next >
Text File  |  1997-10-19  |  566b  |  23 lines

  1. utility metanurbs "Metanurbs Converter"
  2. (
  3.     group "Smoothing Level"
  4.     (
  5.     spinner iterate "Iterations:" type:#integer range:[0, 3, 0]
  6.     )
  7.  
  8.     local object, object2
  9.     pickbutton pick_object "Pick object"
  10.     label object_name
  11.     
  12.     on pick_object picked obj do (object = obj; 
  13.     
  14.     convertToMesh(object)
  15.     object2 = reference object
  16.     addModifier object2 (meshsmooth  apply_to_whole_mesh:1 smooth_output:1 iterations:iterate.value)
  17.     object.material = standardmaterial wire:TRUE
  18.     max modify mode
  19.     select object
  20.     max subobject sel
  21.        max cycle sublevel
  22.     )
  23. )