"Clear Materials from Selected" command? (Is this right?)
Embarrassingly enough, I've tried for the past couple days to write a simple script for this but I've realized I'm hopelessly bad at maxscript. Shouldn't this work if I ran it?
macroScript ClearMaterialSelected
category:"# Scripts"
toolTip:"Clear Material"
(
$. mat = null
)
Attachment | Size |
---|---|
clearmaterial.mcr | 105 bytes |
Comments
.
Tools and Scripts for Autodesk 3dsMax
Ay! works like a charm. Thank
Ay! works like a charm. Thank you.
You don't even need the if test if using selection. I think the original problem might be confusing what scripts vs macroscripts do, macro will do 'nothing' when run as a script, it will only register an action that can be called from global search, assigned hotkey or UI item
Some of my scripts and MCGs :: 3ds Max SDK Intro for Scripters