Macro affichage

Good morning,

First of all thank you for your time.

Is it possible to create a macro to modify the display settings in Rhino?
If yes, how .

THANKS,
R.F.

As far as I know, for the moment none of the myriad display mode options are exposed either via macro
(-_Options _View _DisplayModes...)
or via scripted components.

Edited - OK, didn’t see that some of the options are exposed there, thanks @dale

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

Listen, thank you very much for your responsiveness.
I am impressed…

Looking forward,
tryt