Hi,
What is equivalent of these two lines in python grasshopper component?
var col = Attributes.Selected ? args.WireColour_Selected : args.WireColour;
I have hard time finding a correct namespace of Attributes Selected.
Full snippet of my c# code
public override void DrawViewportWires(IGH_PreviewArgs args)
{
var col = Attributes.Selected ? args.WireColour_Selected : args.WireColour;
var lineWeight = args.DefaultCurveThickness;
if (!base.Hidden && !base.Locked)
{
foreach (Polyline pline in polylines)
args.Display.DrawPolyline(pline, col, lineWeight);
}
}