I’m trying to create a new Layer State but the function does seem to exist, it does appear in the documentation but the example is written in VBscript and I cannot find the function in python. Does anyone have any clue as how to implement it?
Here is a screenshot of the help file. http://d.pr/i/nMQm
import rhinoscriptsyntax as rs
def TestSaveLayerState():
plugin = rs.GetPlugInObject("Rhino Bonus Tools")
if plugin is not None:
plugin.SaveLayerState("TestLayerState")
if __name__ == "__main__":
TestSaveLayerState() # Call the function defined above