I am creating a layout template to import into various models. There 8 views in this template with different layer states. For example, 4 views show the rendered model and in the remaining 4 views, I don’t want to show the rendered view. I have set the template to display like this, but when I import it, the render layer is turned on in all 8 views.
It is a pain to step through the views to manage the display options. Am I missing some way to manage this?
You will need to apply to the view, a view doesn’t have a LayerState property per say. Turning off layers in the detail can be saved and doesn’t affect the other views.
So I created some layer states in the template file. In Rhino 6, ImportLayerState is an unknown command. When I import the layout, the Layer States do not come in. How do I import the layer states?
Many thanks… Clearly I haven’t spent time with Layer States. Is there any way to script this? I am trying to get this all set up under one tool bar button. I would have thought that since I imported the .3dm the layer states would come in as well.
I’m trying to import the Layer States from an existing 3dm via script. I guess once I have the Layer States as I prefer I can import the .lay file. Can that import be scripted?
I have been messing around with this and can’t seem to make it work. I’ve tried it under a button and in my main script. It fails with file “was not found”; then asks to “Choose layer state option”:. If I click the import button in the Layer States Manager and browse to the location, the file is there and imports perfectly. The file path and name are identical (except the .lay extension) to the .3dm file that imports correctly in my main script.
Thoughts?
you will need the .lay extension to import a layer state. This wasn’t intended to import a layer state from an existing .3dm, that’s a bit more involved.
'-LayerStateManager I “D:\OneDrive\Assets\Plugins\3DM\2D-Docs_Overview.lay”
That returns a “File” was not found. on the command line.
When I click the import button in the LayerStates Manager, I can browse to the file with that name and it imports perfectly.