cam.operators.orient_op#

Fabex ‘ops.py’ © 2012 Vilem Novak

Blender Operator definitions are in this file. They mostly call the functions from ‘utils.py’

Classes#

CamOrientationAdd

Add Orientation to CAM Operation, for Multiaxis Operations

Module Contents#

class CamOrientationAdd[source]#

Bases: bpy.types.Operator

Add Orientation to CAM Operation, for Multiaxis Operations

bl_idname = 'scene.cam_orientation_add'[source]#
bl_label = 'Add Orientation'[source]#
bl_options[source]#
classmethod poll(context)[source]#
execute(context)[source]#

Execute the camera orientation operation in Blender.

This function retrieves the active camera operation from the current scene, creates an empty object to represent the camera orientation, and adds it to a specified group. The empty object is named based on the operation’s name and the current count of objects in the group. The size of the empty object is set to a predefined value for visibility.

Parameters:

context – The context in which the operation is executed.

Returns:

A dictionary indicating the operation’s completion status,

typically {‘FINISHED’}.

Return type:

dict