Skip to content

Refine dieline generator: separate Cut/Crease and improved TTLB lock controls#2

Open
ImanAmeli wants to merge 1 commit into
mainfrom
codex/create-script-for-making-tag-boxes-cpmcux
Open

Refine dieline generator: separate Cut/Crease and improved TTLB lock controls#2
ImanAmeli wants to merge 1 commit into
mainfrom
codex/create-script-for-making-tag-boxes-cpmcux

Conversation

@ImanAmeli

Copy link
Copy Markdown
Owner

Motivation

  • Produce pro-style dielines where cut and fold geometry are separated so fold lines are not mis-rendered as cuts.
  • Add robust support for Tuck Top + Lock Bottom (TTLB) with a tunable lock notch so designers can adjust locking behavior.
  • Improve iterative design workflow by allowing clearing of existing Cut/Crease layers before redraws.
  • Update documentation to reflect new features and parameters.

Description

  • Reworked dieline construction so flap outlines are drawn as open contours on Dieline - Cut and all fold lines are drawn as dashed paths on Dieline - Crease.
  • Implemented lock-bottom geometry via lockMainContour and lockDustContour and exposed lockNotchRatio as the Lock Notch dialog field clamped to 0.08–0.28.
  • Extended the UI dialog to include Dust Ratio, Tuck Shoulder, Tuck Tongue, Lock Notch, and a Clear Cut/Crease layers before drawing checkbox.
  • Refreshed README.md (Persian) to document supported box styles, parameters, and usage steps.

Testing

  • Syntax-checked the ExtendScript payload (with the #target illustrator directive removed) using node and new Function(code), which executed successfully.
  • Programmatically listed and inspected the generated script file contents with nl to verify the new dialog entries and lock-flap functions are present and parse without errors.

Codex Task

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant