← 返回函数库

filePath

File 内置函数 已实现

说明

返回当前 CGA 规则文件的路径。

语法

filePath()

示例

attr x = filePath()

🎨 3D 预览 — 文件路径

@StartRule
Lot --> primitiveCube(4, 4, 4)
        print(filePath("example"))
        color(0.6, 0.7, 0.8)