GumballSettings

Since v9.0
public static class GumballSettings
Contains static metthods and properties to modify Rhino gumball settings.

Properties

ArcThickness

#Since v9.0
public static int ArcThickness { get; set; }
Specifies the thickness of the rotation arcs in pixels. Set arc thickness to zero to turn off rotation handles.

AutoGumballAlignment

#Since v9.0
public static GumballAlignment AutoGumballAlignment { get; set; }
Specifies the plane the gumball aligns itself to.
Remarks: Setting this does not re-align a gumball that is already on screen; the new alignment is picked up the next time the gumball is built, for example when the selection changes. Run the GumballAlignment command instead if you need the visible gumball updated.

This setting is deliberately not part of GumballSettingsState, so it is left alone by RestoreDefaults(). This matches the RestoreDefaults behavior of the -GumballSettings command, which does not reset the alignment either.

AxisThickness

#Since v9.0
public static int AxisThickness { get; set; }
Specifies the thickness of the axis arrows in pixels. Set axis thickness to zero to turn of move handles.

EnableGumball

#Since v9.0
public static bool EnableGumball { get; set; }
Turns the gumball widget on any time objects are selected.

ExtrudeBallSize

#Since v9.0
public static int ExtrudeBallSize { get; set; }
Specifies the size of the extrude dots in pixels.

GumballRadius

#Since v9.0
public static int GumballRadius { get; set; }
Specifies the radius of the gumball widget in pixels.

MergeFacesAfterExtrude

#Since v9.0
public static bool MergeFacesAfterExtrude { get; set; }
Merges faces after extruding.

PlaneLocation

#Since v9.0
public static int PlaneLocation { get; set; }
Specifies the distance of the plane indicators from the gumball origin in pixels.

PlaneSize

#
public static int PlaneSize { get; set; }
Specifies the size of the plane indicators in pixels. Set plane size to zero to turn off the plane indicators. 9.0

PlaneVisibilityAngle

#Since v9.0
public static double PlaneVisibilityAngle { get; set; }
Sets the angle of view for the plane to be visible. The range is from 0 to 90 degrees. 0 degrees means the plane only shows if the gumball is perfectly aligned to the view, 90 means the plane always shows. The default is 50 degrees.

RotateViewAroundGumball

#Since v9.0
public static bool RotateViewAroundGumball { get; set; }
Sets the view rotation center to the gumball origin.

ScaleHandleSize

#Since v9.0
public static int ScaleHandleSize { get; set; }
Specifies the size of the scale handles in pixels. Set scale handle size to zero to turn off scale handles.

SnappyGumball

#Since v9.0
public static bool SnappyGumball { get; set; }
If true, snaps to object snap locations. if false, ignores object snap locations.

TipLength

#Since v9.0
public static int TipLength { get; set; }
Specifies the length of the direction arrows in pixels.

TipWidth

#Since v9.0
public static int TipWidth { get; set; }
Specifies the width of the direction arrows in pixels.

XAxisColor

#Since v9.0
public static Color XAxisColor { get; set; }
Specifies the gumball x axis color.

YAxisColor

#Since v9.0
public static Color YAxisColor { get; set; }
Specifies the gumball y axis color.

ZAxisColor

#Since v9.0
public static Color ZAxisColor { get; set; }
Specifies the gumball z axis color.

Methods

GetCurrentState

#Since v9.0
public static GumballSettingsState GetCurrentState()
Gets the current settings of the application.

GetDefaultAlignment

#Since v9.0
public static GumballAlignment GetDefaultAlignment()
Gets the factory default value of AutoGumballAlignment.

GetDefaultState

#Since v9.0
public static GumballSettingsState GetDefaultState()
Gets the factory settings of the application.

RestoreDefaults

#Since v9.0
public static void RestoreDefaults()
Commits the default settings as the current settings.

UpdateFromState

#Since v9.0
public static void UpdateFromState(GumballSettingsState state)
Sets all settings to a particular defined joined state.
state (GumballSettingsState)The particular state.