Okay I've hit brick wall with a script I'm working on. Essentially I'm checking that two objects have the same topology, so I'm using a morph and adding one to another and checking that it worked. originalMesh = $box01newMesh = $box003originalMeshCheck = copy originalMesh--Delete modifier because the original mesh already…
Okay I fixed it. Essentially before I add the morph target I have to select the object. Makes no sense; I shouldn't have to select it; it works if I manually run that single line without it selected - but in the script it needs to be selected. Moral of the story: MAXScript makes no sense sometimes.
I've been struggling with this myself the last couple of days - does it work the second time you try it ? I'm pretty sure it's down to when and how you declare variables - you could try explicitly making everything global to and declaring them right at the top to test whether that's the problem or not (you'll need to clear…