Last active
July 18, 2019 22:24
-
-
Save stevechap416/e6f6deffc2928dd19383ce5d41c96697 to your computer and use it in GitHub Desktop.
Maxscript: Create Layer by Name
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--Creates a layer with a given name if it doesn't already exist. | |
function createLayer newLayerName = ( | |
layer = LayerManager.getLayerFromName newLayerName | |
if layer == undefined then ( | |
layer = LayerManager.newLayer() | |
layer.setname newLayerName | |
) | |
) | |
createLayer "My_New_Layer_Name" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment