Stage and validate CODE V lens optimization for camera and general imaging systems. Use when Codex needs to optimize or review a CODE V lens, choose system settings, build or revise AUT sequences, manage real apertures and vignetting, enforce physical constraints such as air gaps, stow length, and real-surface clearance, decide when to switch to glass optimization, and save or validate timestamped .len/.seq results.
Use this skill to run CODE V optimization with a physical-first, staged workflow. Prefer it when the task involves .seq or .len lenses, AUT design strategy, aperture and vignetting control, multi-configuration priorities, or acceptance checks.
AUT block.ERR CDV while structure, thickness, glass, or residual color are still moving.MTF error function only for final narrow polish..len and .seq outputs after meaningful runs..len directly into the visible CODE V session. Do not default to /input= startup for GUI work.RES its source lens internally instead of opening a new GUI window every time..len first, then continue./background. Do not assume a background .lis file will flush per-cycle updates in real time.DRA as part of the normal optimization run. Treat it as a stage output aid, not as a separate fake visualization mode.AUT block, run SET APE -> SET VIG -> DEL APE SA.SET APE -> SET VIG -> DEL APE SA again.FCT_FTGT for every air gap. Use it only for key real-surface gaps, non-spherical gaps, moving groups, or cases with virtual surfaces between real surfaces.FTGT, and stow-length rules..seq skeletons for prepare, AUT, and finish/export stages.
templates/FCT_FTGT.seq, templates/FCT_CRA.seq, playbooks, or acceptance scripts, prefer reusing them.This skill can be paired with visible CODE V UI automation when the user wants to watch optimization progress in the real GUI.
scripts/run_example_ui_visible.ps1
.len directly in a visible CODE V session.scripts/ui_send_codev_command.ps1
IN "...seq" into the visible CODE V command input box by UI Automation.SendKeys.scripts/ui_run_send_codev_command.vbs
scripts/ui_run_current_seq.vbs
scripts/interactive_prepare.template.seq
RES, refresh vignetting, set variables, save a clean pre-stage lens.scripts/interactive_cdv_stage.template.seq
ERR CDV stage with bounded AUT, physical guardrails, and post-stage save/export.scripts/interactive_finish.template.seq
Usage notes:
.len, then inject later stage scripts into that same window.RES its source lens internally.MTF.