Hello,
Could someone give me an alias for turning on Zebra and when it prompts you to select your object to have it select all and then to turn if off? I would really appreciate it.
Thank you
Hello,
Could someone give me an alias for turning on Zebra and when it prompts you to select your object to have it select all and then to turn if off? I would really appreciate it.
Thank you
@cosmas In Rhino 8, you can put this code in a toolbar button and it will toggle zebra on all breps. FindByObjectType
can be adjusted for other geometry types:
_-ScriptEditor _Run (
// #! csharp
using System;
using Rhino;
using Rhino.Display;
using Rhino.DocObjects;
var doc = Rhino.RhinoDoc.ActiveDoc;
var zebraMode = VisualAnalysisMode.Find(VisualAnalysisMode.RhinoZebraStripeAnalysisModeId);
foreach (var obj in doc.Objects.FindByObjectType(ObjectType.Brep))
{
obj.EnableVisualAnalysisMode(zebraMode, true);
}
)
Thank you!