Skip to main content

Module blank

Module blank 

Source
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§

PageNumber
ページ番号 in the 作品情報.
PageSetup
What a page and its work are made with. Lengths in mm.
ShownNombre
A ノンブル printed on the page (CSP’s ノンブル, not the hidden one).
StoryFont
The font of the 作品情報 and ノンブル texts.
StoryLayout
The rest of CSP’s 作品情報 and ノンブル settings. The default is what CSP’s new works have: 作品名 左下, 作者名 下, no ページ番号, the hidden ノンブル.

Enums§

NombrePlace
Where a shown ノンブル goes, from the 基本枠: above or below it, on the binding side (内側), in the middle or on the other side (外側).
StoryPosition
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 with CmcFile::save_with_pages once the pages are written).