rhino-batch-image-export
Skill445 starsChanged 2 months agoMITView on GitHub
Batch-export view images of a Rhino 9 model (options, views, layer sets) in one display mode, each file checked against the mode: a blank image, or colour in a mode that must have none, fails the batch. Sets up the display modes, views and materials the export needs. Use when the user asks for a batch of captures or viewport images of options, views or layer sets, or for images in a display mode. Not for photorealistic rendering, or black and white vector sheets, which rhino-thinline makes.
In this repository69 other files it gives its agents.
- skills/project/templates/AGENTS.mdAGENTS.md
- skills/project/templates/CLAUDE.mdCLAUDE.md
- agreementSkill
- architecture-knowledgeSkill
- color-palette-generatorSkill
- csv-to-sifSkill
- demographics-analysisSkill
- drawing-quantity-extractSkill
- environmental-analysisSkill
- epd-compareSkill
- epd-parserSkill
- epd-researchSkill
- epd-to-specSkill
- ffe-spec-bookSkill
- invoiceSkill
- learnSkill
- lighting-report-extractSkill
- master-scheduleSkill
- meeting-minutesSkill
- mobility-analysisSkill
- nyc-acrisSkill
- nyc-bsaSkill
- nyc-dob-permitsSkill
- nyc-dob-violationsSkill
- nyc-hpdSkill
- nyc-landmarksSkill
- nyc-property-reportSkill
- occupancy-calculatorSkill
- product-auditSkill
- product-cut-sheetSkill
- product-data-cleanupSkill
- product-data-importSkill
- product-enrichSkill
- product-image-processorSkill
- product-librarySkill
- product-matchSkill
- product-pairSkill
- product-researchSkill
- product-spec-bulk-fetchSkill
- product-spec-pdf-parserSkill
- product-url-clipSkill
- projectSkill
- proposalSkill
- receiveSkill
- resize-imagesSkill
- rhino-agent-teamSkill
- rhino-axonSkill
- rhino-bomSkill
- rhino-modelSkill
- rhino-setupSkill
- rhino-thinlineSkill
- schedule-quantity-reconcileSkill
- sif-to-csvSkill
- site-historySkill
- site-visit-reportSkill
- skill-makerSkill
- slide-deck-generatorSkill
- spec-writerSkill
- startSkill
- studio-feedbackSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Before acting, read the host contract, this component's declaration (skill:rhino-batch-image-export) and the mode profiles it references in …
- Very specific: line 21
Capture only by script: Never use the capture tool's cameraLocation, target or view arguments, which blank or rewrite views.
- Distinctive: line 27
Read the lessons after setup and before asking.
- Very specific: line 29
Setup: If the Rhino tools are absent, follow rhino-setup for the user action.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/as:rhino-batch-image-export
Before acting, read the host contract, this component's declaration (skill:rhino-batch-image-export) and the mode profiles it references in the shared catalog. Declarations are requirements, not proof of access or permission.
<!-- architecture-studio:harness-compatibility -->Use the host adapter for native invocation. Requires Rhino 9 with an open document and its run_python tool. Plugin-only: the image export and its file-by-file check use scripts/as-batch-image-export.py from the installed plugin's folder (Rhino skill helpers); through hosted MCP instruction delivery this skill is not available. If you cannot find this skill's folder on disk, stop and tell the user to install the plugin. In the Rhino AI panel, there is no Skill tool: read this file and its reference by path with run_python.
Outcome
A folder of PNGs the user named, in which every file was read back and matched the requested mode, and a reply opening with the script's Export: line.
Invariants
- Verify the exported file, not the viewport. A batch came out in colour while the viewport showed the requested mode. The batch fails when any file does not match, and the failed files are moved aside with a
FAILED-prefix. - Name the mode in the capture. Set it on the viewport and pass it to
CaptureToBitmap; never rely on the mode already showing. - Capture only by script. Never use the capture tool's
cameraLocation,targetorviewarguments, which blank or rewrite views. Set the camera inrun_pythonand let the view settle (display). - Leave the document as found. Layer visibility, camera and display mode are restored after every batch, and the batch fails if layers, materials or the object count changed.
- No temporary colours or materials. A temporary red reached delivered images. If one is unavoidable, restore and verify it before capturing.
Procedure
Read the lessons after setup and before asking; write them after the report.
- Setup. If the Rhino tools are absent, follow rhino-setup for the user action. List modes with
"AS_MODE": "modes". - Ask in one
ask_userbatch only what is open: mode, views, layouts, image size, output folder. Each question carries what it asks about, with your proposal as the first option ("Keep 1/4" = 1'-0""), since the question pane covers the chat; never refer to text shown behind it. Layouts are layer paths. If an interior view is wanted, say in that batch that it cannot be exported (below). Whereask_useris not available (an agent connected to Rhino from outside it), ask the same questions in chat, with the same options, and end the turn. - Export by file path. Build the path from the folder you read this
SKILL.mdfrom, which belongs to the installed plugin version; never hard-code it or reuse one from an earlier version:
P = "<absolute path of this skill's folder>/scripts/as-batch-image-export.py"
SPEC = {"out": "<folder>", "mode": "Arctic", "size": [3840, 2160], "shots": [{"name": "option-a-birdseye", "direction": "birdseye", "layers": ["Building::Option A"]}]}
exec(compile(open(P).read(), P, "exec"), {"__rhino_doc__": __rhino_doc__, "AS_SCRIPT_FILE": P, "AS_MODE": "export", "AS_EXPORT": SPEC})- Read the result. A failed batch is not delivered. Fix the cause and run the whole batch again. To check files already on disk, use
"AS_MODE": "verify"with{"mode": "Arctic", "files": [...]}. - Inspect layouts with
boxMinandboxMaxin page units, notzoom, which broke the page view, and notview:, which can switch the active viewport.
What the check can and cannot prove
Colour is judged only for modes that must have none (Arctic and Monochrome): a file with colour fails. Any other mode is confirmed by naming it in the capture, reading the viewport's mode back, and the file not being blank; nothing in a PNG proves it was Shaded. The report says which applies.
Interior views are not supported
as-batch-image-export.py frames every shot from outside: it places the camera beyond the bounding box of the shot's layers, looking in along direction. No shot can put the camera inside a room. Hiding layers only opens a cutaway seen from outside, which is not an interior view. Leave interiors out of the batch and name them in the report as not exported.
Lessons
This skill learns locally. Before planning, read its lessons and the firm rules; at the end of every run, write what the run learned. The folder is the one the Arch Studio startup line names; the tags, the privacy rule and promotion are in lessons, read once per session.
P = "<absolute path of the skills folder, the parent of this skill's folder>/as-rhino-lessons.py"
exec(compile(open(P).read(), P, "exec"), {"AS_SCRIPT_FILE": P, "AS_MODE": "read", "AS_SKILL": "rhino-batch-image-export", "AS_LESSONS_DIR": "<lessons folder from the startup line>"})Follow every firm rule, and name each lesson you apply in the report. To write, use "AS_MODE": "write" with AS_LESSONS, AS_PRIVATE and __rhino_doc__, then "offer". Each lesson declares its kind: practice (modeling practice) or preference (the user's own, with what the user said). Never save a design, architectural or engineering rule you inferred; mention it to the user instead (lessons). A firm rule is written only with "promote", after the user said yes in ask_user. Never edit the checker, its tests or answer keys to apply a lesson.
Report
Open with the Export: line exactly as printed. Then each file, the mode, anything moved aside, any requested view not exported, and the lessons applied and written, or "none". Complete under the completion contract.
Out of scope
Photorealistic rendering, installing display modes, and interior views. For black and white vector sheets use rhino-thinline.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

