Documentation index
Leveraging Formulas in SeamScape
Formulas are integral to SeamScape's dynamic design paradigm. They empower you to define constraints and properties not merely with static values, but through calculations derived from other pattern elements. This facilitates complex interdependencies and automated adjustments.
Formula Fundamentals
- Syntax: Formulas employ standard mathematical operators (
+
,-
,*
,/
) and functions (e.g.,sin()
,cos()
,sqrt()
). While similar to spreadsheet formulas, they typically do not require an initial=
. - Unit Handling: SeamScape intelligently manages units (e.g., cm, inches, degrees). Explicit unit specification (e.g.,
10cm
,90deg
) is supported for clarity or conversion. - Reactivity: The true power of formulas is their reactive nature. Changes to any referenced value (e.g., a path length or variable) trigger automatic recalculation, instantly updating the constrained element.
Referencing Pattern Elements
Formulas derive their strength from referencing properties of named elements (Points, Paths, Variables) within your design. Common reference syntaxes include:
PathName.length
: Retrieves the calculated length of the path 'PathName'.PathName.angle
: Retrieves the absolute angle of 'PathName' (primarily for straight lines).PointName.x
: Accesses the X-coordinate of 'PointName'.PointName.y
: Accesses the Y-coordinate of 'PointName'.VariableName
: Obtains the current value of the custom variable 'VariableName'.- Point-specific path properties: Access properties like the angle at a specific point on a curve (e.g.,
PathName.PointName.angle
, syntax may vary).
Advantages of Formulas
- Automation: Eradicate manual recalculations for interdependent measurements.
- Consistency: Maintain precise mathematical relationships across pattern components.
- Adaptability: Develop patterns that intelligently resize or reshape based on input variables or key element modifications.
- Complexity Management: Model intricate geometric relationships with ease.
Illustrative Use Cases
- Proportional Sizing: Constrain a path length with
ShoulderSeam.length * 0.8
. - Dynamic Placement: Define a Sliding Point's position using
Waistline.length / 4
. - Coordinate Calculation: Set a point's X coordinate via
Point1.x + 10cm
. - Angular Relationships: Determine a path's angle with
CenterBack.angle + 90deg
.
By integrating formulas with constraints and variables, you unlock SeamScape's full capacity for creating sophisticated, adaptable, and highly efficient patterns.