FL.Node
Node
Node - class to represent node
This class is Multiple Master - compatible
CONSTRUCTOR: Node() - generic constructor, creates an empty node Node(Node) - copy constructor Node(intteger type, Point p) - creates a Node and assigns type and coordinates of the final point
ATTRIBUTES: parent (read-only) - Node's parent object type (integer) - type of the node, values are: nMOVE, nLINE, nCURVE or nOFF count (integer, read-only) - number of points in the node. 3 for curves and 1 for all other types of nodes alignment (integer) - type of primitive connection, possible values are: nSHARP, nSMOOTH, nFIXED selected (integer) - True if node is selected point (Point) - position of the final point of the first master points [(Points)] - positions of all points of the first master x (integer) - horizontal position of the final point of the node y (integer) - vertical position of the final point of the node
OPERATIONS: len() - returns number of points in the node, same as count attribute [] - can be used to access individial points of the first master multiply - second operand must be Matrix, applies matrix transformation to a node
METHODS Assign - assigns new values to a Node, refer to constructor for a description of possible options SetAllLayers(pointindex, Point p) - assigns position of the point p to all masters of the point number 'pointindex' Layer(masterindex) - returns list of points for the master 'masterindex' Section(pointindex) - returns list of points for all layers and point number 'pointindex' Shift(Point p, masterindex) - shifts position of all points for the master 'masterindex' ExpandLayer(masterindex) - copies positions of all points in the master 'masterindex' to other masters Transform(Matrix m) - applies Matrix transformation to the Node (see Matrix().doc)
Native bases: object
Captured native MRO: Node, object
Native new allocation evidence (not an init overload): (args, *kwargs) Create and return a new object. See help(type) for accurate signature.
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 |
|---|---|---|---|
Assign |
function | (self, *args: Any, **kwargs: Any) -> Any |
Native FL.Node.Assign; argument details are not documented. |
ExpandLayer |
function | (self, *args: Any, **kwargs: Any) -> Any |
Native FL.Node.ExpandLayer; argument details are not documented. |
Layer |
function | (self, *args: Any, **kwargs: Any) -> Any |
Native FL.Node.Layer; argument details are not documented. |
Section |
function | (self, *args: Any, **kwargs: Any) -> Any |
Native FL.Node.Section; argument details are not documented. |
SetAllLayers |
function | (self, *args: Any, **kwargs: Any) -> Any |
Native FL.Node.SetAllLayers; argument details are not documented. |
Shift |
function | (self, *args: Any, **kwargs: Any) -> Any |
Native FL.Node.Shift; argument details are not documented. |
Transform |
function | (self, *args: Any, **kwargs: Any) -> Any |
Native FL.Node.Transform; argument details are not documented. |
__init__ |
function | (self, /, *args: Any, **kwargs: Any) -> None |
Initialize self. (shared captured text) |
alignment |
attribute | Any |
|
count |
attribute | Any |
|
open |
attribute | Any |
|
parent |
attribute | Any |
|
point |
attribute | Any |
|
points |
attribute | Any |
|
selected |
attribute | Any |
|
type |
attribute | Any |
|
x |
attribute | Any |
|
y |
attribute | Any |