Production engines

Apply a batch of edit ops to a material.

Applies a batch of ops (set_material, add_node, remove_node, set_node_param, connect, disconnect, set_out, add_ramp_stop, remove_ramp_stop, set_ramp_stop, add_curve_point, remove_curve_point, set_curve_point, clear_nodes) to a material document, whole or not at all. Returns the edited document or the refusal. Costs 1 unit.

post/api/agents/run/material_apply

Request

  • Base URL: https://tomorrowlives.com
  • URL: https://tomorrowlives.com/api/agents/run/material_apply
  • Auth: HTTP bearer

Request body

materialobject required

The material document, written inline as JSON.

opsobject[] required

The edits to apply in order, each an object with an op name (set_material, add_node, remove_node, set_node_param, connect and the rest). The batch applies whole or not at all.

Response

The job's result and files

jobstring
verbstring
unitsinteger
msinteger
resultunknown

Changes

No recorded changes to this operation across all 1 revision of this API.