# Visible in Mask on Script

**URL:** <https://forums.chaos.com/t/visible-in-mask-on-script/129961>\
**Category:** User Contributions\
**Tags:** 3ds-max\
**Created:** [January 19, 2015, 1:04pm UTC](https://forums.chaos.com/t/visible-in-mask-on-script/129961 "2015-01-19T13:04:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SairesArt\_1](https://avatars.discourse-cdn.com/v4/letter/s/85e7bf/32.png) [@SairesArt\_1](https://forums.chaos.com/u/SairesArt_1)\
**Post date:** [January 19, 2015, 1:04pm UTC](https://forums.chaos.com/t/visible-in-mask-on-script/129961/1 "2015-01-19T13:04:57Z")

</div>

There is a bug in corona, making Materials invisble on certain render elements, which [screwed me over](https://forum.corona-renderer.com/index.php/topic,6614.msg44811.html#msg44811). It happens by corona unchecking “Visible in mask” Checkbox, when jumping between the daily builds and the official build.  
I was promised a script that would check that back automatically, for my scene with 200+ materials. Since there is no such script in the Goodies section, I found it via google custom search in the resolved bugs forum, originally [submitted by mirokurcik]([https://forum.corona-renderer.com/](https://forum.corona-renderer.com/) [Masks based on materials will behave different between Daily Builds and Alpha](https://forums.chaos.com/t/129828) ). So I reuploaded here, should there be a soul of similar fate searching for an answer.

tl:dr  
Script checks “Visible in Masks” checkbox for every material in the scene.  
[visON.ms](https://forums.chaos.com/uploads/short-url/159r7ABT7dpcpzNQM3l6cXLATlS.ms) (78 Bytes)
