meshop.attach ignores attachMat argument

meshop.attach ignores attachMat argument

Anonymous
Not applicable
489 Views
0 Replies
Message 1 of 1

meshop.attach ignores attachMat argument

Anonymous
Not applicable

So I have two objects in the scene, they are both EditableMesh. I run this:

 

a = $MyObjectA

b = $MyObjectB

meshop.attach a b attachMat:#MatToID

 

It behaves the same as if I ran it manually through UI, but selected the "ID to Material" option, instead of "Material to ID".

 

The docs say "The attachMat and condenseMat options correspond to the attach options in editable mesh"

http://help.autodesk.com/view/3DSMAX/2015/ENU/?guid=__files_GUID_0532C071_4401_4846_8450_3DA5510A388...

 

But that's SIMPLY NOT TRUE. It seems that those options do absolutely nothing. I'm thinking it might have something to do with this sentence in the docs: "If the target or source is specified as a mesh rather than a node, the mesh is attached using the local coordinate system of the mesh, and no material correction is performed."

 

But what does that even mean? How, in maxscript, do I pass in something "as a mesh rather than a node". What is my code above doing? Passing as a mesh or as a node?

 

 

 

0 Likes
490 Views
0 Replies
Replies (0)