Expand description
Pages and works made from settings alone, without a CSP-made template
of the work. Moved from name-studio’s clip-core (write/blank.rs).
The crate carries three files saved by CLIP STUDIO PAINT EX 5.1.4
(assets/): an empty single page, a work (.cmc) listing it, and the page
with one vector line and one text to copy editable layers from. A page
is the empty one with the canvas, frames, binding and story info
(作品名・話数・作者名・ノンブル) set from a PageSetup. Everything sized by
the canvas is resized, and the 作品情報 / ノンブル texts are placed where
CSP puts them, relative to the frames. The page is built from CSP’s own
rather than from crate::create so that the tables and columns CSP
reads stay as CSP writes them.
Structs§
- Page
Number - ページ番号 in the 作品情報.
- Page
Setup - What a page and its work are made with. Lengths in mm.
- Shown
Nombre - A ノンブル printed on the page (CSP’s ノンブル, not the hidden one).
- Story
Font - The font of the 作品情報 and ノンブル texts.
- Story
Layout - The rest of CSP’s 作品情報 and ノンブル settings. The default is what CSP’s new works have: 作品名 左下, 作者名 下, no ページ番号, the hidden ノンブル.
Enums§
- Nombre
Place - Where a shown ノンブル goes, from the 基本枠: above or below it, on the binding side (内側), in the middle or on the other side (外側).
- Story
Position - Where a 作品情報 text goes under the 仕上がり: CSP’s 左下・下・右下.
Constants§
- BLANK_
PAGE - An empty single page (A3 canvas, B4 仕上がり, 600 dpi, left page).
- BLANK_
PARTS - The empty page with one vector layer (a line) and one text layer, to
copy editable layers from (
ClipFile::copy_layer_from). - BLANK_
WORK - A work listing the empty page.
- MAX_
SIDE_ PX - The largest side CSP takes, in px.
- NOMBRE_
EDGE - The layer effects CSP gave its (ノンブル) with フチ 0.5 mm at 600 dpi
(
LayerEffectInfo: the フチ on, the other effects off).
Functions§
- apply_
setup - Give a CSP-made empty single page (a left page) the canvas, frames,
binding and story info of
setup. - blank_
page - The built-in empty page made for
setup, with new file and layer ids. - blank_
parts - The built-in page with a vector and a text layer (to copy from), with a new file id.
- blank_
work - The built-in work with
setup’s settings, listing its one page (replace the list withCmcFile::save_with_pagesonce the pages are written).