Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® MotionBuilder® / Python / how to hide a layer in python?
  RSS 2.0 ATOM  

how to hide a layer in python?
Rate this thread
 
22155
 
Permlink of this thread  
avatar
  • Total Posts: 13
  • Joined: 04 April 2008 06:26 PM

I’m building a small script in python that will duplicate an object and place it on its own layer before the main body of the scrip starts modifying the duplicate, so as not to alter the original. I’m trying to build the script so it will automatically hide the original layer with original object, any ideas?



Replies: 0
avatar

Figured it out, so for those that might want to know here it is

import maya.cmds as mc

mc.setAttr(’layername.visibility’, 0 )



Replies: 0