[docs]classOptionEngineUtilEvaluatePath(BaseModel):"""Evaluates the position of a path in one shot (engine utility for kcl executor)"""path_json:strt:floattype:Literal["engine_util_evaluate_path"]="engine_util_evaluate_path"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionStartPath(BaseModel):"""Start a new path."""type:Literal["start_path"]="start_path"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionMovePathPen(BaseModel):"""Move the path's \"pen\". If you're in sketch mode, these coordinates are in the local coordinate system, not the world's coordinate system. For example, say you're sketching on the plane {x: (1,0,0), y: (0,1,0), origin: (0, 0, 50)}. In other words, the plane 50 units above the default XY plane. Then, moving the pen to (1, 1, 0) with this command uses local coordinates. So, it would move the pen to (1, 1, 50) in global coordinates."""path:ModelingCmdIdto:Point3dtype:Literal["move_path_pen"]="move_path_pen"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionExtendPath(BaseModel):"""Extend a path by adding a new segment which starts at the path's \"pen\". If no \"pen\" location has been set before (via `MovePen`), then the pen is at the origin."""path:ModelingCmdIdsegment:PathSegmenttype:Literal["extend_path"]="extend_path"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionExtrude(BaseModel):"""Command for extruding a solid 2d."""distance:LengthUnitfaces:Optional[ExtrudedFaceInfo]=Nonetarget:ModelingCmdIdtype:Literal["extrude"]="extrude"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionSweep(BaseModel):"""Extrude the object along a path."""sectional:booltarget:ModelingCmdIdtolerance:LengthUnittrajectory:ModelingCmdIdtype:Literal["sweep"]="sweep"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionRevolve(BaseModel):"""Command for revolving a solid 2d."""angle:Angleaxis:Point3daxis_is_2d:boolorigin:Point3dtarget:ModelingCmdIdtolerance:LengthUnittype:Literal["revolve"]="revolve"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionSolid3DShellFace(BaseModel):"""Command for shelling a solid3d face"""face_ids:List[str]hollow:bool=Falseobject_id:strshell_thickness:LengthUnittype:Literal["solid3d_shell_face"]="solid3d_shell_face"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionRevolveAboutEdge(BaseModel):"""Command for revolving a solid 2d about a brep edge"""angle:Angleedge_id:strtarget:ModelingCmdIdtolerance:LengthUnittype:Literal["revolve_about_edge"]="revolve_about_edge"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionLoft(BaseModel):"""Command for lofting sections to create a solid"""base_curve_index:Optional[int]=Nonebez_approximate_rational:boolsection_ids:List[str]tolerance:LengthUnittype:Literal["loft"]="loft"v_degree:intmodel_config=ConfigDict(protected_namespaces=())
[docs]classOptionClosePath(BaseModel):"""Closes a path, converting it to a 2D solid."""path_id:strtype:Literal["close_path"]="close_path"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionDefaultCameraGetSettings(BaseModel):"""Gets the default camera's camera settings"""type:Literal["default_camera_get_settings"]="default_camera_get_settings"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionDefaultCameraLookAt(BaseModel):"""Change what the default camera is looking at."""center:Point3dsequence:Optional[int]=Nonetype:Literal["default_camera_look_at"]="default_camera_look_at"up:Point3dvantage:Point3dmodel_config=ConfigDict(protected_namespaces=())
[docs]classOptionDefaultCameraPerspectiveSettings(BaseModel):"""Change what the default camera is looking at."""center:Point3dfov_y:Optional[float]=Nonesequence:Optional[int]=Nonetype:Literal["default_camera_perspective_settings"]=("default_camera_perspective_settings")up:Point3dvantage:Point3dz_far:Optional[float]=Nonez_near:Optional[float]=Nonemodel_config=ConfigDict(protected_namespaces=())
[docs]classOptionDefaultCameraZoom(BaseModel):"""Adjust zoom of the default camera."""magnitude:floattype:Literal["default_camera_zoom"]="default_camera_zoom"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionExport(BaseModel):"""Export the scene to a file."""entity_ids:List[str]format:OutputFormattype:Literal["export"]="export"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionEntityGetParentId(BaseModel):"""What is this entity's parent?"""entity_id:strtype:Literal["entity_get_parent_id"]="entity_get_parent_id"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionEntityGetNumChildren(BaseModel):"""How many children does the entity have?"""entity_id:strtype:Literal["entity_get_num_children"]="entity_get_num_children"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionEntityGetChildUuid(BaseModel):"""What is the UUID of this entity's n-th child?"""child_index:intentity_id:strtype:Literal["entity_get_child_uuid"]="entity_get_child_uuid"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionEntityGetAllChildUuids(BaseModel):"""What are all UUIDs of this entity's children?"""entity_id:strtype:Literal["entity_get_all_child_uuids"]="entity_get_all_child_uuids"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionEntityGetSketchPaths(BaseModel):"""What are all UUIDs of all the paths sketched on top of this entity?"""entity_id:strtype:Literal["entity_get_sketch_paths"]="entity_get_sketch_paths"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionEntityGetDistance(BaseModel):"""What is the distance between these two entities?"""distance_type:DistanceTypeentity_id1:strentity_id2:strtype:Literal["entity_get_distance"]="entity_get_distance"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionEntityLinearPatternTransform(BaseModel):"""Create a pattern using this entity by specifying the transform for each desired repetition. Transformations are performed in the following order (first applied to last applied): scale, rotate, translate."""entity_id:strtransform:List[Transform]=[]transforms:List[List[Transform]]=[]type:Literal["entity_linear_pattern_transform"]="entity_linear_pattern_transform"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionEntityLinearPattern(BaseModel):"""Create a linear pattern using this entity."""axis:Point3dentity_id:strnum_repetitions:intspacing:LengthUnittype:Literal["entity_linear_pattern"]="entity_linear_pattern"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionEntityCircularPattern(BaseModel):"""Create a circular pattern using this entity."""arc_degrees:floataxis:Point3dcenter:Point3dentity_id:strnum_repetitions:introtate_duplicates:booltype:Literal["entity_circular_pattern"]="entity_circular_pattern"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionEntityMakeHelix(BaseModel):"""Create a helix using the input cylinder and other specified parameters."""cylinder_id:stris_clockwise:boollength:LengthUnitrevolutions:floatstart_angle:Angle={"unit":"degrees","value":0.0}# type: ignoretype:Literal["entity_make_helix"]="entity_make_helix"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionEntityMakeHelixFromParams(BaseModel):"""Create a helix using the specified parameters."""axis:Point3dcenter:Point3dis_clockwise:boollength:LengthUnitradius:LengthUnitrevolutions:floatstart_angle:Angle={"unit":"degrees","value":0.0}# type: ignoretype:Literal["entity_make_helix_from_params"]="entity_make_helix_from_params"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionEntityMakeHelixFromEdge(BaseModel):"""Create a helix using the specified parameters."""edge_id:stris_clockwise:boollength:Optional[LengthUnit]=Noneradius:LengthUnitrevolutions:floatstart_angle:Angle={"unit":"degrees","value":0.0}# type: ignoretype:Literal["entity_make_helix_from_edge"]="entity_make_helix_from_edge"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionEntityMirror(BaseModel):"""Mirror the input entities over the specified axis. (Currently only supports sketches)"""axis:Point3dids:List[str]point:Point3dtype:Literal["entity_mirror"]="entity_mirror"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionEntityMirrorAcrossEdge(BaseModel):"""Mirror the input entities over the specified edge. (Currently only supports sketches)"""edge_id:strids:List[str]type:Literal["entity_mirror_across_edge"]="entity_mirror_across_edge"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionSelectWithPoint(BaseModel):"""Modifies the selection by simulating a \"mouse click\" at the given x,y window coordinate Returns ID of whatever was selected."""selected_at_window:Point2dselection_type:SceneSelectionTypetype:Literal["select_with_point"]="select_with_point"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionSelectAdd(BaseModel):"""Adds one or more entities (by UUID) to the selection."""entities:List[str]type:Literal["select_add"]="select_add"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionSelectRemove(BaseModel):"""Removes one or more entities (by UUID) from the selection."""entities:List[str]type:Literal["select_remove"]="select_remove"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionSceneClearAll(BaseModel):"""Removes all of the Objects in the scene"""type:Literal["scene_clear_all"]="scene_clear_all"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionSelectReplace(BaseModel):"""Replaces current selection with these entities (by UUID)."""entities:List[str]type:Literal["select_replace"]="select_replace"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionHighlightSetEntity(BaseModel):"""Changes the current highlighted entity to whichever one is at the given window coordinate. If there's no entity at this location, clears the highlight."""selected_at_window:Point2dsequence:Optional[int]=Nonetype:Literal["highlight_set_entity"]="highlight_set_entity"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionHighlightSetEntities(BaseModel):"""Changes the current highlighted entity to these entities."""entities:List[str]type:Literal["highlight_set_entities"]="highlight_set_entities"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionNewAnnotation(BaseModel):"""Create a new annotation"""annotation_type:AnnotationTypeclobber:booloptions:AnnotationOptionstype:Literal["new_annotation"]="new_annotation"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionUpdateAnnotation(BaseModel):"""Update an annotation"""annotation_id:stroptions:AnnotationOptionstype:Literal["update_annotation"]="update_annotation"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionEdgeLinesVisible(BaseModel):"""Changes visibility of scene-wide edge lines on brep solids"""hidden:booltype:Literal["edge_lines_visible"]="edge_lines_visible"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionObjectVisible(BaseModel):"""Hide or show an object"""hidden:boolobject_id:strtype:Literal["object_visible"]="object_visible"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionObjectBringToFront(BaseModel):"""Bring an object to the front of the scene"""object_id:strtype:Literal["object_bring_to_front"]="object_bring_to_front"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionObjectSetMaterialParamsPbr(BaseModel):"""Set the material properties of an object"""ambient_occlusion:floatcolor:Colormetalness:floatobject_id:strroughness:floattype:Literal["object_set_material_params_pbr"]="object_set_material_params_pbr"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionGetEntityType(BaseModel):"""What type of entity is this?"""entity_id:strtype:Literal["get_entity_type"]="get_entity_type"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionSolid3DGetAllEdgeFaces(BaseModel):"""Gets all faces which use the given edge."""edge_id:strobject_id:strtype:Literal["solid3d_get_all_edge_faces"]="solid3d_get_all_edge_faces"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionSolid2DAddHole(BaseModel):"""Add a hole to a Solid2d object before extruding it."""hole_id:strobject_id:strtype:Literal["solid2d_add_hole"]="solid2d_add_hole"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionSolid3DGetAllOppositeEdges(BaseModel):"""Gets all edges which are opposite the given edge, across all possible faces."""along_vector:Optional[Point3d]=Noneedge_id:strobject_id:strtype:Literal["solid3d_get_all_opposite_edges"]="solid3d_get_all_opposite_edges"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionSolid3DGetOppositeEdge(BaseModel):"""Gets the edge opposite the given edge, along the given face."""edge_id:strface_id:strobject_id:strtype:Literal["solid3d_get_opposite_edge"]="solid3d_get_opposite_edge"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionSolid3DGetNextAdjacentEdge(BaseModel):"""Gets the next adjacent edge for the given edge, along the given face."""edge_id:strface_id:strobject_id:strtype:Literal["solid3d_get_next_adjacent_edge"]="solid3d_get_next_adjacent_edge"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionSolid3DGetPrevAdjacentEdge(BaseModel):"""Gets the previous adjacent edge for the given edge, along the given face."""edge_id:strface_id:strobject_id:strtype:Literal["solid3d_get_prev_adjacent_edge"]="solid3d_get_prev_adjacent_edge"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionSolid3DGetCommonEdge(BaseModel):"""Gets the shared edge between these two faces if it exists"""face_ids:List[str]object_id:strtype:Literal["solid3d_get_common_edge"]="solid3d_get_common_edge"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionSolid3DFilletEdge(BaseModel):"""Fillets the given edge with the specified radius."""cut_type:CutType="fillet"# type: ignoreedge_id:strface_id:Optional[str]=Noneobject_id:strradius:LengthUnittolerance:LengthUnittype:Literal["solid3d_fillet_edge"]="solid3d_fillet_edge"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionFaceIsPlanar(BaseModel):"""Determines whether a brep face is planar and returns its surface-local planar axes if so"""object_id:strtype:Literal["face_is_planar"]="face_is_planar"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionFaceGetPosition(BaseModel):"""Determines a position on a brep face evaluated by parameters u,v"""object_id:strtype:Literal["face_get_position"]="face_get_position"uv:Point2dmodel_config=ConfigDict(protected_namespaces=())
[docs]classOptionFaceGetCenter(BaseModel):"""Obtains the surface \"center of mass\" """object_id:strtype:Literal["face_get_center"]="face_get_center"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionFaceGetGradient(BaseModel):"""Determines the gradient (dFdu, dFdv) + normal vector on a brep face evaluated by parameters u,v"""object_id:strtype:Literal["face_get_gradient"]="face_get_gradient"uv:Point2dmodel_config=ConfigDict(protected_namespaces=())
[docs]classOptionSendObject(BaseModel):"""Send object to front or back."""front:boolobject_id:strtype:Literal["send_object"]="send_object"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionEntitySetOpacity(BaseModel):"""Set opacity of the entity."""entity_id:stropacity:floattype:Literal["entity_set_opacity"]="entity_set_opacity"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionEntityFade(BaseModel):"""Fade entity in or out."""duration_seconds:float=0.4000000059604645entity_id:strfade_in:booltype:Literal["entity_fade"]="entity_fade"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionMakePlane(BaseModel):"""Make a new plane"""clobber:boolhide:Optional[bool]=Noneorigin:Point3dsize:LengthUnittype:Literal["make_plane"]="make_plane"x_axis:Point3dy_axis:Point3dmodel_config=ConfigDict(protected_namespaces=())
[docs]classOptionPlaneSetColor(BaseModel):"""Set the color of a plane."""color:Colorplane_id:strtype:Literal["plane_set_color"]="plane_set_color"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionSetTool(BaseModel):"""Set the current tool."""tool:SceneToolTypetype:Literal["set_tool"]="set_tool"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionMouseMove(BaseModel):"""Send a mouse move event"""sequence:Optional[int]=Nonetype:Literal["mouse_move"]="mouse_move"window:Point2dmodel_config=ConfigDict(protected_namespaces=())
[docs]classOptionMouseClick(BaseModel):"""Send a mouse click event Updates modified/selected entities."""type:Literal["mouse_click"]="mouse_click"window:Point2dmodel_config=ConfigDict(protected_namespaces=())
[docs]classOptionSketchModeDisable(BaseModel):"""Disable sketch mode. If you are sketching on a face, be sure to not disable sketch mode until you have extruded. Otherwise, your object will not be fused with the face."""type:Literal["sketch_mode_disable"]="sketch_mode_disable"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionGetSketchModePlane(BaseModel):"""Get the plane for sketch mode."""type:Literal["get_sketch_mode_plane"]="get_sketch_mode_plane"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionCurveSetConstraint(BaseModel):"""Get the plane for sketch mode."""constraint_bound:PathComponentConstraintBoundconstraint_type:PathComponentConstraintTypeobject_id:strtype:Literal["curve_set_constraint"]="curve_set_constraint"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionEnableSketchMode(BaseModel):"""Sketch on some entity (e.g. a plane, a face)."""adjust_camera:boolanimated:boolentity_id:strortho:boolplanar_normal:Optional[Point3d]=Nonetype:Literal["enable_sketch_mode"]="enable_sketch_mode"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionEnableDryRun(BaseModel):"""Sets whether or not changes to the scene or its objects will be done as a \"dry run\" In a dry run, successful commands won't actually change the model. This is useful for catching errors before actually making the change."""type:Literal["enable_dry_run"]="enable_dry_run"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionDisableDryRun(BaseModel):"""Sets whether or not changes to the scene or its objects will be done as a \"dry run\" In a dry run, successful commands won't actually change the model. This is useful for catching errors before actually making the change."""type:Literal["disable_dry_run"]="disable_dry_run"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionSetBackgroundColor(BaseModel):"""Set the background color of the scene."""color:Colortype:Literal["set_background_color"]="set_background_color"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionSetCurrentToolProperties(BaseModel):"""Set the properties of the tool lines for the scene."""color:Optional[Color]=Nonetype:Literal["set_current_tool_properties"]="set_current_tool_properties"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionSetDefaultSystemProperties(BaseModel):"""Set the default system properties used when a specific property isn't set."""color:Optional[Color]=Nonetype:Literal["set_default_system_properties"]="set_default_system_properties"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionCurveGetType(BaseModel):"""Get type of the given curve."""curve_id:strtype:Literal["curve_get_type"]="curve_get_type"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionCurveGetControlPoints(BaseModel):"""Get control points of the given curve."""curve_id:strtype:Literal["curve_get_control_points"]="curve_get_control_points"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionProjectEntityToPlane(BaseModel):"""Project an entity on to a plane."""entity_id:strplane_id:strtype:Literal["project_entity_to_plane"]="project_entity_to_plane"use_plane_coords:boolmodel_config=ConfigDict(protected_namespaces=())
[docs]classOptionProjectPointsToPlane(BaseModel):"""Project a list of points on to a plane."""plane_id:strpoints:List[Point3d]type:Literal["project_points_to_plane"]="project_points_to_plane"use_plane_coords:boolmodel_config=ConfigDict(protected_namespaces=())
[docs]classOptionTakeSnapshot(BaseModel):"""Take a snapshot of the current view."""format:ImageFormattype:Literal["take_snapshot"]="take_snapshot"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionMakeAxesGizmo(BaseModel):"""Add a gizmo showing the axes."""clobber:boolgizmo_mode:booltype:Literal["make_axes_gizmo"]="make_axes_gizmo"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionPathGetInfo(BaseModel):"""Query the given path."""path_id:strtype:Literal["path_get_info"]="path_get_info"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionPathGetCurveUuidsForVertices(BaseModel):"""Obtain curve ids for vertex ids"""path_id:strtype:Literal["path_get_curve_uuids_for_vertices"]=("path_get_curve_uuids_for_vertices")vertex_ids:List[str]model_config=ConfigDict(protected_namespaces=())
[docs]classOptionPathGetCurveUuid(BaseModel):"""Obtain curve id by index"""index:intpath_id:strtype:Literal["path_get_curve_uuid"]="path_get_curve_uuid"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionPathGetVertexUuids(BaseModel):"""Obtain vertex ids for a path"""path_id:strtype:Literal["path_get_vertex_uuids"]="path_get_vertex_uuids"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionPathGetSketchTargetUuid(BaseModel):"""Obtain the sketch target id (if the path was drawn in sketchmode) for a path"""path_id:strtype:Literal["path_get_sketch_target_uuid"]="path_get_sketch_target_uuid"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionHandleMouseDragStart(BaseModel):"""Start dragging the mouse."""type:Literal["handle_mouse_drag_start"]="handle_mouse_drag_start"window:Point2dmodel_config=ConfigDict(protected_namespaces=())
[docs]classOptionHandleMouseDragMove(BaseModel):"""Continue dragging the mouse."""sequence:Optional[int]=Nonetype:Literal["handle_mouse_drag_move"]="handle_mouse_drag_move"window:Point2dmodel_config=ConfigDict(protected_namespaces=())
[docs]classOptionHandleMouseDragEnd(BaseModel):"""Stop dragging the mouse."""type:Literal["handle_mouse_drag_end"]="handle_mouse_drag_end"window:Point2dmodel_config=ConfigDict(protected_namespaces=())
[docs]classOptionRemoveSceneObjects(BaseModel):"""Remove scene objects."""object_ids:List[str]type:Literal["remove_scene_objects"]="remove_scene_objects"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionPlaneIntersectAndProject(BaseModel):"""Utility method. Performs both a ray cast and projection to plane-local coordinates. Returns the plane coordinates for the given window coordinates."""plane_id:strtype:Literal["plane_intersect_and_project"]="plane_intersect_and_project"window:Point2dmodel_config=ConfigDict(protected_namespaces=())
[docs]classOptionCurveGetEndPoints(BaseModel):"""Find the start and end of a curve."""curve_id:strtype:Literal["curve_get_end_points"]="curve_get_end_points"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionReconfigureStream(BaseModel):"""Reconfigure the stream."""bitrate:Optional[int]=Nonefps:intheight:inttype:Literal["reconfigure_stream"]="reconfigure_stream"width:intmodel_config=ConfigDict(protected_namespaces=())
[docs]classOptionImportFiles(BaseModel):"""Import files to the current model."""files:List[ImportFile]format:InputFormattype:Literal["import_files"]="import_files"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionSetSceneUnits(BaseModel):"""Set the units of the scene. For all following commands, the units will be interpreted as the given units. Any previously executed commands will not be affected or have their units changed. They will remain in the units they were originally executed in."""type:Literal["set_scene_units"]="set_scene_units"unit:UnitLengthmodel_config=ConfigDict(protected_namespaces=())
[docs]classOptionMass(BaseModel):"""Get the mass of entities in the scene or the default scene."""entity_ids:List[str]material_density:floatmaterial_density_unit:UnitDensityoutput_unit:UnitMasstype:Literal["mass"]="mass"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionDensity(BaseModel):"""Get the density of entities in the scene or the default scene."""entity_ids:List[str]material_mass:floatmaterial_mass_unit:UnitMassoutput_unit:UnitDensitytype:Literal["density"]="density"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionVolume(BaseModel):"""Get the volume of entities in the scene or the default scene."""entity_ids:List[str]output_unit:UnitVolumetype:Literal["volume"]="volume"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionCenterOfMass(BaseModel):"""Get the center of mass of entities in the scene or the default scene."""entity_ids:List[str]output_unit:UnitLengthtype:Literal["center_of_mass"]="center_of_mass"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionSurfaceArea(BaseModel):"""Get the surface area of entities in the scene or the default scene."""entity_ids:List[str]output_unit:UnitAreatype:Literal["surface_area"]="surface_area"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionDefaultCameraFocusOn(BaseModel):"""Focus the default camera upon an object in the scene."""type:Literal["default_camera_focus_on"]="default_camera_focus_on"uuid:strmodel_config=ConfigDict(protected_namespaces=())
[docs]classOptionSetSelectionType(BaseModel):"""When you select some entity with the current tool, what should happen to the entity?"""selection_type:SceneSelectionTypetype:Literal["set_selection_type"]="set_selection_type"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionSetSelectionFilter(BaseModel):"""What kind of entities can be selected?"""filter:List[EntityType]type:Literal["set_selection_filter"]="set_selection_filter"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionDefaultCameraCenterToSelection(BaseModel):"""Updates the camera to center to the center of the current selection (or the origin if nothing is selected)"""camera_movement:CameraMovement="vantage"# type: ignoretype:Literal["default_camera_center_to_selection"]=("default_camera_center_to_selection")model_config=ConfigDict(protected_namespaces=())
[docs]classOptionDefaultCameraCenterToScene(BaseModel):"""Updates the camera to center to the center of the current scene's bounds"""camera_movement:CameraMovement="vantage"# type: ignoretype:Literal["default_camera_center_to_scene"]="default_camera_center_to_scene"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionZoomToFit(BaseModel):"""Fit the view to the specified object(s)."""animated:bool=Falseobject_ids:List[str]=[]padding:float=0.0type:Literal["zoom_to_fit"]="zoom_to_fit"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionOrientToFace(BaseModel):"""Looks along the normal of the specified face (if it is planar!), and fits the view to it."""animated:bool=Falseface_id:strpadding:float=0.0type:Literal["orient_to_face"]="orient_to_face"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionViewIsometric(BaseModel):"""Fit the view to the scene with an isometric view."""padding:float=0.0type:Literal["view_isometric"]="view_isometric"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionSolid3DGetExtrusionFaceInfo(BaseModel):"""Get a concise description of all of an extrusion's faces."""edge_id:strobject_id:strtype:Literal["solid3d_get_extrusion_face_info"]="solid3d_get_extrusion_face_info"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionSelectClear(BaseModel):"""Clear the selection"""type:Literal["select_clear"]="select_clear"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionSelectGet(BaseModel):"""Find all IDs of selected entities"""type:Literal["select_get"]="select_get"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionGetNumObjects(BaseModel):"""Get the number of objects in the scene"""type:Literal["get_num_objects"]="get_num_objects"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionSetObjectTransform(BaseModel):"""Set the transform of an object."""object_id:strtransforms:List[ComponentTransform]type:Literal["set_object_transform"]="set_object_transform"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionMakeOffsetPath(BaseModel):"""Make a new path by offsetting an object by a given distance. The new path's ID will be the ID of this command."""face_id:Optional[str]=Noneobject_id:stroffset:LengthUnittype:Literal["make_offset_path"]="make_offset_path"model_config=ConfigDict(protected_namespaces=())
[docs]classOptionAddHoleFromOffset(BaseModel):"""Add a hole to a closed path by offsetting it a uniform distance inward."""object_id:stroffset:LengthUnittype:Literal["add_hole_from_offset"]="add_hole_from_offset"model_config=ConfigDict(protected_namespaces=())