typerig.proxy.gs3.objects.layer.trLayer
trLayer
Proxy to GSLayer object.
Layer data (self.data) is laid out as: [trShape(outline)] — one virtual outline shape wrapping all GSPaths; absent when the layer has no paths [trShape(comp), ...] — one trShape per GSComponent
Constructor: trLayer(GSLayer)
Attributes: .host (GSLayer): wrapped GlyphsApp layer
Source bases
Complete member index
Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.
| Member | Kind | Signature | Summary |
|---|---|---|---|
LSB |
attribute | (self) |
|
RSB |
attribute | (self) |
|
__getattribute__ |
function | (self, name) |
|
__init__ |
function | (self, layer, **kwargs) |
|
__meta__ |
attribute | (shared captured text) | |
__meta_keys |
attribute | (shared captured text) | |
__setattr__ |
function | (self, name, value) |
|
advance_height |
attribute | (self) |
|
advance_width |
attribute | (self) |
|
anchors |
attribute | (self) |
|
append_contour |
function | (self, core_contour) |
Append a core Contour as a new GSPath on the host layer. |
append_shape |
function | (self, shape) |
Append one GSPath or GSComponent to the host layer. |
clear_guides |
function | (self) |
|
clear_shapes |
function | (self) |
Remove every path and component from the host layer. |
copy_guides_from |
function | (self, other, clean=False) |
Append copies of other's guides (clean=True: replace). |
copy_shapes_from |
function | (self, other, clean=False) |
Append copies of other's paths and components (clean=True: replace). |
copy_to_background |
function | (self) |
Append copies of this layer's shapes to its background (Glyphs' counterpart of the FL mask layer). |
eject |
function | (self) |
Detach from host: return a pure core Layer. |
mount |
function | (self, core_layer) |
Write core Layer data back into the GS3 host. |
path_boolean |
function | (self, indices, operation, reverse=False) |
Boolean operation on the paths at indices (FL contour_bool). |
set_locked |
function | (self, locked=True) |
Lock / unlock every path and component on the layer. |
set_shapes |
function | (self, shapes) |
Replace all shapes (GSPath + GSComponent) on the host layer. |
swap_shapes |
function | (self, other) |
Exchange all paths and components with another trLayer. |
visible |
attribute | (self) |
Layer visibility in the edit view (eye icon in the Layers panel). |