Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save 3dAsmol79/ae66b0e51dabaa2520b5cd521f7fc072 to your computer and use it in GitHub Desktop.
Save 3dAsmol79/ae66b0e51dabaa2520b5cd521f7fc072 to your computer and use it in GitHub Desktop.
MaxScript - Make a new layer and make it current
if LayerManager.getLayerFromName layerName0001SiteContext == undefined then
layer = LayerManager.newLayerFromName "0001_Site_Context"
lpi = layerManager.getLayerFromName "0001_Site_Context"
lpi.current = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment