Rhino.Python’s rhinoscriptsyntax library is just a library of Python functions that are designed to emulate legacy RhinoScript. So it makes sense that
rhinoscriptsyntax does not contain what you are looking for (either).
rhinoscriptsyntax just makes calls into RhinoCommon. You can vifew the source code to
To set the per-viewport layer properties, you’ll need to go to RhinoCommon directly. Here are a few methods that will be useful to you.
Here is a simple example:
import scriptcontext as sc
layer = sc.doc.Layers.CurrentLayer
if not layer:
color = System.Drawing.Color.Chartreuse
weight = 0.25
layer.PlotColor = color
layer.PlotWeight = weight
view = sc.doc.Views.ActiveView
if isinstance(view, Rhino.Display.RhinoPageView):
details_views = view.GetDetailViews()
for detail in details_views:
if __name__ == "__main__":
Hope this helps.