Macro affichage

Hi @tryt,

The following Python script should do it.

import Rhino
import scriptcontext as sc

def ToggleShowIsoCurves():
    view = sc.doc.Views.ActiveView
    if view:
        desc = view.ActiveViewport.DisplayMode
        desc.DisplayAttributes.ShowIsoCurves = not desc.DisplayAttributes.ShowIsoCurves
        Rhino.Display.DisplayModeDescription.UpdateDisplayMode(desc)
        sc.doc.Views.Redraw()

if __name__ == "__main__":
    ToggleShowIsoCurves()

– Dale