Maxscript listener assistance

Maxscript listener assistance

Anonymous
Not applicable
4,712 Views
22 Replies
Message 1 of 23

Maxscript listener assistance

Anonymous
Not applicable

I am new at maxscript and always have wanted to use it but don't know how.  Now I have a redundant application that I would like to try to use maxscript listener to do it. or write a script. (if I knew how)

 

Here is what i would like to do.

 

1. select an object

2. quadify selection (listener does not pick this up)

3. uvw map, box, uncheck Real-World Map size

4. assign material map called "stainless"

5. end

 

Can someone help me with this?

thanks

 

 

0 Likes
4,713 Views
22 Replies
Replies (22)
Message 21 of 23

Anonymous
Not applicable

@drew_avis

Drew I tried your quadify mesh but that is different then quadrify all results

 

q = Quadify_Mesh() -- create a Quadrify modifier
addModifier t q -- add the modifier to our node
u = UVWMap() -- create a UVWMap modifier
u.realWorldMapSize = false -- same as unchecking "Real World Map Size" checkbox
u.maptype = 4 -- set to box
addmodifier t u -- add it to the node
mat = scenematerials["stainless"] -- find the scene material named "stainless"
-- note: this must exist on an item in the scene
t.material=mat -- apply the material to the node
 

 

0 Likes
Message 22 of 23

drew_avis
Autodesk
Autodesk

Hi, what is Quadrify All you refer to?  Is it this third party script? http://www.scriptspot.com/3ds-max/scripts/quadrifyall

 

Drew



Drew Avis
Content Experience Designer
0 Likes
Message 23 of 23

Anonymous
Not applicable

I looked at this and i dont think so becsause this has a dialog box. You don't have this on yours? I looked back as far as 2016 and it is on it.

 

Make a box and turn it into a editable poly then it should show up here under the modeling tools

quadrify all.jpg

 

0 Likes