Set Variable
zemax_set_variableSet a surface cell (radius, thickness, or conic) as a variable in Zemax OpticStudio to enable optimization adjustments. Legacy wrapper for making surface parameters variable.
Instructions
Legacy wrapper to make a surface cell variable.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"surface": "<surface>"
},
"name": "zemax_set_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cell | No | Cell | thickness |
| surface | Yes | Surface number |