Wish: mxm handling on export
Posted: Tue May 13, 2014 9:15 am
Export option to choose between :
- embed materials in mxs
- keep materials as references
- embed materials in mxs
- keep materials as references
The official Maxwell Render public forum. A place to share your latest projects and be inspired by others, or get help and feedback from the Maxwell community
https://forum.maxwellrender.com/
//Enable MXM embed for the materials on currently selected objects
hyperShade -smn;
string $selection[] = `ls -selection`;
for($node in $selection)
{
if(`attributeQuery -exists -node $node "embedInMXS"`)
setAttr ($node + ".embedInMXS") 1;
}
//Disable MXM embed for the materials on currently selected objects
hyperShade -smn;
string $selection[] = `ls -selection`;
for($node in $selection)
{
if(`attributeQuery -exists -node $node "embedInMXS"`)
setAttr ($node + ".embedInMXS") 0;
}