FilmLight Python API
- FilmLight Python API
- Beta Classes and Methods
- Changes to API since last release
- Classes
- Application
- AudioSync
- ClientViewManager
- CurrentGrade
- Cursor
- DynamicDialog (BETA)
- Export
- FDL
- FLUXManage
- Format
- FormatBurnin
- FormatSet
- Image
- JobManager
- Licence
- Mark
- Menu (BETA)
- MenuItem (BETA)
- MultiPaste
- ProgressDialog (BETA)
- QueueManager
- RenderProcessor
- RenderSetup
- Scene
- SceneSettings
- SequenceDescriptor
- Shot
- ThumbnailManager
- Timer (BETA)
- Utilities
- Volumes
- Value Types
- AMFExportSettings
- AMFInsertSettings
- APIUserInfo
- AudioSequenceSettings
- AudioSyncProgress
- AudioSyncSettings
- BLGExportSettings
- CDLExportSettings
- CategoryInfo
- ClientViewClientSettings
- ClientViewHostUserSettings
- ClientViewStreamSettings
- ColourSpaceInfo
- ConnectionInfo
- CubeExportSettings
- CustomerInfo
- DRTInfo
- DecodeParameterChoice
- DecodeParameterDefinition
- DialogItem (BETA)
- EnumInfo
- ExportOpInfo
- ExportProgress
- FDLCanvas
- FDLCanvasTemplate
- FDLContext
- FDLCreateFormatFromCanvasOptions
- FDLDimension
- FDLDocument
- FDLFramingDecision
- FDLFramingIntent
- FDLPoint
- FDLRealDimension
- FDLRealPoint
- FDLRound
- FDLValidation
- FDLVersion
- FLUXFileInfo
- FormatBurninItem
- FormatInfo
- FormatMapping
- FormatMask
- FrameRange
- KeyTextItem
- LicenceItem
- LookInfo
- MetadataItem
- MetadataProperty
- MultiPasteProgress
- MultiPasteSettings
- NewSceneOptions
- OpenSceneStatus
- QueueLogItem
- QueueOp
- QueueOpStatus
- Rational
- RenderCodecInfo
- RenderCodecParameterInfo
- RenderCodecParameterValue
- RenderDeliverable
- RenderFileTypeInfo
- RenderOpInfo
- RenderProcessorLogItem
- RenderStatus
- SDKVersion
- SceneInfo
- ScenePath
- SceneSettingDefinition
- ShotIndexRange
- ShotInfo
- ShotSetInputFormatFromFDLOptions
- StillExportSettings
- VolumeInfo
- Constants & Enumerations
- AFFINE_TYPE
- AMFEXPORT_CLFHANDLING
- AMFEXPORT_CLIPFILENAMEMODE
- AMF_APPLY
- AUDIOSEQ_TYPE
- AUDIOSYNCSTATUS
- AUDIOSYNC_CRITERIA
- AUDIOSYNC_FPS
- AUDIOSYNC_METADATA
- AUDIOSYNC_RATIO
- AUDIOSYNC_READLTC
- AUDIOSYNC_SUBSEARCH
- AUDIO_RATE
- BLGEXPORT_LOCKGRADE
- BLGEXPORT_SCALE
- BURNIN_BORDER
- BURNIN_HALIGN
- BURNIN_ITEM_TYPE
- BURNIN_VALIGN
- CAT_MODE
- CDLEXPORT_CDLLAYER
- CDLEXPORT_FORMAT
- CUBEEXPORT_CUBERESOLUTION
- CUBEEXPORT_EXTENDEDRANGES
- CUBEEXPORT_LUT1OPTIONS
- CUBEEXPORT_LUT2OPTIONS
- CUBEEXPORT_LUT3OPTIONS
- CUBEEXPORT_LUTFORMAT
- CUBEEXPORT_LUTRESOLUTION
- CUBEEXPORT_NUMLUTS
- DECODEPARAM_TYPE
- DECODEQUALITY
- DIALOG_ITEM_TYPE
- DOLBY_VISION_MODE
- EXPORTSTATUS
- EXPORTTYPE
- EXPORT_CATEGORYMATCH
- EXPORT_FRAMES
- EXPORT_OVERWRITE
- EXPORT_SOURCE
- EXPORT_STEREO
- FDL_ALIGNMENT_METHOD_HORIZONTAL
- FDL_ALIGNMENT_METHOD_VERTICAL
- FDL_EVEN_MODE
- FDL_FIT_METHOD
- FDL_FIT_SOURCE
- FDL_PRESERVE_MODE
- FDL_ROUND_MODE
- FIELDORDER
- FORMATSET_SCOPE
- FSFILTER
- HDR_CLIPPING_BEHAVIOUR
- IMAGETRANSFORM_MODE
- INSERT_POSITION
- LOG_SEVERITY
- LUT_LOCATION
- MARK_TYPE
- MASTERING_OPERATION
- MASTERING_WHITE_POINT
- MENU_LOCATION
- MULTIPASTESTATUS
- MULTIPASTE_BLGRESOURCECONFLICT
- MULTIPASTE_DESTSELECTION
- MULTIPASTE_DESTSHOTS
- MULTIPASTE_EDLAPPLYASCCDL
- MULTIPASTE_LAYERZEROBEHAVIOUR
- MULTIPASTE_LAYERZEROCATEGORIES
- MULTIPASTE_MATCHBY
- MULTIPASTE_MATCHQUALITY
- MULTIPASTE_PASTELOCATION
- MULTIPASTE_SOURCE
- MULTIPASTE_SOURCESHOTS
- OPENFLAG
- OPERATOR_BARS_TYPE
- OPSTATUS
- OPTICALFLOW_QUALITY
- OPTICALFLOW_SMOOTHING
- PROXY_RESOLUTION
- QUEUE_LOG_TYPE
- RENDER_ALPHA_HANDLING
- RENDER_CLIPNAME_SOURCE
- RENDER_COLOURSPACE
- RENDER_EMPTY_BEHAVIOUR
- RENDER_ERROR_BEHAVIOUR
- RENDER_FORMAT
- RENDER_FRAMENUM
- RENDER_INCOMPLETE_BEHAVIOUR
- RENDER_LAYER
- RENDER_MASK
- RENDER_NCLC_TAG
- RENDER_TAPENAME_SOURCE
- RENDER_TIMECODE_SOURCE
- ROP_TEXT_ALIGN
- SEQRESAMPLE_MODE
- STEREO_EYE
- STEREO_MODE
- STILLEXPORT_BURNIN
- STILLEXPORT_DECODEQUALITY
- STILLEXPORT_FILETYPE
- STILLEXPORT_FORMAT
- STILLEXPORT_MASK
- STILLEXPORT_MASKMODE
- STILLEXPORT_RESOLUTION
- STILLEXPORT_TRUELIGHT
- SVGFITMODE
- TIMELINE_CACHING_MODE
- VIDEOLUT
- Examples
This document details the Python API for the FilmLight API server.
The FilmLight Python API connects to an API server running on a local or remote machine, and provides a set of functions and classes which can be used to manipulate the native Baselight and Daylight databases and services.
Supports:
- Python 3.9 and later
Installation
The FilmLight API Python module, flapi, is bundled as a Python wheel file to simplify
distribution and installation.
Python Version
The default Python version used for FLAPI is Python 3.12.
If you wish to change the default Python interpreter, the interpreter can be specified
using the "Python Interpreter" preference in the Advanced : API Server section of
the Baselight Preferences.
Virtual environment
When Baselight launches, a virtual environment will be created for the execution of FLAPI scripts and modules, if one does not already exist.
The virtual environment will be created at the following path:
- Linux:
/usr/fl/python/3.12-rocky-8-v7-venv - macOS:
/Library/Application Support/FilmLight/python/3.12-v7-venv
The latest version of the flapi module and its dependencies will be installed into this virtual environment.
If you wish to run FLAPI scripts using this Python virtual environment, you can use the
bin/python3 Python interpreter from this virtual environment.
If you are using Baselight on a render node, you can ensure the required Python virtual
environment is created or updated using the fl-setup-flapi-scripts script, which is included
at the following locations:
- Linux:
/usr/fl/baselight/bin/fl-setup-flapi-scripts --create - macOS:
/Applications/Baselight/Current/Utilities/Tools/fl-setup-flapi-scripts --create
Installation into a separate virtual environment
If you need to install the Python flapi module in a separate virtual environment,
for example on a separate machine which is acting as a client to the the Baselight
API server, you can install the flapi module using the filmlightapi wheel file.
The flapi python module wheel file can be found at the following locations:
- Linux:
/usr/fl/baselight/share/flapi/python/filmlightapi-7.0.0.24522-py3-none-any.whl - macOS:
/Applications/Baselight/Current/Utilities/Resources/share/flapi/python/filmlightapi-7.0.0.24522-py3-none-any.whl
To install the flapi package, first create a virtual environment (if required):
python3.12 -m venv /path/to/venv
Then use pip to install the filmlightapi wheel into the virtual environment:
/path/to/venv/bin/pip install /path/to/filmlightapi-7.0.0.24522-py3-none-any.whl
If you are installing in an offline environment where the Python Package Index
servers are not accessible, the fl-setup-flapi-scripts utility can be used to collect
the packages into a directory for easier installation:
/usr/fl/baselight/bin/fl-setup-flapi-scripts --collect /tmp/packages
These collected packages can be copied onto the target system and installed into the virtual environment:
/path/to/venv/bin/pip install /tmp/packages/*.whl
Protocol
For details of the underlying protocol, see the FilmLight JSON API specification.
Connection
In order to perform actions through the FilmLight Python API, you must first open a connection to the FilmLight API server.
This is implemented via the flapi.Connection class.
The Python API allows connecting to a local or remote FilmLight API server.
Python scripts can also be launched from within a FilmLight application, and the FilmLight Python API can be used to connect back to the parent FilmLight process.
Authentication
This release of FLAPI for Baselight and Daylight 5.3 and later has introduced authentication for Connections.
You must provide a username and token to connect to a FLAPI daemon.
For FLAPI connections to the local machine, the token can be determined automatically for the current user.
For FLAPI connections to remote hosts, a username and token must be supplied when creating the connection to FLAPI. If a token does not exist for a given user on the FLAPI server, it can be created by running /usr/fl/baselight/bin/fl-setup-flapi-token for that user on the remote server.
On the FLAPI server, the token for a given user is stored in the following location:
On Linux:
$HOME/.filmlight/flapi-token
On macOS:
/Users/<username>/Library/Preferences/FilmLight/flapi-token
Connect to FLAPI server on localhost
import flapi
# Create local FLAPI connection
conn = flapi.Connection()
conn.connect()
# Call methods...
# Close connection
conn.close()
Connect to FLAPI server on remote host
import flapi
# Create remote FLAPI connection
hostname = "remotehost"
username = "myusername"
token = "...token..."
conn = flapi.Connection( hostname, username=username, token=token )
conn.connect()
# Call methods...
# Close connection
conn.close()
Calling methods
Each class exposed via the FilmLight API is accessed via the Connection object.
Calling Static Methods
You can call static methods on those classes via the class members provided by the Connection object.
import flapi
# Create local connection
conn = flapi.Connection()
# Open connection
conn.connect()
# Access static get_jobs methods on the class JobManager class
jobs = conn.JobManager.get_jobs("localhost")
# Close connection
conn.close()
Calling Instance Methods
Instances of each class are then created by the static class functions.
import flapi
# Create local connection
conn = flapi.Connection()
# Open connection
conn.connect()
# Create a scene in the database using the static 'new_scene' method
scenePath = conn.Scene.parse_path( "localhost:myjob:newscene" )
options = {
"format": "HD 1920x1080",
"colourspace": "FilmLight_TLog_EGamut",
"field_order": flapi.FIELDORDER_PROGRESSIVE,
"frame_rate": 24.0
}
scene = conn.Scene.new_scene( scenePath, options )
# Save the scene using the 'save_scene' instance method
scene.save_scene()
# Close the scene
scene.close_scene()
scene.release()
# Close the connection
conn.close()
Object lifecycles
Whenever you call a function on an FLAPI connection that creates a new object, an object will be created on the server and you must release that object when you finished with it.
Every instance of a class in FLAPI inherits from the flapi.Interface class,
which implements the release() method.
# Create Scene object via new_scene()
scene = conn.Scene.new_scene( ... )
# Do stuff with Scene object
scene.close_scene()
# Release Scene object, informing the server you are finished with it
scene.release()
If you do not call release() you will leak objects on the server until your
connection closes, at which point those objects will be destroyed.
Signals
Some classes like Scene and QueueManager can emit signals from the server
to notify your application when actions occur.
You can connect these signals to methods in your Python script which will be executed when the signal is received from the server.
An example of listening to a signal from the server:
::: python
import flapi, sys
stop = False
def handle_queue_ops_changed(sender, signal, args):
print( "List of operations changed" )
stop = True
conn = flapi.Connection()
conn.connect()
qm = conn.QueueManager.create_local()
# Connect a function to be called when this signal is received
qm.connect( "QueueOpsChanged", handle_queue_ops_changed )
# Subscribe to update signals from QueueManager
qm.enable_updates()
while not stop:
conn.wait()
# Close up objects on first signal received -- this was just a test
# Disable updates from server
qm.disable_updates()
# Disconnect our signal handler
qm.disconnect( "QueueOpsChanged", handle_queue_ops_changed )
# Release our QueueManager instance
qm.release()
conn.close()
Error Handling
FLAPIException
If an error occurs as part of the function call via FLAPI, it will be returned via an FLAPIException raised from the method you are calling.
Server Logs
If the FilmLight API method calls are malfunctioning, extra information can be retrieved
via the flapid server log files.
The log files can be found at the following locations:
On Linux:
/usr/fl/log/<hostname>-flapid/console.txt
On macOS:
/Library/Application Support/FilmLight/log/<hostname>-flapid/console.txt
Beta Classes and Methods
Some classes and methods are marked BETA.
This means that the API is currently in flux and subject to change in subsequent releases.
Changes to API since last release
- Changed Application
- Added get_clipboard()
- Added set_clipboard()
- Added open_url()
- Added FDL
- Changed Format
- Added get_name()
- Changed add_mapping()
- Changed description
- Changed FormatBurnin
- Changed set_font()
- Changed description
- Changed set_font()
- Changed FormatSet
- Changed get_scope()
- Changed result type
- Changed get_scope()
- Changed MenuItem
- Added set_keyboard_accelerator()
- Changed ProgressDialog
- Added is_cancelled()
- Changed Scene
- Changed insert_blank()
- Changed argument 'red' type from 'string' to 'float'
- Changed argument 'green' type from 'string' to 'float'
- Changed argument 'blue' type from 'string' to 'float'
- Added stereo_combine_shots()
- Changed insert_blank()
- Changed Shot
- Changed aces_idt_for_input_colour_space()
- Added argument aces_version
- Changed get_input_orientation()
- Changed result type
- Changed set_input_orientation()
- Added get_amf_output_colour_space()
- Added set_input_format_from_fdl()
- Added create_format_from_fdl_canvas_template()
- Added get_fdl()
- Added get_matte_references()
- Changed aces_idt_for_input_colour_space()
- Added FDLCanvas
- Added FDLCanvasTemplate
- Added FDLContext
- Added FDLCreateFormatFromCanvasOptions
- Added FDLDimension
- Added FDLDocument
- Added FDLFramingDecision
- Added FDLFramingIntent
- Added FDLPoint
- Added FDLRealDimension
- Added FDLRealPoint
- Added FDLRound
- Added FDLValidation
- Added FDLVersion
- Changed FormatMapping
- Added field dest_mask
- Removed field dst_mask
- Changed RenderDeliverable
- Added field RenderChannels
- Added field RenderAlphaHandling
- Added ShotSetInputFormatFromFDLOptions
- Added FDL_ALIGNMENT_METHOD_HORIZONTAL enum
- Added FDL_ALIGNMENT_METHOD_VERTICAL enum
- Added FDL_EVEN_MODE enum
- Added FDL_FIT_METHOD enum
- Added FDL_FIT_SOURCE enum
- Added FDL_PRESERVE_MODE enum
- Added FDL_ROUND_MODE enum
- Added RENDER_ALPHA_HANDLING enum
- Changed TIMELINE_CACHING_MODE
Classes
Key: Static MethodInstance MethodBeta
Application
The Application class provides information about the host application and access to its global state.
Signals
- SceneOpened
This signal is emitted when a scene is opened
Signal payload:- args str: Name of scene which has been opened
- args str: Name of scene which has been opened
- SceneClosed
This signal is emitted when a scene is closed
Signal payload:- args str: Name of scene which has been closed
- args str: Name of scene which has been closed
- PlayModeChanged
Sent when the play mode changes
Signal payload:- args int: 1 if playback in progress, 0 if not
- args int: 1 if playback in progress, 0 if not
Methods
- Sget_application_info
- Sget_sdk_versions
- Sin_container
- Sdaemon_in_subprocess
- Sget_connections_info
- Sget_video_streaming_supported
- Sget_video_streaming_enabled
- Sget_video_stream_address
- Sis_playing
- Sget BETA
- Mget_current_scene BETA
- Mget_current_scene_name BETA
- Mget_open_scene_names BETA
- Mget_scene_by_name BETA
- Mget_current_cursor BETA
- Mget_cursors BETA
- Mlog BETA
- Mmessage_dialog BETA
- Mlist_dialog BETA
- Mget_clipboard
- Mset_clipboard
- Mset_custom_data
- Mget_custom_data
- Mget_custom_data_keys
- Mopen_url
Application.get_application_info()
Information describing the application exposed via the FilmLight API
Arguments
- No arguments
Result
- Dict: Application Info
- Build str: Build number i.e. 10000
- Major str: Major version number, i.e. 5
- Minor str: Minor version number, i.e. 0
- Name str: Application Name, i.e. 'flapi'
- Path str: Path to the application
- Product str: Product Name, i.e. 'Baselight'
- SupportPath str: Path to the support directory
Application.get_sdk_versions()
Get SDK version information
Arguments
- No arguments
Result
- List[SDKVersion]: Array of SDKVersion objects
Application.in_container()
Returns whether the application is running in a container environment
Arguments
- No arguments
Result
- int: Flag indicating whether application is running in a container
Application.daemon_in_subprocess()
Returns whether the connection to the FLAPI daemon was made using conn.launch(), which starts a fresh daemon as a sub-process.
Arguments
- No arguments
Result
- int: Flag indicating whether the daemon was launched as a sub-process.
Application.get_connections_info()
Get array of current connections. Each entry in the array will be a ConnectionInfo object describing that connection.
Arguments
- No arguments
Result
- List[ConnectionInfo]: Array of connection info objects
Application.get_video_streaming_supported()
Is video streaming supported (hardware, setup & licensed)
Arguments
- No arguments
Result
- int: 1 if streaming supported, 0 if not
Application.get_video_streaming_enabled()
Is video streaming currently enabled
Arguments
- No arguments
Result
- int: 1 if streaming enabled, 0 if not
Application.get_video_stream_address()
Return address for video stream
Arguments
- No arguments
Result
- str: Address for video stream access. Used by Client View.
Application.is_playing()
Is playback currently in progress
Arguments
- No arguments
Result
- int: 1 if playback in progress, 0 if not
Application.get() BETA
Return instance of the Application object (typically for signal connection)
Arguments
- No arguments
Result
- Application: Returns Application object
get_current_scene() BETA
Return the currently active Scene within the application
Arguments
- No arguments
Result
- Scene: Current Scene
get_current_scene_name() BETA
Return the name of the currently active Scene within the application
Arguments
- No arguments
Result
- str: Current Scene name
get_open_scene_names() BETA
Return array of names of scenes currently open in the application. You can get the Scene object for a given name by calling get_scene_by_name().
Arguments
- No arguments
Result
- List[str]: Array of Scene Names
str: Scene Name
get_scene_by_name(name) BETA
Return the Scene object for the scene with the given name. If no matching scene can be found, NULL is returned.
Arguments
- name str: Name of Scene
Result
- Scene: Scene object for given scene name
get_current_cursor() BETA
Return the currently active Cursor within the application
Arguments
- No arguments
Result
- Cursor: Current Cursor
get_cursors() BETA
Return active Cursor objects within the application
Arguments
- No arguments
Result
- List[Cursor]: Array of Cursor objects
Cursor: Cursor object representing active cursor in application
log(category, severity, message) BETA
Log message in application Log view
Arguments
- category str: Category of message
- severity LOG_SEVERITY: Severity of message, Hard, Soft or Transient
- message str: Message to log
Result
- No result
message_dialog(title, message, buttons) BETA
Present a message box in the Application for the user to interact with
Arguments
- title str: Title of message box
- message str: Contents of message box
- buttons List[str]: Array of buttons to show in dialog box
str: Button label
Result
- str: Label of button selected by user
list_dialog(title, message, items) BETA
Present a dialog to the user containing a list of items that the user can select from
Arguments
- title str: Title of list dialog
- message str: Message to show in list dialog
- items List[KeyTextItem]: Array of items to show in list
Result
- any: Key of selected object, or NULL if no selection
get_clipboard()
Get the content of the clipboard
Arguments
- No arguments
Result
- str: Data from clipboard
set_clipboard(data)
Set the content of the clipboard
Arguments
- data str: Data to put into clipboard
Result
- No result
set_custom_data(data_key, data_value)
Set a custom data value in the application with the supplied (string) key. Existing custom data values can be deleted from the application by supplying NULL/None/null as the data value (for an existing key).
Arguments
- data_key str: Custom data value key
- data_value any Can be None: New data value for the given key (or NULL/None/null to delete)
Result
- No result
get_custom_data(data_key)
Get a custom data value from the application previously set using set_custom_data.
Arguments
- data_key str: Custom data value key
Result
- any: Custom data value found
get_custom_data_keys()
Return sorted array of (string) keys that can be used to fetch application custom data values via get_custom_data.
Arguments
- No arguments
Result
- List[str]:
str: Key string
open_url(url)
Open the given URL in a browser window
Arguments
- url str: URL to open
Result
- No result
AudioSync
audio sync operation
Signals
- AudioSyncProgress
This signal is sent as the AudioSync operation is performed
Signal payload:- args AudioSyncProgress: Latest progress information from AudioSync operation
- args AudioSyncProgress: Latest progress information from AudioSync operation
Methods
AudioSync.create()
audio_sync(scene, settings, shot_ids)
Perform audio sync operation using the given audio sync settings
Arguments
- scene Scene: Target scene to AudioSync into
- settings AudioSyncSettings:
- shot_ids Optional[List[int]] Can be None Optional: Array of Shot IDs to apply audio sync operation to
int: Shot ID
Result
- int: Number of shots updated by audio sync operation
get_log()
Return log of progress information
Arguments
- No arguments
Result
- List[AudioSyncProgress]: Array of audio sync progress information
ClientViewManager
Manages settings for connected Client Views.
Signals
- ClientConfigsChanged
Sent when the client view connection list changes and/or the settings for any connected clients
Signal payload:- args None
- args None
- SigHostUserSettingsChanged
Sent when the Client View's host user's settings change
Signal payload:- args None
- args None
- StreamConfigsChangedStart
Sent before changes to any of the the stream configurations are made
Signal payload:- args None
- args None
- StreamConfigsChangedEnd
Sent after changes to the stream configurations have been made
Signal payload:- args None
- args None
- PerformSimAdAction
For internal debug use only
Signal payload:- args None
- args None
Methods
- Sget
- Mget_host_user_settings
- Mget_client_settings
- Mget_stream_settings
- Mget_streaming_enabled
- Mget_session_name
- Mget_session_clients
ClientViewManager.get()
Get reference to the (singleton) ClientViewManager object
Arguments
- No arguments
Result
get_host_user_settings()
Get object containing Settings for the Client View's host user
Arguments
- No arguments
Result
get_client_settings()
Get the connected Client View's config/settings object.
Arguments
- No arguments
Result
get_stream_settings()
Get array of stream settings objects.
Arguments
- No arguments
Result
- List[ClientViewStreamSettings]:
get_streaming_enabled()
Is streaming currently enabled.
Arguments
- No arguments
Result
- int: 1 if streaming enabled, otherwise 0
get_session_name()
Get the current Client View session name.
Arguments
- No arguments
Result
- str: Current session name
get_session_clients()
Get array of current session clients. Each entry in the array will be a ConnectionInfo object describing that connection.
Arguments
- No arguments
Result
- List[ConnectionInfo]: Array of current session clients
CurrentGrade
Used to monitor an in-progress Baselight grading session. Clients should first obtain a CurrentGrade (singleton) instance using the (static) get() function. Clients can register with this instance to receive signals when the current grade changes.
Signals
- UpdateCurrentShot
Sent when the current cursor changes shot or scene
Signal payload:- args Dict: Definition of the current cursor, scene and shot ID
Methods
CurrentGrade.get()
Get (singleton) current grade interface for the connected client
Arguments
- No arguments
Result
- CurrentGrade: CurrentGrade object
request_update_current_shot_signal()
Explicitly request an 'UpdateCurrentShot' signal. This can be useful, for example, when first connecting to the current grade module for initialising a client's internal state.
Arguments
- No arguments
Result
- No result
get_current_cursor()
Get an interface to the cursor currently in use by Baselight for grading.
Arguments
- No arguments
Result
- Cursor: Current cursor interface
is_enabled()
Is this interface currently enabled. Note: The current grade interface may be arbitrarily enabled/disabled from the host application itself.
Arguments
- No arguments
Result
- int: Flag indicating whether the interface is currently enabled
Cursor
Interface for accessing cursors within a scene.
Signals
- No Signals
Methods
- Mget_time
- Mget_frame
- Mget_record_timecode
- Mget_viewing_format_name
- Mget_viewing_format_dims
- Mget_viewing_format_mask_name
- Mget_viewing_format_mask
- Mget_age
- Mis_using_truelight
get_time()
Get cursor's position in the timeline in seconds
Arguments
- No arguments
Result
- float: Timeline time
get_frame()
Get cursor's position in the timeline as a frame number
Arguments
- No arguments
Result
- int: Timeline frame number
get_record_timecode()
Get cursor's position in the timeline as a timecode
Arguments
- No arguments
Result
- Timecode: Record timecode
get_viewing_format_name()
Get the name of the cursor's current viewing format.
Arguments
- No arguments
Result
- str: Viewing format name
get_viewing_format_dims()
Get basic geometry (width, height and aspect ratio) of the cursor's current viewing format
Arguments
- No arguments
Result
- Dict: Viewing format dimensions
- AspectRatio float: Viewing format pixel aspect ratio (for anamorphic formats)
- Height int: Viewing format height
- Width int: Viewing format width
get_viewing_format_mask_name()
get_viewing_format_mask()
get_age()
Get the cursor's 'age'. The age is an integer, incremented whenever an attribute which could result in a visual change to the image display has been modfied.
Arguments
- No arguments
Result
- int: Cursor age value
is_using_truelight()
Is Truelight currently in use (ie. a profile has been selected & Truelight is enabled) in this cursor.
Arguments
- No arguments
Result
- int: Flag indicating if Truelight is in use
DynamicDialog (BETA)
This class can be used to show a complex dialog box to the user BETA
Signals
- SettingsChanged BETA
This signal is emitted when the user changes one or more values in the dialog
Signal payload:- args Dict: Current settings for the dynamic dialog
- args Dict: Current settings for the dynamic dialog
- TimerCallback BETA
This signal is emitted when the timer issues a callback
Signal payload:- args Dict: Current settings for the dynamic dialog
- args Dict: Current settings for the dynamic dialog
Methods
- Screate BETA
- Smodal BETA
- Mshow_modal BETA
- Mget_settings BETA
- Mset_settings BETA
- Mset_timer_callback BETA
- Mcancel_timer_callback BETA
DynamicDialog.create(title, defns, settings) BETA
Create a Dialog object
Arguments
- title str: Title of dialog
- defns List[DialogItem]: Array of items to show in dialog
DialogItem: Definition for an individual item in the DynamicDialog
- settings Dict: Dictionary of initial settings for dialog items
Result
DynamicDialog.modal(title, defns, settings, width, height) BETA
Display a Dialog object and return the settings
Arguments
- title str: Title of dialog
- defns List[DialogItem]: Array of items to show in dialog
- settings Dict: Dictionary of initial settings for dialog items
- width Optional[int] Can be None Optional: Desired width of dialog box
- height Optional[int] Can be None Optional: Desired height of dialog box
Result
- Dict: Settings chosen by user, or NULL if dialog was cancelled
show_modal(width, height) BETA
Show dialog to user
Arguments
- width Optional[int] Can be None Optional: Desired width of dialog box
- height Optional[int] Can be None Optional: Desired height of dialog box
Result
- Dict: Settings chosen by user, or NULL if dialog was cancelled
get_settings() BETA
Return current dialog settings
Arguments
- No arguments
Result
- Dict:
set_settings(settings) BETA
Set current dialog settings
Arguments
- settings Dict:
Result
- No result
set_timer_callback(delay, repeat) BETA
Set time until callback signal TimerCallback will be sent
Arguments
- delay int: Time until signal in milliseconds
- repeat int Optional: Flag indicating signal should repeat until cancel_timer_callback is called
Result
- No result
cancel_timer_callback() BETA
Cancel any pending timer callback
Arguments
- No arguments
Result
- No result
Export
Export operation
Signals
- ExportProgress
This signal is sent as the Export operation is performed
Signal payload:- args ExportProgress: Latest progress information from Export operation
- args ExportProgress: Latest progress information from Export operation
Methods
- Screate
- Mselect_all
- Mclear_selection
- Mselect_shots
- Mselect_shot
- Mdo_export_BLG
- Mdo_export_CDL
- Mdo_export_AMF
- Mdo_export_cube
- Mdo_export_still
- Mget_log
- Mget_presets BETA
Export.create()
select_all()
Select all snots in Scene to export
Arguments
- No arguments
Result
- No result
clear_selection()
Clear selection of shots in Scene to export
Arguments
- No arguments
Result
- No result
select_shots(shots)
Set the selection to the given Shots for rendering
Arguments
- shots List[Shot]: Array of Shot objects to select
Shot:
Result
- No result
select_shot(shot)
Add the given shot to the selection to be exported.
Arguments
- shot List[Shot]: Shot to add to selection
Shot:
Result
- No result
do_export_BLG(queue, scene, settings)
Perform export BLG operation using the given Export settings
Arguments
- queue QueueManager: QueueManager object for machine running render queue
- scene Scene: Target scene to Export From
- settings BLGExportSettings:
Result
- ExportOpInfo: Operation info for job added to export queue
do_export_CDL(queue, scene, settings)
Perform export CDL operation using the given Export settings
Arguments
- queue QueueManager: QueueManager object for machine running render queue
- scene Scene: Target scene to Export From
- settings CDLExportSettings:
Result
- ExportOpInfo: Operation info for job added to export queue
do_export_AMF(queue, scene, settings)
Perform export AMF operation using the given Export settings
Arguments
- queue QueueManager: QueueManager object for machine running render queue
- scene Scene: Target scene to Export From
- settings AMFExportSettings:
Result
- ExportOpInfo: Operation info for job added to export queue
do_export_cube(queue, scene, settings)
Perform export LUT operation using the given Export settings
Arguments
- queue QueueManager: QueueManager object for machine running render queue
- scene Scene: Target scene to Export From
- settings CubeExportSettings:
Result
- ExportOpInfo: Operation info for job added to export queue
do_export_still(queue, scene, settings)
Perform export still operation using the given Export settings
Arguments
- queue QueueManager: QueueManager object for machine running render queue
- scene Scene: Target scene to Export From
- settings StillExportSettings:
Result
- ExportOpInfo: Operation info for job added to export queue
get_log()
Return log of progress information
Arguments
- No arguments
Result
- List[ExportProgress]: Array of Export progress information
get_presets(scene, export_type) BETA
Return array of presets.
Note: this function is provided to make it easier to discover what settings are required when you want a particular export format (in particular for stills where it may not be obvious how to choose quality / compression settings etc). It is not, currently, intended to be a full-fledged interface to the Baselight presets.
Arguments
- scene Scene: Scene to read presets from
- export_type EXPORTTYPE: Type of Export to request presets from
Result
- List[Dict]:
Dict:
FDL
Class representing an ASC Framing Decision List
Signals
- No Signals
Methods
- Screate
- Sload_from_path
- Sload_from_string
- Sget_original_fdl_from_format
- Screate_fdl_from_formats
- Smerge_fdls
- Mget_document
- Mvalidate
- Mget_default_framing_intent
- Mget_framing_intent_ids
- Mget_framing_intent
- Mget_num_contexts
- Mget_context
- Mget_canvas_ids
- Mget_canvas
- Mget_canvas_template_ids
- Mget_canvas_template
- Msave_to_path
- Msave_to_string
- Mcreate_format_from_canvas
FDL.create(fdlDocument)
FDL.load_from_path(fdlPath, validate)
Load the FDL from the given path
Arguments
- fdlPath str: Path to FDL file
- validate int Optional: Flag indicating whether to validate the FDL during loading
Result
- FDL:
FDL.load_from_string(fdlString, validate)
Load the FDL from the given JSON-formatted string
Arguments
- fdlString str: FDL document in JSON format
- validate int Optional: Flag indicating whether to validate the FDL during loading
Result
- FDL:
FDL.get_original_fdl_from_format(format)
Get the original FDL document used to create the given format. Returns NULL if the format was not created from an FDL.
Arguments
- format Format:
Result
- FDL:
FDL.create_fdl_from_formats(formats, workingFormat, creatorName, contextName)
Create an FDL document from an array of FLAPI Formats
Arguments
- formats List[Format]: Array of Format objects
- workingFormat Optional[Format] Can be None Optional:
- creatorName Optional[str] Can be None Optional: Creator name for FDL
- contextName Optional[str] Can be None Optional: Context name for FDL
Result
- FDL:
FDL.merge_fdls(fdls, fdlCreator)
Create an FDL document by merging the given input FDLs into one
Arguments
- fdls List[FDL]: Array of input FDLs
FDL:
- fdlCreator Optional[str] Can be None Optional: Name in FDL creator. If not specified, the FDL creator from the first FDL will be taken.
Result
- FDL: Resulting merged FDL
get_document()
validate()
Validate the FDLDocument within this FDL.
The FDLValidation object returned contains a Valid field to indicate whether the FDL is valid, and a list of any errors encountered when validating the FDL.
Arguments
- No arguments
Result
- FDLValidation: Validation result
get_default_framing_intent()
Return default framing intent ID
Arguments
- No arguments
Result
- str: Framing Intent ID
get_framing_intent_ids()
Return array of framing intent IDs
Arguments
- No arguments
Result
- List[str]: Array of framing intent IDs
str: Framing Intent ID
get_framing_intent(framingIntentId)
Return FDLFramingIntent for the given ID
Arguments
- framingIntentId str: Framing Intent ID
Result
get_num_contexts()
Return number of Contexts within FDL
Arguments
- No arguments
Result
- int: Number of contexts
get_context(index)
get_canvas_ids(index)
Get list of canvas IDs, optionally constrained by a given context ID
Arguments
- index Optional[int] Can be None Optional: Context index to return canvas IDs for
Result
- List[str]: Array of FDL Canvas IDs
str: Canvas ID
get_canvas(canvasId)
get_canvas_template_ids()
Get list of canvas template IDs within FDL
Arguments
- No arguments
Result
- List[str]: Array of FDL Canvas Template IDs
str: Canvas Template ID
get_canvas_template(templateId)
Get FDLCanvasTemplate for the given template ID
Arguments
- templateId str: Canvas Template Id
Result
save_to_path(fdlPath, validate)
Save the FDL document to the given path in JSON format
Arguments
- fdlPath str: Path to FDL file
- validate int Optional: Flag indicating whether FDL should be validated before saving
Result
- No result
save_to_string(validate)
Save the FDL document to string in JSON format
Arguments
- validate int Optional: Flag indicating whether to validate the FDL before serialising it to string
Result
- str: FDL in JSON format
create_format_from_canvas(options)
Create a FilmLight Format from an FDL Canvas
Arguments
- options FDLCreateFormatFromCanvasOptions:
Result
FLUXManage
Interface to FLUX Manage in Baselight & Daylight
Signals
- No Signals
Methods
FLUXManage.get()
get_primary_selection()
get_selected_sequences()
Return the array of selected sequences
Arguments
- No arguments
Result
- List[SequenceDescriptor]: Array of SequenceDescriptors
get_selected_files()
Return the array of selected file paths
Arguments
- No arguments
Result
- List[FLUXFileInfo]: Array of file paths
Format
Format defines an image resolution and pixel aspect ratio with associated masks and burnins
Signals
- No Signals
Methods
- Mget_name
- Mget_description
- Mget_resolution
- Mget_mapping_names
- Mget_mapping
- Madd_mapping
- Mdelete_mapping
- Mget_masks
- Mget_mask_names
- Mget_mask
- Mhas_mask
- Madd_mask
- Mdelete_mask
- Mget_burnin_names
- Mget_burnin
- Madd_burnin
- Mdelete_burnin
get_name()
Return name of format
Arguments
- No arguments
Result
- str: Format name
get_description()
Return description of format
Arguments
- No arguments
Result
- str: Description
get_resolution(res)
Return FormatInfo for given resolution of Format
Arguments
- res str Optional: Constant identify which resolution to fetch
Result
get_mapping_names()
Return names of mapping from this format to other formats
Arguments
- No arguments
Result
- List[str]: Array of names of format mapping
str: Format name
get_mapping(name)
Return definition of mapping from this format to named format
Arguments
- name str: Name of target format
Result
add_mapping(name, mapping)
Add mapping from this format to the given named format. The mapping struct is optional. If the mapping is omitted, a default mapping is constructed which maps the current format inside of the destination format.
If you wish to map the source format outside of the destination format, you can pass a mapping struct with the sx, sy, tx and ty parameters set to zero, and the inside flag to set to 0.
'sx' and 'sy' are the scaling factors for the X and Y axes from the source format (or source mask, if specified) to the destination format (or destination mask, if specified).
'tx' and 'ty' are the translation for the X and Y axes, relative to the destination format.
If you wish to map from a mask within the source format and/or to a mask with destination format, you can specify those masks by name in the src_mask and dest_mask fields of FormatMapping.
Arguments
- name str: Destination format name
- mapping Optional[FormatMapping] Can be None Optional: Parameters defining the mapping from this format to the target format
Result
- No result
delete_mapping(name)
Delete mapping to the given named format
Arguments
- name str: Name of format to delete mapping to
Result
- No result
get_masks()
Return array of FormatMasks defined for this format
Arguments
- No arguments
Result
- List[FormatMask]: Array of masks
get_mask_names()
Return list of mask names defined for this format
Arguments
- No arguments
Result
- List[str]: Array of mask names
str: Mask name
get_mask(name)
Return the definition for the named mask in this format
Arguments
- name str: Name of mask
Result
has_mask(name)
Return a flag indicating whether a mask of the given name is present in this format
Arguments
- name str: Name of mask
Result
- int: Flag indicating existence of this mask within the format
add_mask(name, mask)
Add a new mask definition to this format
Arguments
- name str: Name of new mask
- mask FormatMask: Parameters for mask
Result
- No result
delete_mask(name)
Delete the definition for this given mask in this format
Arguments
- name str: Name of mask to delete
Result
- No result
get_burnin_names()
Return array of names of burnins defined for this format
Arguments
- No arguments
Result
- List[str]: Array of burnin names
str: Burnin name
get_burnin(name)
Return FormatBurnin object for the named burnin
Arguments
- name str: Burnin name
Result
add_burnin(name)
Create a new burnin with the given name, and return a FormatBurnin object for it
Arguments
- name str: Burnin name
Result
delete_burnin(name)
Delete the burnin with the given name
Arguments
- name str: Burnin name
Result
- No result
FormatBurnin
Definition of a burn-in for a Format
Signals
- No Signals
Methods
- Mget_opacity
- Mset_opacity
- Mget_box_colour
- Mset_box_colour
- Mget_font
- Mset_font
- Madd_item
- Mget_num_items
- Mget_item
- Mset_item
- Mdelete_item
get_opacity()
Get burnin opacity
Arguments
- No arguments
Result
- float: Opacity
set_opacity(opacity)
Set burnin opacity
Arguments
- opacity float: Opacity
Result
- No result
get_box_colour()
Set colour of box around text items
Arguments
- No arguments
Result
- List[float]: RGBA box colour
float:
set_box_colour(colour)
Set colour of box around text items
Arguments
- colour List[float]: RGBA box colour
float:
Result
- No result
get_font()
Get font name for this burnin
Arguments
- No arguments
Result
- str: Font name
set_font(name)
Set font name for this burnin
Arguments
- name str: Font name
Result
- No result
add_item(item)
get_num_items()
Return number of items defined within this burnin
Arguments
- No arguments
Result
- int: Number of burnin items
get_item(index)
Return definition for the burnin item at the given index
Arguments
- index int: Index of burnin item
Result
set_item(index, item)
Return definition for the burnin item at the given index
Arguments
- index int: Index of burnin item
- item FormatBurninItem:
Result
- No result
delete_item(index)
Delete the burnin item at the given index
Arguments
- index int: Index of burnin item
Result
- No result
FormatSet
The FormatSet interface allows enumeration of available resources on the FilmLight system such as formats, colour spaces, display render transforms, LUTs, etc.
Signals
- No Signals
Methods
- Sfactory_formats
- Sglobal_formats
- Sjob_formats
- Sget_drt_names
- Sget_drt_info
- Mget_scope
- Mget_scope_path
- Mget_basic_format_name
- Mget_format_names
- Mget_format
- Madd_format
- Mdelete_format
- Mhas_format
- Mget_colour_space_names
- Mget_colour_space_info
- Mreload
FormatSet.factory_formats()
Return factory FormatSet object for factory (built-in) formats
Arguments
- No arguments
Result
FormatSet.global_formats()
Return global FormatSet object for formats defined in formats database
Arguments
- No arguments
Result
FormatSet.job_formats(hostname, jobname)
Return FormatSet object for formats defined in the given Job database
Arguments
- hostname str: Database host
- jobname str: Job name
Result
FormatSet.get_drt_names()
Return array of Display Rendering Transform names
Arguments
- No arguments
Result
- List[str]: Array of DRT names
str: DRT Name
FormatSet.get_drt_info(name)
Return information for the given Display Rendering Transform name
Arguments
- name str: Name of Display Rendering Transform
Result
get_scope()
get_scope_path()
Return the path for FormatSets representing a job/scene scope
Arguments
- No arguments
Result
- str: Scope path
get_basic_format_name(width, height, pixelAspectRatio)
Return name for a basic (auto-generated) format
Arguments
- width int: Width of format
- height int: Height of format
- pixelAspectRatio float Optional: Pixel aspect ratio
Result
- str: Format name
get_format_names()
Return array of format names
Arguments
- No arguments
Result
- List[str]: Format names
str:
get_format(name)
add_format(name, description, width, height, pixelAspectRatio)
Add a new format to this FormatSet
Arguments
- name str: Name of format
- description str: Description of format
- width int: Width of format in pixels
- height int: Height of format in pixels
- pixelAspectRatio float Optional: Pixel aspect ratio
Result
- Format: Object representing the newly created format
delete_format(name)
Delete a format from the FormatSet
Arguments
- name str: Name of format to delete
Result
- No result
has_format(name)
Check if the given format name exists within this FormatSet
Arguments
- name str: Name of format to find
Result
- int: Flag indicating whether the format exists
get_colour_space_names()
Return array of colour space names
Arguments
- No arguments
Result
- List[str]: Array of colour space names
str: Colour space name
get_colour_space_info(name)
Return information on the given colour space
Arguments
- name str: Name of colour space
Result
reload()
Reload the contents of the FormatSet from database
Arguments
- No arguments
Result
- No result
Image
Signals
- No Signals
Methods
Image.get_raw_metadata(filename)
Returns raw metadata for the image or movie at the supplied path
Arguments
- filename str: Filename of image/movie to examine
Result
- Dict: Dictionary of metadata
JobManager
Query and manipulate the FilmLight job database
Signals
- No Signals
Methods
- Sget_jobs
- Sget_folders
- Sget_scenes
- Screate_job
- Srename_job
- Sdelete_job
- Sjob_exists
- Screate_folder
- Srename_folder
- Sdelete_folder
- Sget_scene_info
- Sscene_exists
- Sdelete_scene
- Srename_scene
JobManager.get_jobs(host)
Fetch list of jobs in job database
Arguments
- host str: Hostname of job database
Result
- List[str]: Array of job name strings
str: Job name
JobManager.get_folders(host, job, folder, recursive)
Fetch list of folder names within job/folder in job database
Arguments
- host str: Hostname of job database
- job str: Job name within job database
- folder Optional[str] Can be None Optional: Folder within job
- recursive int Optional: Return all folders contained within the given job/folder
Result
- List[str]: Array of folder names
str: Folder name
JobManager.get_scenes(host, job, folder)
Fetch list of scene names within job/folder in job database
Arguments
- host str: Hostname of job database
- job str: Job name within job database
- folder Optional[str] Can be None Optional: Folder within job
Result
- List[str]: Array of scene names
str: Scene name
JobManager.create_job(host, jobname)
Create a new job
Arguments
- host str: Hostname of job database
- jobname str: Job name
Result
- No result
JobManager.rename_job(host, jobname, new_jobname)
Rename job
Arguments
- host str: Hostname of job database
- jobname str: Job name
- new_jobname str: New job name
Result
- No result
JobManager.delete_job(host, jobname, force)
Delete job
Arguments
- host str: Hostname of job database
- jobname str: Job name
- force int Optional: Force deletion of job
Result
- No result
JobManager.job_exists(host, jobname)
Check if job exists
Arguments
- host str: Hostname of job database
- jobname str: Job name
Result
- int: Flag indicating whether job exists
JobManager.create_folder(host, jobname, foldername)
Create a folder within job
Arguments
- host str: Hostname of job database
- jobname str: Job name
- foldername str: Folder name within job
Result
- No result
JobManager.rename_folder(host, jobname, foldername, new_foldername)
Rename folder
Arguments
- host str: Hostname of job database
- jobname str: Job name
- foldername str: Folder name within job
- new_foldername str: New folder name
Result
- No result
JobManager.delete_folder(host, jobname, foldername)
Delete folder
Arguments
- host str: Hostname of job database
- jobname str: Job name
- foldername str: Folder name within job
Result
- No result
JobManager.get_scene_info(host, jobname, scenename)
Return information about scene
Arguments
- host str: Hostname of job database
- jobname str: Job name
- scenename str: Scene name
Result
- SceneInfo: An object containing properties of the Scene
JobManager.scene_exists(host, jobname, scenename)
Check if scene exists
Arguments
- host str: Hostname of job database
- jobname str: Job name
- scenename str: Scene name
Result
- int: Flag indicating whether scene exists
JobManager.delete_scene(host, jobname, scenename, ignoreLocks)
Delete scene
Arguments
- host str: Hostname of job database
- jobname str: Job name
- scenename str: Scene name
- ignoreLocks int Optional: Flag indicating any existing locks on scene should be ignored
Result
- No result
JobManager.rename_scene(host, jobname, scenename, newname)
Rename scene
Arguments
- host str: Hostname of job database
- jobname str: Job name
- scenename str: Scene name
- newname str: New Scene name
Result
- No result
Licence
Licence management
Signals
- No Signals
Methods
Licence.get_system_id()
Return the system ID used to identify this system for licensing
Arguments
- No arguments
Result
- str: System ID string
Licence.get_licence_info(include_expired)
Return licence information
Arguments
- include_expired int Optional: Flag indicating whether to include expired licenses in the list
Result
- List[LicenceItem]: Array of installed licence items
Licence.install_licence(licenceData)
Install the given licence data
Arguments
- licenceData str: String containing Base-64 encoded licence data
Result
- No result
Mark
Mark defined in a Shot or Scene
Signals
- No Signals
Methods
- Mget_id
- Mget_type
- Mget_position
- Mget_time
- Mget_note_text
- Mget_colour
- Mget_category
- Mget_source_frame
- Mget_source_timecode
- Mget_record_frame
- Mget_record_timecode
- Mget_properties
- Mset_properties
get_id()
Return Mark object ID
Arguments
- No arguments
Result
- int: Mark ID
get_type()
get_position()
Return Mark position For Shot marks, this value is a frame number relative to the start of the image sequence. For Strip marks, this value is a time in seconds relative to the start of the strip. For Timeline marks, this value is a time in seconds relative to the start of the timeline.
Arguments
- No arguments
Result
- float: Position in seconds or frames
get_time()
Return Mark position in seconds For Shot and Strip marks, this returns the time relative to the start of the shot For Timeline marks, this returns the time relative to the start of the timeline
Arguments
- No arguments
Result
- float: Position in seconds
get_note_text()
Return Mark note text
Arguments
- No arguments
Result
- str: Note text
get_colour()
Return Mark colour
Arguments
- No arguments
Result
- List[float]: RGBA colour
float:
get_category()
Return Mark category
Arguments
- No arguments
Result
- str: Mark category
get_source_frame(eye)
Return the source image frame number for this mark Only applicable for Shot/Strip marks. Will fail for Timeline marks
Arguments
- eye StereoEye Optional: Which eye for stereo sequences
Result
- int: Source frame number
get_source_timecode(eye)
Return the source image timecode for this mark Only applicable for Shot/Strip marks. Will fail for Timeline marks
Arguments
- eye StereoEye Optional: Which eye for stereo sequences
Result
- Timecode: Source timecode
get_record_frame()
Return the source image frame number for this mark
Arguments
- No arguments
Result
- int: Record frame number
get_record_timecode()
Return the source image timecode for this mark
Arguments
- No arguments
Result
- Timecode: Record timecode
get_properties()
Return dictionary of properties for this Mark object
Arguments
- No arguments
Result
- Dict: Dictionary containing property keys and values
set_properties(props)
Set the property values for the given dictionary of keys & values. Setting a value to NULL will remove it from the property set.
Arguments
- props Dict: Dictionary of property keys & values
Result
- No result
Menu (BETA)
A menu in the application user interface, which contains MenuItems BETA
Signals
- MenuUpdate BETA
Called when a menu is about to be displayed
Methods
- Screate BETA
- Madd_item BETA
- Mget_num_items BETA
- Mget_item_at BETA
- Mget_index_of_item BETA
- Mremove_item_at BETA
- Mremove_item BETA
- Mremove_all_items BETA
Menu.create() BETA
add_item(item, index) BETA
Add MenuItem to menu
Arguments
- item MenuItem: Item to add to menu
- index int Optional: Index to insert item at. Use 0 to append to front. Use -1 to append to end.
Result
- No result
get_num_items() BETA
Get number of items in menu
Arguments
- No arguments
Result
- int: Number of items in menu
get_item_at(index) BETA
get_index_of_item(item) BETA
Return the index of the given MenuItem within this Menu
Arguments
- item MenuItem: Item to find index for
Result
- int: Index of MenuItem, -1 if not found
remove_item_at(index) BETA
Remove menu item at the given index
Arguments
- index int: Index of menu item
Result
- No result
remove_item(item) BETA
remove_all_items() BETA
Remove all menu items from menu
Arguments
- No arguments
Result
- No result
MenuItem (BETA)
A menu item in the application user interface, which can trigger actions BETA
Signals
- MenuItemUpdate BETA
This signal is emitted when the MenuItem is about to be displayed in the UI - MenuItemSelected BETA
This signal is emitted when the user selects this menu item in the UI
Methods
- Screate BETA
- Mregister BETA
- Mget_title BETA
- Mset_title BETA
- Mget_enabled BETA
- Mset_enabled BETA
- Mget_hidden BETA
- Mset_hidden BETA
- Mget_sub_menu BETA
- Mset_sub_menu BETA
- Mset_keyboard_accelerator BETA
MenuItem.create(title, key) BETA
Create a new MenuItem object
Arguments
- title str: Title of MenuItem
- key Optional[any] Can be None Optional: A value which can be used as a key to identify this menu item
Result
register(location) BETA
Register this menu item to insert it into the application's UI
Arguments
- location MENU_LOCATION: Where to register menu item
Result
- No result
get_title() BETA
Get menu item title
Arguments
- No arguments
Result
- str: Menu item title
set_title(title) BETA
Set menu item title
Arguments
- title str: New menu item title
Result
- No result
get_enabled() BETA
Get menu item enabled state
Arguments
- No arguments
Result
- int: Enabled state
set_enabled(enabled) BETA
Set menu item enabled state
Arguments
- enabled int: Enabled state
Result
- No result
get_hidden() BETA
Get menu item hidden state
Arguments
- No arguments
Result
- int: Hidden state
set_hidden(hidden) BETA
Set menu item hidden state
Arguments
- hidden int: Hidden state
Result
- No result
get_sub_menu() BETA
set_sub_menu(submenu) BETA
Set sub-menu for this menu item
Arguments
- submenu Menu: Menu object containing sub-menu items
Result
- No result
set_keyboard_accelerator(key, modifiers) BETA
Set keyboard accelerator for this menu item.
This method can fail if the accelerator is already in use.
Arguments
- key str: String representing key. Lower-case.
- modifiers Set[str]: Set of modifier keys:
-
- Control (equates to Command on macOS)
-
- Shift
-
- Alt (equates to Option on macOS)
-
- Meta (equates to Control on macOS)
-
Result
- No result
MultiPaste
Multi-Paste operation
Signals
- MultiPasteProgress
This signal is sent as the MultiPaste operation is performed
Signal payload:- args MultiPasteProgress: Latest progress information from MultiPaste operation
- args MultiPasteProgress: Latest progress information from MultiPaste operation
Methods
MultiPaste.create()
Create a new Multi-Paste operation object
Arguments
- No arguments
Result
- MultiPaste: MultiPaste object
multi_paste(scene, settings, shot_ids)
Perform multi-paste operation using the given Multi-Paste settings
Arguments
- scene Scene: Target scene to MultiPaste into
- settings MultiPasteSettings:
- shot_ids Optional[List[int]] Can be None Optional: Array of Shot IDs to apply multi-paste operation to
int: Shot ID
Result
- int: Number of shots updated by Multi-Paste operation
get_log()
Return log of progress information
Arguments
- No arguments
Result
- List[MultiPasteProgress]: Array of multi-paste progress information
ProgressDialog (BETA)
Display a progress dialog within the application BETA
Signals
- CancelOperation BETA
The user has requested that the operation be cancelled
Methods
- Screate BETA
- Mshow BETA
- Mset_title BETA
- Mset_progress BETA
- Mis_cancelled BETA
- Mhide BETA
ProgressDialog.create(title, msg, cancellable) BETA
Create a new ProgressDialog
Arguments
- title str: Title of progress dialog
- msg str: Message to display in progress dialog
- cancellable int Optional: Flag indicating that progress dialog has cancel button
Result
show(delay) BETA
Show the progress dialog
Arguments
- delay float Optional: Only show progress dialog after a delay, in seconds
Result
- No result
set_title(title) BETA
Set the title of the progress dialog
Arguments
- title str: New title for dialog
Result
- No result
set_progress(progress, message) BETA
Update the progress & message displayed in dialog
Arguments
- progress float: Progress value between 0.0 and 1.0
- message str: Progress message to display
Result
- No result
is_cancelled() BETA
Return flag indicating whether the user has clicked the Cancel button on this ProgressDialog
Arguments
- No arguments
Result
- int: Flag indicating whether Cancel has been clicked
hide() BETA
Hide the progress dialog
Arguments
- No arguments
Result
- No result
QueueManager
Interface for managing the Queue on a Baselight/Daylight system
Signals
- QueueOpsChanged
This signal is emitted when the list of operations in the queue changes - QueueOpStatusChanged
This signal is emitted when the status of one of the operations in the queue changes
Signal payload:- args int: ID of operation whose status has changed
- args int: ID of operation whose status has changed
- QueueOpLogChanged
This signal is emitted when a new log information entry is generated for one of the active operations in the queue
Signal payload:- args int: ID of operation whose log has changed
- args int: ID of operation whose log has changed
Methods
- Screate
- Screate_local
- Screate_no_database
- Sget_queue_zones
- Mget_operation_ids
- Mget_operation
- Mget_operation_status
- Mget_operation_log
- Mpause_operation
- Mresume_operation
- Mrestart_operation
- Mdelete_operation
- Marchive_operation
- Menable_updates
- Mdisable_updates
- Mnew_operation BETA
- Madd_tasks_to_operation BETA
- Mset_operation_ready BETA
- Mget_next_operation_of_type BETA
- Mget_operation_params BETA
- Mget_next_task BETA
- Mset_task_progress BETA
- Mset_task_done BETA
- Mset_task_failed BETA
- Madd_operation_log BETA
- Madd_task_log BETA
QueueManager.create(zone)
Create a QueueManager object to examine and manipulate the queue on the given zone
Arguments
- zone str: Zone name of machine running queue
Result
QueueManager.create_local()
Create a QueueManager object to examine and manipulate the queue on the local zone
Arguments
- No arguments
Result
QueueManager.create_no_database()
Create a QueueManager object to examine and manipulate a non-database queue in the FLAPI process. In addition, the QueueManager object will process any operations added to the queue within the FLAPI process.
Arguments
- No arguments
Result
QueueManager.get_queue_zones()
Return list of available zones running queue services
Arguments
- No arguments
Result
- List[str]: Array of strings identifying zones available for rendering
str: Zone name
get_operation_ids()
Return list operation IDs in queue
Arguments
- No arguments
Result
- List[int]: Array of Operation IDs
int: Operation ID
get_operation(id)
get_operation_status(id)
get_operation_log(id)
Return log for given operation ID
Arguments
- id int: Operation ID
Result
- List[QueueLogItem]: Array of Log Entries
pause_operation(id)
Pause operation with given operation ID
Arguments
- id int: Operation ID
Result
- No result
resume_operation(id)
Resume operation with given operation ID
Arguments
- id int: Operation ID
Result
- No result
restart_operation(id)
Restart operation with given operation ID
Arguments
- id int: Operation ID
Result
- No result
delete_operation(id)
Delete operation with given operation ID
Arguments
- id int: Operation ID
Result
- No result
archive_operation(id)
Archive operation with given operation ID
Arguments
- id int: Operation ID
Result
- No result
enable_updates()
Enable status update signals
Arguments
- No arguments
Result
- No result
disable_updates()
Disable status update signals
Arguments
- No arguments
Result
- No result
new_operation(opType, desc, params, tasks, dependsOn) BETA
Create a new custom operation and return its ID
Arguments
- opType str: Key identifying the operation type
- desc str: Description of operation to present in queue
- params Dict: Parameters for operation. May contain any simple key/value parameters.
- tasks Optional[List[QueueOpTask]] Can be None Optional: Array of tasks for this operation. If you wish to add more tasks to the operation, leave this parameter empty and use add_tasks_to_operation() instead, followed by set_operation_ready().
- dependsOn Optional[Set[int]] Can be None Optional: Set of operation IDs that this operation depends on
Result
- int: Operation ID
add_tasks_to_operation(opid, tasks) BETA
Add more tasks to the given operation
Arguments
- opid int: Operation ID
- tasks List[QueueOpTask]: Array of tasks for this operation
Result
- No result
set_operation_ready(opid) BETA
Mark operation as ready to process. Should be called after calling add_tasks_to_operation().
Arguments
- opid int: Operation ID
Result
- No result
get_next_operation_of_type(opType, wait) BETA
Find the next operation for the given operation type that is ready to execute
Arguments
- opType str: Key identifying operation type
- wait int: Flag indicating whether the method should block until a task is available
Result
- int: Operation ID
get_operation_params(opid) BETA
Get params for given operation ID
Arguments
- opid int: Operation ID
Result
- Dict:
get_next_task(opid) BETA
Get the next task ready to execute for the given operation ID
Arguments
- opid int: Operation ID
Result
- QueueOpTask: Description of task to execute
set_task_progress(opid, taskseq, progress) BETA
Set task progress
Arguments
- opid int: Operation ID
- taskseq int: Task Sequence Number
- progress float: Task progress between 0.0 and 1.0
Result
- No result
set_task_done(opid, taskseq, msg) BETA
Mark task as completed
Arguments
- opid int: Operation ID
- taskseq int: Task Sequence ID
- msg str: Task Message
Result
- No result
set_task_failed(opid, taskseq, msg, detail, frame) BETA
Mark task as failed
Arguments
- opid int: Operation ID
- taskseq int: Task Sequence ID
- msg str: Task Message
- detail str: Detailed information on failure
- frame Optional[int] Can be None Optional: Frame number of failure
Result
- No result
add_operation_log(opid, type, msg, detail) BETA
Add log entry for operation
Arguments
- opid int: Operation ID
- type QUEUE_LOG_TYPE: Type of log entry
- msg str: Log Message
- detail str: Detailed information on failure
Result
- No result
add_task_log(opid, taskseq, type, msg, detail, frame) BETA
Add log entry for operation
Arguments
- opid int: Operation ID
- taskseq int: Task Sequence ID
- type QUEUE_LOG_TYPE: Type of log entry
- msg str: Log Message
- detail str: Detailed information on failure
- frame Optional[int] Can be None Optional: Frame number within task for log entry
Result
- No result
RenderProcessor
A RenderProcessor will execute a RenderSetup and produce deliverable data
Signals
- No Signals
Methods
- Sget
- Mstart
- Mget_progress
- Mget_log
- Mshutdown
RenderProcessor.get()
start(renderSetup)
Start render operation for the given RenderSetup
Arguments
- renderSetup RenderSetup:
Result
- No result
get_progress()
get_log()
Get log of operation progress
Arguments
- No arguments
Result
- List[RenderProcessorLogItem]: Array of log entries from this render operation
shutdown()
Shutdown the RenderProcessor instance. This releases any resources in use by the RenderProcessor.
Arguments
- No arguments
Result
- No result
RenderSetup
Setup Baselight/Daylight scene for rendering
Signals
- No Signals
Methods
- Sget_image_types
- Sget_movie_types
- Sget_movie_codecs
- Sget_movie_audio_codecs
- Screate
- Screate_from_scene
- Mget_scene
- Mset_scene
- Msave_into_scene
- Mset_deliverables_from_scene
- Mget_num_deliverables
- Mget_deliverable_names
- Mget_deliverable
- Mset_deliverable
- Mget_deliverable_by_name
- Mset_deliverable_by_name
- Madd_deliverable
- Mdelete_deliverable
- Mdelete_all_deliverables
- Mget_deliverable_enabled
- Mset_deliverable_enabled
- Mget_output_filename_for_deliverable
- Mset_container
- Mget_frames
- Mset_frames
- Mselect_all
- Mselect_shots
- Mselect_shot_ids
- Mselect_graded_shots
- Mselect_timeline_marks
- Mselect_shot_marks
- Mselect_poster_frames
- Mselect_shots_of_category
- Msubmit_to_queue
RenderSetup.get_image_types()
Return array of supported image types for rendering
Arguments
- No arguments
Result
- List[RenderFileTypeInfo]:
RenderSetup.get_movie_types()
Return array of movie types for rendering
Arguments
- No arguments
Result
- List[RenderFileTypeInfo]:
RenderSetup.get_movie_codecs(movieType)
Return array of video codecs available for the given movie type
Arguments
- movieType str: Movie type key
Result
- List[RenderCodecInfo]:
RenderSetup.get_movie_audio_codecs(movieType)
Return array of audio codecs available for the given movie type
Arguments
- movieType str: Movie type key
Result
- List[RenderCodecInfo]:
RenderSetup.create()
RenderSetup.create_from_scene(scene)
Create a new RenderSetup instance configured to render the given Scene using its default deliverables
Arguments
- scene Scene: Scene to render and take deliverable configuration from
Result
get_scene()
set_scene(scene)
save_into_scene(scene)
Save the deliverables from this RenderSetup into the Scene. If a delta is not in progress on the Scene, a new delta will be created for the save operation.
Arguments
- scene Optional[Scene] Can be None Optional: Scene to save deliverables into. If not specified, the deliverables will be saved into the scene currently associated with the RenderSetup.
Result
- No result
set_deliverables_from_scene(scene)
Load Deliverables from Scene object assigned to this RenderSetup object
Arguments
- scene Scene Can be None: If specified, load deliverables from the specified Scene instead of scene associated with RenderSetup
Result
- No result
get_num_deliverables()
Render number of deliverables defined for this Scene
Arguments
- No arguments
Result
- int: Number of deliverables
get_deliverable_names()
Return array of deliverable names
Arguments
- No arguments
Result
- List[str]: Array of deliverable names
str: Deliverable name
get_deliverable(index)
Return the RenderDeliverable definition at the given index
Arguments
- index int: Index of RenderDeliverable
Result
set_deliverable(index, deliverable)
Set the settings for the deliverable at the given index
Arguments
- index int: Index of deliverable to update
- deliverable RenderDeliverable: Settings to use for this deliverable
Result
- No result
get_deliverable_by_name(name)
Get the settings for the RenderDeliverable definition with the given name. Returns NULL if not matching deliverable can be found.
Arguments
- name str: Name of RenderDeliverable
Result
set_deliverable_by_name(name, deliverable)
Set the settings for the RenderDeliverable definition with the given name
Arguments
- name str: Name of RenderDeliverable to update
- deliverable RenderDeliverable: Settings to use for this deliverable
Result
- No result
add_deliverable(deliverable)
Add a new deliverable to be generated as part of this render operation
Arguments
- deliverable RenderDeliverable: Settings for render deliverable
Result
- No result
delete_deliverable(index)
Delete the deliverable at the given index
Arguments
- index int: Index of deliverable to delete
Result
- No result
delete_all_deliverables()
Delete all deliverables defined in the RenderSetup
Arguments
- No arguments
Result
- No result
get_deliverable_enabled(index)
Get enabled state of deliverable at given index
Arguments
- index int: Index of deliverable
Result
- No result
set_deliverable_enabled(index, enabled)
Set enabled state of deliverable at given index
Arguments
- index int: Index of deliverable
- enabled int: Flag indicating whether deliverable is enabled for rendering
Result
- No result
get_output_filename_for_deliverable(index, leave_container, frame)
Return the full filename for the given frame number of a deliverable
Arguments
- index int: Index of deliverable
- leave_container int Optional: Leave %C container variable in returned path
- frame int Optional: Frame number to generate filename for.
- Default is -1 to indicate the first frame of the render operation.
Result
- str: Full filename for rendered file/frame
set_container(container)
Set the output container directory for all deliverables
Arguments
- container str: Container path
Result
- No result
get_frames()
Get list of frame ranges to render
Arguments
- No arguments
Result
- List[FrameRange]: List of frame ranges
set_frames(frames)
Set list of frame ranges to render
Arguments
- frames List[FrameRange]: List of frame ranges
Result
- No result
select_all()
Select all frames in Scene to render
Arguments
- No arguments
Result
- No result
select_shots(shots)
Select the given Shots for rendering
Arguments
- shots List[Shot]: Array of Shot objects to select
Shot:
Result
- No result
select_shot_ids(shotids)
Select the given Shots identified by their ID for rendering
Arguments
- shotids List[int]: Array of Shot IDs to select
int: Shot ID
Result
- No result
select_graded_shots()
Select all graded shots to render
Arguments
- No arguments
Result
- No result
select_timeline_marks(categories)
Select timeline marks matching the categories in the given category set
Arguments
- categories Optional[Set[str]] Can be None Optional: Set of categories to match against
Result
- No result
select_shot_marks(categories)
Select shot marks matching the categories in the given category set
Arguments
- categories Set[str]: Set of categories to match against
Result
- No result
select_poster_frames()
Select all shot poster frames to render
Arguments
- No arguments
Result
- No result
select_shots_of_category(categories)
Select shots marked with one of the categories in the given category set
Arguments
- categories Set[str]: Set of categories to match against
Result
- No result
submit_to_queue(queue, opname)
Submit the current Render operation to a Queue for processing
Arguments
- queue QueueManager: QueueManager object for machine running render queue
- opname str: Operation name to use for queue job
Result
- RenderOpInfo: Operation info for job added to render queue
Scene
Interface for opening, creating, accessing and modifying Scenes.
Scene modifications are usually made using a delta. A delta batches together one or more scene edits/modifications into a single, undo-able transaction. A client wishing to modify a scene would typically:
- Start a delta using the start_delta() method (supplying a user friendly name for the delta/operation they're performing).
- Make edits on the scene using whatever 'set' type methods are required for the operation.
- End the delta using the end_delta() method.
Signals
- OpenSceneDone
Sent when a call to the (asynchronous) open_scene_nonblock() method completes.
Signal payload:- args Dict: Result of the open_scene operation
- Error str: String describing any error encountered while opening the scene
- Error str: String describing any error encountered while opening the scene
- args Dict: Result of the open_scene operation
- NewSceneDone
Sent when a call to the (asynchronous) new_scene_nonblock() method completes.
Signal payload:- args Dict: Result of the new_scene operation
- Error str: String describing any error encountered while creating the scene
- Error str: String describing any error encountered while creating the scene
- args Dict: Result of the new_scene operation
- TemporarySceneDone
Sent when a call to the (asynchronous) temporary_scene_nonblock() method completes.
Signal payload:- args Dict: Result of the temporary_scene operation
- Error str: String describing ny error encountered while creating the scene
- Error str: String describing ny error encountered while creating the scene
- args Dict: Result of the temporary_scene operation
- SceneRangeDirty
Sent when a range of the timeline has been dirtied, either by a grade modification or a change in the timeline geometry.
Signal payload:- args Dict: Information on dirty region
- EndFrame int: Frame number at end of range affected
- StartFrame int: Frame number at start of range affected
- args Dict: Information on dirty region
Methods
- Sparse_path
- Spath_to_string
- Screate
- Snew_scene
- Sopen_scene
- Stemporary_scene
- Mnew_scene_nonblock
- Mopen_scene_nonblock
- Mtemporary_scene_nonblock
- Msave_scene
- Mget_open_status
- Mwait_until_open
- Mclose_scene
- Mget_scene_pathname
- Mget_scene_container
- Mset_scene_container
- Mstart_delta
- Mcancel_delta
- Mend_delta
- Mis_read_only
- Mis_read_only_for_host
- Mget_formats
- Mget_scene_settings
- Mget_category
- Mset_category
- Mget_mark_categories
- Mget_strip_categories
- Mget_start_frame
- Mget_end_frame
- Mget_working_frame_rate
- Mget_record_timecode_for_frame
- Mget_shot_index_range
- Mget_num_shots
- Mget_shot_id_at
- Mget_shot_id
- Mget_shot_ids
- Mget_shot
- Mdelete_shot
- Minsert_bars
- Minsert_blank
- Minsert_sequence
- Minsert_text
- Mget_num_marks
- Mget_mark_ids
- Mget_mark_ids_in_range
- Mget_mark
- Madd_mark
- Mdelete_mark
- Mget_metadata_definitions
- Madd_metadata_defn
- Mdelete_metadata_defn
- Mget_metadata_property_types
- Mget_metadata_defn_property
- Mset_metadata_defn_property
- Sget_look_names
- Sget_look_infos
- Mset_transient_write_lock_deltas BETA
- Mstereo_combine_shots
- Mset_custom_data
- Mget_custom_data
- Mget_custom_data_keys
Scene.parse_path(str)
Convert the given string into a ScenePath object contaning Host, Job, Scene components, or raise an error if the path is invalid
Arguments
- str str: Path string containing host, job, folder and scene elements
Result
- ScenePath: A ScenePath object containing the elements of the path
Scene.path_to_string(scenepath)
Convert the given ScenePath object into a string
Arguments
- scenepath ScenePath: ScenePath object containing Host, Job, Scene fields
Result
- str: String form of ScenePath
Scene.create()
Create an empty Scene object, which can then be used to create a temporary scene, a new scene, or load an existing scene. After creating an empty Scene object, you must call ::temporary_scene_nonblock::, ::new_scene_nonblock:: or ::open_scene_nonblock::.
Arguments
- No arguments
Result
- Scene: Scene object
Scene.new_scene(scenepath, options)
Create a new scene stored in a database. This function will block until the new scene has been created in the database. If the new scene cannot be created, this function will raise an exception containing an error message.
Arguments
- scenepath ScenePath:
- options NewSceneOptions: Options to use for new scene
Result
Scene.open_scene(scenepath, flags)
Open a scene. This function will block until the scene has been opened. If the scene cannot be opened, this function will raise an exception containing an error message.
Arguments
- scenepath ScenePath: ScenePath identifying scene to open
- flags Optional[Set[OPENFLAG]] Can be None Optional:
- OPENFLAG: Flags to control how scene is opened
Result
Scene.temporary_scene(options)
Create a temporary scene that is not stored in a database. This function will block until the temporary scene has been created. If the temporary scene cannot be created, this function will raise an exception containing an error message.
Arguments
- options NewSceneOptions: Options to use for new scene
Result
new_scene_nonblock(scenepath, options)
Create a new scene
Arguments
- scenepath ScenePath:
- options NewSceneOptions: Options to use for new scene
Result
- No result
open_scene_nonblock(scenepath, flags)
Open a scene
Arguments
- scenepath ScenePath: ScenePath identifying scene to open
- flags Set[OPENFLAG] Can be None:
- OPENFLAG: Flags to control how scene is opened
Result
- No result
temporary_scene_nonblock(options)
Create a temporary scene that is not stored in a database
Arguments
- options NewSceneOptions: Options to use for new scene
Result
- No result
save_scene()
Save changes to scene into database
Arguments
- No arguments
Result
- No result
get_open_status()
wait_until_open()
Wait for any scene opening/creation operations to complete, and return the status
Arguments
- No arguments
Result
close_scene()
Close scene
Arguments
- No arguments
Result
- int: 1 on success, 0 if no scene is open.
get_scene_pathname()
Get current scene's 'pathname' string (typically 'host:job:scene')
Arguments
- No arguments
Result
- str: Scene's pathname string
get_scene_container()
Get the current container for the scene
Arguments
- No arguments
Result
- str: Container path for the scene
set_scene_container(container)
Set the current container for the scene
Arguments
- container str: New container path for the scene
Result
- No result
start_delta(name)
Start a 'delta' on a scene that has been opened read/write. A delta is a set of modifcations/edits on a scene that together constitute a single, logical operation/transaction. Each start_delta call must have a matching end_delta call (with one or more editing operations in between). Every delta has a user visible name (eg. 'Change Film Grade Exposure'). Once a delta has been completed/ended it becomes an atomic, undoable operation.
Arguments
- name str: Name of delta to start
Result
- No result
cancel_delta()
Cancel a 'delta' (a set of scene modifications/edits) previously started via the start_delta() method, reverting the Scene back to the state it was in before start_delta().
Arguments
- No arguments
Result
- No result
end_delta()
End a 'delta' (a set of scene modifications/edits) previously started via the start_delta() method.
Arguments
- No arguments
Result
- No result
is_read_only()
Has this scene interface been opened 'read only'. Interfaces opened read only cannot modify their scene using the standard start_delta, make changes, end_delta paradigm. At any given time, multiple interfaces may reference/open the same scene in read only mode. However, at most only a single interface may reference a scene in read/write mode
Arguments
- No arguments
Result
- int: 1 if the interface is read only, 0 if not (read/write)
is_read_only_for_host()
Is the scene opened 'read only' for the host application. Note: This will be false if any interface has opened the scene in read/write mode (or the host has explicitly opened the scene read/write itself)
Arguments
- No arguments
Result
- int: 1 if the scene is read only for the host, 0 if not
get_formats()
get_scene_settings()
get_category(key)
set_category(name, colour)
Overwrites an existing category in the scene, or adds a new category if a category of that name doesn't exist. Will fail if an attempt is made to overwrite an built-in, read-only category.
Arguments
- name str: User-visible name for this category. This value will also act as the key identifying the category when adding categories to strips and marks.
- colour List[float]: Colour associated with this category
float: RGBA components
Result
- No result
get_mark_categories()
Return array of mark category keys
Arguments
- No arguments
Result
- List[str]: Array of mark category keys
str: Category
get_strip_categories()
Return array of strip category keys
Arguments
- No arguments
Result
- List[str]: Array of strip category keys
str: Category
get_start_frame()
Get frame number of start of first shot in scene
Arguments
- No arguments
Result
- int: Frame number
get_end_frame()
Get frame number of end of last shot in scene
Arguments
- No arguments
Result
- int: Frame number
get_working_frame_rate()
Get the working frame rate of the current scene (in FPS)
Arguments
- No arguments
Result
- float: The scene's frame rate (in FPS).
get_record_timecode_for_frame(frame_num)
Get record timecode for a given (timeline) frame number
Arguments
- frame_num int: Timeline frame number
Result
- Timecode: Record timecode
get_shot_index_range(startFrame, endFrame)
Get index range of shots intersecting the (end exclusive) timeline frame range supplied
Arguments
- startFrame float: timeline frame range start
- endFrame float: timeline frame range end
Result
- ShotIndexRange: shot index range
get_num_shots()
Get number of Shots within scene
Arguments
- No arguments
Result
- int: Number of Shots
get_shot_id_at(frame)
Return the ID of the shot at the timeline frame number supplied
Arguments
- frame int: Timeline frame number
Result
- int: ID of shot at frame, or -1 if none found
get_shot_id(index)
Return the ID for the shot at the given index within the Scene
Arguments
- index int: Index of shot within scene (relative to get_num_shots)
Result
- int: Shot ID
get_shot_ids(firstIndex, lastIndex)
Get an array of shots in the supplied indexed range. Each array entry is an object containing basic information for that shot. Explicitly, each shot entry will contain the following keys:
- ShotId - A shot idenfifier (which can be used to obtain a Shot object via get_shot() if required).
- StartFrame - The shot's timeline start frame
- EndFrame - The shot's timeline end frame
- PosterFrame - The shot's timeline poster frame
Returns new array shot list on success, NULL on error.
Arguments
- firstIndex int Optional: Index of first shot
- lastIndex int Optional: Index of last shot
Result
- List[ShotInfo]: Array of shot info objects
get_shot(shot_id)
Create a new Shot object for the given shot ID
Arguments
- shot_id int: Identifier of shot
Result
- Shot: Shot object
delete_shot(shot_id, cleanup, closeGap)
Delete the given shot and its associated layers from the Scene
Arguments
- shot_id int: ID of Shot to be deleted. Note this is not an index
- cleanup int: Flag indicating whether vertical space left by shot should be reclaimed
- closeGap int: Flag indicating whether horizontal gap left by shot should be closed
Result
- No result
insert_bars(barType, duration, where, relativeTo, barsColourSpace, stackColourSpace)
Insert a Bars strip into the Scene
Arguments
- barType OPERATOR_BARS_TYPE: The type of Bars to insert.
- duration float: Duration for strip in frames
- where INSERT_POSITION: Where in the scene the sequence should be inserted.
- relativeTo Optional[Shot] Can be None Optional: Shot to insert sequence relative to when using INSERT_BEFORE, INSERT_AFTER, INSERT_ABOVE, or INSERT_BELOW
- barsColourSpace Optional[str] Can be None Optional: Name of desired Bars colour space, or NULL
- to use the default Bars colour space for the barType
- stackColourSpace Optional[str] Can be None Optional: Name of desired Stack colour space, or NULL
- to use the default Stack colour space for the barType
Result
- Shot: Shot created by inserting Blank into Scene
insert_blank(red, green, blue, duration, where, relativeTo, colourSpace)
Insert a Blank strip into the Scene
Arguments
- red float: Red component of colour for blank
- green float: Green component of colour for blank
- blue float: Blue component of colour for blank
- duration float: Duration for strip in frames
- where INSERT_POSITION: Where in the scene the sequence should be inserted.
- relativeTo Optional[Shot] Can be None Optional: Shot to insert sequence relative to when using INSERT_BEFORE, INSERT_AFTER, INSERT_ABOVE, or INSERT_BELOW
- colourSpace Optional[str] Can be None Optional: Name of desired output colour space, or NULL
- to use the working colour space
Result
- Shot: Shot created by inserting Blank into Scene
insert_sequence(sequence, where, relativeTo, colourSpace, format, frameRate)
Insert an image/movie sequence into the Scene
Arguments
- sequence SequenceDescriptor: SequenceDescriptor for sequence to insert
- where INSERT_POSITION: Where in the scene the sequence should be inserted.
- relativeTo Optional[Shot] Can be None Optional: Shot to insert sequence relative to when using INSERT_BEFORE, INSERT_AFTER, INSERT_ABOVE, or INSERT_BELOW
- colourSpace Optional[str] Can be None Optional: Input Colour Space to use for sequence. Leave NULL to determine automatically
- format Optional[str] Can be None Optional: Input Format to use for sequence. Leave NULL to use basic format
- frameRate float Optional: Frame rate to use when inserting an image sequence. If omitted, the working frame rate of the scene will be used.
Result
- Shot: Shot created by inserting SequenceDescriptor into Scene
insert_text(text, duration, where, relativeTo, alignment)
Insert a Text strip into the Scene
Arguments
- text str: The text to rendered in the Rop.
- duration float: Duration for strip in frames
- where INSERT_POSITION: Where in the scene the sequence should be inserted
- relativeTo Optional[Shot] Can be None Optional: Shot to insert sequence relative to when using INSERT_BEFORE, INSERT_AFTER, INSERT_ABOVE, or INSERT_BELOW
- alignment ROP_TEXT_ALIGN Can be None Optional: Alignment for the text
Result
- Shot: Shot created by inserting Text into Scene
get_num_marks(type)
Return number of Timeline Marks in Scene
Arguments
- type Optional[str] Can be None Optional: If specified, return number of marks of this type
Result
- int: Number of marks
get_mark_ids(offset, count, type)
Return array of mark ids
Arguments
- offset int Optional: Offset within list of marks to fetch from
- count int Optional: Number of Mark objects to fetch, use -1 to fetch all marks
- type Optional[str] Can be None Optional: If specified, only return marks of this type
Result
- List[int]: Array of Mark IDs
int: Mark ID
get_mark_ids_in_range(startF, endF, type)
Return array of mark ids within the given frame range in the Scene
Arguments
- startF int: Start frame in Scene timeline
- endF int: End frame in Scene timeline (exclusive)
- type Optional[str] Can be None Optional: Mark type/category
Result
- List[int]: Array of Mark IDs
int: Mark ID
get_mark(id)
Return Mark object for the given mark ID
Arguments
- id int: Mark ID
Result
- Mark: Mark object matching the given mark ID
add_mark(frame, category, note)
Add new Mark to the Scene at the given frame number
Arguments
- frame int: Frame number
- category str: Key identifying Mark Category
- note Optional[str] Can be None Optional: Note text for mark
Result
- int: ID of new mark object
delete_mark(id)
Remove Mark object with the given ID
Arguments
- id int: Mark ID
Result
- No result
get_metadata_definitions()
Return array of metadata item definitions
Arguments
- No arguments
Result
- List[MetadataItem]: Array of MetadataItems define metadata types defined in scene
add_metadata_defn(name, type)
Add a new Metadata Item field to the Scene
Arguments
- name str: User-visible name for Metadata Item
- type str: Data type for Metadata Item
Result
- MetadataItem: Definition of new Metadata Item, including internal Key created for it
delete_metadata_defn(key)
Delete a Metadata Item field from the Scene
Arguments
- key str: Key identifying metadata item to delete
Result
- No result
get_metadata_property_types()
Return list of properties that can be defined for each MetadataItem
Arguments
- No arguments
Result
- List[MetadataProperty]: Array of MetadataProperty objects
get_metadata_defn_property(key, property)
Set the value for the given property for the given metadata item key
Arguments
- key str: Key identifying metadata item to modify
- property str: Key identifying which property of the metadata item to get
Result
- str: Current value for metadata item property
set_metadata_defn_property(key, property, value)
Set the value for the given property for the given metadata item key
Arguments
- key str: Key identifying metadata item to modify
- property str: Key identifying which property of the metadata item to set
- value str: New property value
Result
- No result
Scene.get_look_names()
Return names of available Looks
Arguments
- No arguments
Result
- List[str]: Array of names of looks
str: Look name
Scene.get_look_infos()
Get an array of available Looks. Each array entry is a LookInfo object containing the Name and Group for each Look. Explicitly, each entry will contain the following keys:
- Name - The name of the look. This is unique and used as an identifier
- Group - The look group for the look
Returns new array of LookInfo objects on success, NULL on error.
Arguments
- No arguments
Result
- List[LookInfo]: Array of shot info objects
set_transient_write_lock_deltas(enable) BETA
Use to enable (or disable) creation of deltas in a scene where FLAPI does not have the write lock. In particular, this is needed for FLAPI scripts running inside the main application that wish to modify the current scene.
When you open such a delta, you are preventing anything else from being able to make normal scene modifications. You should therefore ensure you hold it open for as short a time as possible. Note also that you should not disable transient deltas while a transient delta is in progress.
Arguments
- enable int: If non-zero, creation of deltas when FLAPI does not have the write lock will be enabled
Result
- No result
stereo_combine_shots(shots)
Takes a list of shots to combine into stereo stacks, the shots should have an opposite eye above it. The scene must be a stereo scene and a delta should be started before the call.
Arguments
- shots List[Shot]: Shot to stereo combine, bottom one only
Shot:
Result
- No result
set_custom_data(data_key, data_value)
Set a custom data value in the scene with the supplied (string) key. Setting a custom data value does not require a delta. Also custom data values are unaffected by undo/redo. Existing custom data values can be deleted from a scene by supplying NULL/None/null as the data value (for an existing key).
Arguments
- data_key str: Custom data value key
- data_value any Can be None: New data value for the given key (or NULL/None/null to delete)
Result
- No result
get_custom_data(data_key)
Get a custom data value from the scene previously set using set_custom_data.
Arguments
- data_key str: Custom data value key
Result
- any: Custom data value found
get_custom_data_keys()
Return sorted array of (string) keys that can be used to fetch scene custom data values via get_custom_data.
Arguments
- No arguments
Result
- List[str]:
str: Key string
SceneSettings
This class provides an interface to get/set scene settings, which affect all Shots in a Scene.
Signals
- No Signals
Properties
These properties names can be used as keys with the get() and set() methods to read or modify scene settings.
- WorkingFormat str — Working format of scene
- WorkingFrameRate float — Working frame rate of scene
- WorkingFieldOrder FIELDORDER — Working field order
- WorkingColourSpace str — Name of Working colour space of scene
- GradeResultColourSpace str — Name of Grade Result colour space
- InputColourSpace str — Default Input Colour Space for sequences inserted into this scene
- InputColourSpacePreferAutomatic int — Flag indicating input colour space should be determined automatically from image metadata
- DisplayRenderingTransform str — Name of Display Rendering Transform used for this scene
- ApplyInverseDRTs int — Flag indicating whether inverse Display Rendering Transform should be used for Display Referred->Scene Referred colour space conversions
- MasteringColourSpace str — Name of Mastering Colour Space or "None" (No Mastering Colour Space), "Input" (Unclipped; Only Map White Point) or "Auto" (Automatic From DRT)
- MasteringOperation MASTERING_OPERATION — Mastering Operation to perform
- MasteringWhitePoint MASTERING_WHITE_POINT — Name of Mastering White Point
- StereoMode STEREO_MODE — Stereoscopic Mode
- TimelineCaching TIMELINE_CACHING_MODE — Timeline Caching mode
- HDRClipBehaviour HDR_CLIPPING_BEHAVIOUR — HDR Clip behaviour for values below 0.0 and above 1.0
- StartTimecode Timecode
- StartKeycode Keycode
- KeycodeGearing str
- DolbyVisionMode DOLBY_VISION_MODE — Dolby Vision Mode
- DolbyVisionMasteringDisplay str
- AutoProxySourceResolution str
- TemporalSamplingMode SEQRESAMPLE_MODE — Mode to use when resampling image sequences of a different frame rate to the working frame rate
- OpticalFlowQuality OPTICALFLOW_QUALITY — Quality of optical flow interpolation
- OpticalFlowSmoothing OPTICALFLOW_SMOOTHING — Smoothing factor for optical flow interpolation
- AutoUpdateFormats int — Flag indicating that formats in this scene should update automatically when global/job formats are changed
- ImageTransformMode IMAGETRANSFORM_MODE — Image Transform Resampling Mode
- ImageTransformSharpness float
- ImageTransformSpace int — Flag indicating whether image transforms are performed in linear or native space
- ImageTransformClampNegative int — Flag indicating whether negative values are clipped as part of image transform
- CAT CAT_MODE — Chromatic Adaptation Transform
Methods
get_setting_keys()
Return array of keys that can be used to get/set Scene Settings parameters
Arguments
- No arguments
Result
- List[str]:
str: Key string
get_setting_definition(key)
Return SceneSettings parameter type definition for the given key
Arguments
- key str: Key for SceneSettings parameter
Result
get(keys)
Return values for given SceneSettings keys
Arguments
- keys List[str]: Array of keys
str: Key for parameter
Result
- Dict:
get_single(key)
Return value for given SceneSettings key
Arguments
- key str: SceneSettings Key for value wanted
Result
- any:
set(values)
Set values for the given SceneSettings keys
Arguments
- values Dict: A dictionary containing new values for the given SceneSettings keys
Result
- No result
set_single(key, value)
Set value for the given SceneSettings key
Arguments
- key str: SceneSettings key for value to set
- value any Can be None: New value for the given SceneSettings key
Result
- No result
SequenceDescriptor
A SequenceDescriptor represents a movie file (e.g. /vol/bl000-images/myjob/media/A001_C001_00000A_001.R3D) or a sequence of image files (e.g. /vol/bl000-images/myjob/renders/day1_%.7F.exr) on disk.
It has a frame range (which does not have to cover the full length of the media on disk) and associated metadata.
Audio-only media (e.g. OpAtom MXF audio, or .wav files) is also described using a SequenceDescriptor.
Signals
- No Signals
Methods
- Sget_for_template
- Sget_for_template_with_timecode
- Sget_for_file
- Mget_start_frame
- Mget_end_frame
- Mget_start_timecode
- Mget_end_timecode
- Mget_start_keycode
- Mget_end_keycode
- Mget_start_handle
- Mget_end_handle
- Mget_width
- Mget_height
- Mget_pixel_aspect_ratio
- Mget_path
- Mget_name
- Mget_ext
- Mget_prefix
- Mget_postfix
- Mget_format_len
- Mget_base_filename_with_F
- Mget_base_filename_with_d
- Mget_full_filename_with_F
- Mget_full_filename_with_d
- Mget_base_filename
- Mget_filename_for_frame
- Mget_channels
- Mget_tape
- Mget_metadata
- Mis_movie
- Mget_movie_fps
- Mhas_blg
- Mis_blg
- Mhas_audio
- Mget_audio_channels
- Mget_audio_sample_rate
- Mget_audio_length_in_samples
- Mtrim_movie
SequenceDescriptor.get_for_template(template, start, end)
Search the filesystem and return zero or more SequenceDescriptors which match the given filename template (e.g. "/vol/images/A001B002.mov" or "/vol/san/folder/%.6F.dpx", and optionally intersecting the given start and end frame numbers.
Arguments
- template str: Path to the file, using FilmLight %.#F syntax for frame numbering
- start Optional[int] Can be None Optional: Start frame number
- end Optional[int] Can be None Optional: End frame number (inclusive)
Result
- List[SequenceDescriptor]: Array of SequenceDescriptor objects
SequenceDescriptor.get_for_template_with_timecode(template, startTC, endTC)
Search the filesystem and return zero or more SequenceDescriptors which match the given filename template (e.g. "/vol/images/A001B002.mov" or "/vol/san/folder/%.6F.dpx", and optionally intersecting the given start and end timecodes.
Arguments
- template str: Path to the file, using FilmLight %.#F syntax for frame numbering
- startTC Optional[Timecode] Can be None Optional: Start timecode
- endTC Optional[Timecode] Can be None Optional: End timecode (inclusive)
Result
- List[SequenceDescriptor]: Array of SequenceDescriptor objects
SequenceDescriptor.get_for_file(filepath)
Create a SequenceDescriptor for a single file
Arguments
- filepath str: Path to file
Result
- SequenceDescriptor: SequenceDescriptor for given path
get_start_frame()
Return the first frame number, which does not necessarily correspond with the first frame of the files on disk.
Arguments
- No arguments
Result
- int: Frame number
get_end_frame()
Return the last frame number, which does not necessarily correspond with the last frame of the files on disk.
Arguments
- No arguments
Result
- int: Frame number
get_start_timecode(index)
Return the timecode at the first frame of the sequence. Some media can support two timecode tracks, so you must specify which one you want (0 or 1).
Arguments
- index int: Index of timecode track
Result
- Timecode: Start timecode
get_end_timecode(index)
Return the timecode at the last frame of the sequence. Some media can support two timecode tracks, so you must specify which one you want (0 or 1).
Arguments
- index int: Index of timecode track
Result
- Timecode: End timecode
get_start_keycode()
Return the keycode at the first frame of the sequence.
Arguments
- No arguments
Result
- Keycode: Start keycode
get_end_keycode()
Return the keycode at the last frame of the sequence.
Arguments
- No arguments
Result
- Keycode: End keycode
get_start_handle()
Return the first frame number on disk (0 for movie files).
Arguments
- No arguments
Result
- int: Frame number
get_end_handle()
Return the last frame number on disk (inclusive).
Arguments
- No arguments
Result
- int: Frame number
get_width()
Return the width (in pixels) of the images in this sequence. Returns 0 for audio-only media.
Arguments
- No arguments
Result
- int: Width
get_height()
Return the height (in pixels) of the images in this sequence. Returns 0 for audio-only media.
Arguments
- No arguments
Result
- int: Height
get_pixel_aspect_ratio()
Return the pixel aspect ratio (width/height) of the images in this sequence. Returns 1.0 if unknown.
Arguments
- No arguments
Result
- float: Aspect ratio
get_path()
Return the path to the folder containing this sequence.
Arguments
- No arguments
Result
- str: Folder path
get_name()
Return the filename (for a movie) or the filename template (for an image sequence, using FilmLight %.#F syntax for frame numbering), excluding the folder path.
Arguments
- No arguments
Result
- str: Name of sequence
get_ext()
Return the filename extension (including the leading '.') for this sequence.
Arguments
- No arguments
Result
- str: Extension
get_prefix()
Return filename prefix before numeric component
Arguments
- No arguments
Result
- str: Prefix
get_postfix()
Return filename postfix after numeric component
Arguments
- No arguments
Result
- str: Postfix
get_format_len()
Return number of digits in numerical component of filename
Arguments
- No arguments
Result
- int: Number of digits
get_base_filename_with_F()
Return filename (without path) using FilmLight %.#F syntax for the frame number pattern
Arguments
- No arguments
Result
- str: Filename template
get_base_filename_with_d()
Return filename (without path) using printf %0#d syntax for the frame number pattern
Arguments
- No arguments
Result
- str: Filename template
get_full_filename_with_F()
Return filename (with path) using FilmLight %.#F syntax for the frame number pattern
Arguments
- No arguments
Result
- str: Filename
get_full_filename_with_d()
Return filename (with path) using printf %0#d syntax for the frame number pattern
Arguments
- No arguments
Result
- str: Filename
get_base_filename(frame)
Return filename (without path) for the given frame number
Arguments
- frame int: Frame number
Result
- str: Filename
get_filename_for_frame(frame)
Return filename (with path) for the given frame number
Arguments
- frame int: Frame number
Result
- str: Filename
get_channels()
Get channel names. Intended for OpenEXR media only; other media will return an empty array.
Arguments
- No arguments
Result
- List[str]: Array of channel names
str: Channel name
get_tape(index)
Return the tape name. Some media can support two tracks, so you must specify which one you want (0 or 1).
Arguments
- index int: Index of timecode track
Result
- str: Tape name
get_metadata()
Return the metadata read when the sequence was scanned on disk, in human-readable form.
Arguments
- No arguments
Result
- Dict: Metadata
is_movie()
Return whether sequence is a movie file
Arguments
- No arguments
Result
- int: Flag
get_movie_fps()
Return the frame rate of a movie file
Arguments
- No arguments
Result
- float: Frame Rate
has_blg()
Return whether sequence has BLG (Baselight Linked Grade) information
Arguments
- No arguments
Result
- int: Flag
is_blg()
Return whether sequence is a BLG (Baselight Linked Grade)
Arguments
- No arguments
Result
- int: Flag
has_audio()
Return whether movie file has audio
Arguments
- No arguments
Result
- int: Flag
get_audio_channels()
Return number of audio channels in movie
Arguments
- No arguments
Result
- int: Number of channels
get_audio_sample_rate()
Return audio sample rate (in Hz)
Arguments
- No arguments
Result
- int: Sample rate
get_audio_length_in_samples()
Return total number of audio samples in file
Arguments
- No arguments
Result
- int: Length
trim_movie(output, start, length)
Create (if possible) a trimmed copy of the movie specified by this descriptor
Arguments
- output str: Output movie file name
- start int: Start frame of output movie
- length int: Number of frames to write to output movie
Result
- No result
Shot
A shot in Baselight is a set of strips comprising a top strip (typically containing a Sequence operator referencing input media) and the strips lying directly underneath it. These strips apply image-processing and other operations to the top strip.
Signals
- No Signals
Methods
- Mis_valid
- Mget_scene
- Mget_id
- Mget_start_frame
- Mget_end_frame
- Mget_poster_frame
- Mget_start_timecode
- Mget_end_timecode
- Mget_timecode_at_frame
- Mget_src_start_frame
- Mget_src_end_frame
- Mget_src_start_timecode
- Mget_src_end_timecode
- Mget_src_timecode_at_frame
- Mget_src_start_keycode
- Mget_src_end_keycode
- Mget_input_colour_space
- Mset_input_colour_space
- Minput_colour_space_derived_from_media
- Maces_idt_for_input_colour_space
- Mset_stack_colour_space
- Mget_actual_input_colour_space
- Mget_input_format
- Mset_input_format
- Mget_input_video_lut
- Mset_input_video_lut
- Mget_input_orientation
- Mset_input_orientation
- Mget_frame_rate
- Mget_metadata
- Mget_metadata_strings
- Mset_metadata
- Mget_sequence_descriptor
- Msupports_client_event_data
- Mget_client_event_list
- Madd_client_note
- Madd_client_flag
- Mdelete_client_event
- Mset_client_event_metadata
- Mget_client_event_metadata
- Mdelete_client_event_metadata
- Mget_client_event_list_frames
- Mdelete_frame_client_event_list
- Mget_client_data_summary
- Mget_num_marks
- Mget_mark_ids
- Mget_mark
- Madd_mark
- Mdelete_mark
- Mget_categories
- Mset_categories
- Minsert_blg_stack
- Mget_blg_payload
- Mapply_blg_payload
- Mget_blg_resources
- Sget_amf_output_colour_space
- Minsert_amf_stack
- Mset_input_format_from_fdl
- Mcreate_format_from_fdl_canvas_template
- Mget_fdl
- Minsert_basegrade_layer
- Minsert_cdl_layer
- Minsert_cdl_layer_above
- Minsert_look_layer
- Minsert_truelight_layer
- Minsert_shape_layer_from_svg
- Minsert_colour_space_layer
- Minsert_lut_layer
- Mdelete_all_layers
- Mget_codec
- Sget_decode_parameter_types
- Sget_decode_parameter_type_for_codec
- Sget_decode_parameter_definitions
- Mget_decode_parameters
- Mset_decode_parameters
- Mget_audio_settings
- Mset_audio_settings
- Mget_matte_references
- Mupdate_matte_references
is_valid()
Called to determine if the shot object references a valid top strip an open scene. A shot object may become invalid in a couple of ways:
- The scene which it is in is closed.
- The shot's top strip is removed from the scene's timeline.
Arguments
- No arguments
Result
- int: 1 if this shot interface is valid, 0 if not.
get_scene()
Get the scene object which this shot is a part of.
Arguments
- No arguments
Result
- Scene: The shot's scene.
get_id()
Get the shot's identifier, an integer which uniquely identifies the shot within the timeline. The id is persistent, remaining constant even if the scene containing the shot is closed and reopened.
Arguments
- No arguments
Result
- int: The shot's unique identifier.
get_start_frame()
Get the start frame of the shot within the scene which contains it. Because the time extent of a shot is actually defined by the shot's top strip, the start frame is actually the start frame of the top strip.
Arguments
- No arguments
Result
- float: Start frame of the shot (inclusive).
get_end_frame()
Get the end frame of the shot within the scene which contains it. Because the time extent of a shot is defined by the shot's top strip, the end frame is actually the end frame of the top strip. In Baselight, shot extents are defined in floating-point frames and are start-inclusive and end-exclusive. This means that the shot goes all the way up to the beginning of the end frame, but doesn't include it.
So a 5-frame shot starting at frame 100.0 would have an end frame 105.0 and 104.75, 104.9 and 104.99999 would all lie within the shot.
Arguments
- No arguments
Result
- float: End frame of the shot (exclusive).
get_poster_frame()
Get the poster frame of the shot within the scene that contains it.
Arguments
- No arguments
Result
- float: Poster frame number of the shot.
get_start_timecode()
Get the start record timecode of the shot
Arguments
- No arguments
Result
- Timecode: Start record timecode of the shot
get_end_timecode()
Get the end record timecode of the shot
Arguments
- No arguments
Result
- Timecode: End record timecode of the shot (exclusive)
get_timecode_at_frame(frame)
Get the record timecode at the given frame within the shot
Arguments
- frame int: Frame relative to start of shot
Result
- Timecode: Record timecode for frame
get_src_start_frame()
Return start frame number within source sequence/movie
Arguments
- No arguments
Result
- int: Frame number
get_src_end_frame()
Return end frame number within source sequence/movie (exclusive)
Arguments
- No arguments
Result
- int: Frame number
get_src_start_timecode()
Return start timecode within source sequence/movie
Arguments
- No arguments
Result
- Timecode: Start source timecode
get_src_end_timecode()
Return end timecode within source sequence/movie (exclusive)
Arguments
- No arguments
Result
- Timecode: End source timecode
get_src_timecode_at_frame(frame)
Return source timecode at the given frame within the shot
Arguments
- frame int: Frame number relative to start of shot
Result
- Timecode: Timecode for given frame
get_src_start_keycode()
Return start keycode within source sequence/movie
Arguments
- No arguments
Result
- Keycode: Start source keycode
get_src_end_keycode()
Return end keycode within source sequence/movie (exclusive)
Arguments
- No arguments
Result
- Keycode: End source keycode
get_input_colour_space(eye)
Return the input colour space defined for this shot. Can be 'None', indicating no specific colour space defined. For RAW codecs, this may be 'Auto' indicating that the input colour space will be determined by the SDK used to decode to the image data. In either case the actual input colour space can be determined by call get_actual_input_colour_space().
Arguments
- eye STEREO_EYE Optional: Find input colour space for the given eye in a stereo sequence
Result
- str: Colour space name, or 'Auto'
set_input_colour_space(name, eye)
Set the input colour space
Arguments
- name str: Input colour space name, or 'Auto'
- eye STEREO_EYE Optional: Input colour space for the given eye in a stereo sequence
Result
- No result
input_colour_space_derived_from_media(eye)
Return whether or not the shot's input colour space was derived from the media file's inate properties or metadata. If 1 is returned, this indicates a high degree of confidence that the shot's colour space journey is correct.
Arguments
- eye STEREO_EYE Optional: eye to use in a stereo sequence
Result
- int: 1 if the input colour space was derived from the media itself, otherwise 0.
aces_idt_for_input_colour_space(eye, aces_version)
Returns the name of the ACES IDT transform which is equivalent to the current input colour space. This IDT transform converts to ACES AP0
Arguments
- eye STEREO_EYE Optional: eye to use in a stereo sequence
- aces_version str Optional: ACES version string ("1.0" or "2.0")
Result
- str: Name of ACES IDT transform or NULL/None/null if no equivalent IDT exists.
set_stack_colour_space(name, eye)
Set the stack colour space
Arguments
- name str: Stack colour space name, or 'Auto' to use the scene's working space, or 'None' to use the sequence's input colour space.
- eye STEREO_EYE Optional: Stack colour space for the given eye in a stereo sequence
Result
- No result
get_actual_input_colour_space(eye)
Return the input colour space for this shot. If the input colour space is set to 'Auto', the actual colour space name will be returned.
Arguments
- eye STEREO_EYE Optional: Input colour space for the given eye in a stereo sequence
Result
- str: Colour space name
get_input_format(eye)
Return the input format name for this shot
Arguments
- eye STEREO_EYE Optional: Input colour space for the given eye in a stereo sequence
Result
- str: Format name
set_input_format(name, eye)
Set the input format name for this shot
Arguments
- name str: Format name
- eye STEREO_EYE Optional: Input colour space for the given eye in a stereo sequence
Result
- No result
get_input_video_lut(eye)
Return the input video lut value for this shot
Arguments
- eye STEREO_EYE Optional: Input video LUT for the given eye in a stereo sequence
Result
- VIDEOLUT: Input Video LUT (either VIDEOLUT_NONE or VIDEOLUT_UNSCALE) or NULL/None/null if an input video LUT is inappropriate for the shot's current media type and input colour space settings (indicated by the "Legal to Full Scale" button not being present in the Baselight Sequence operator UI.
set_input_video_lut(video_lut, eye)
Set the input video LUT for this shot
Arguments
- video_lut VIDEOLUT: Video LUT to be applied to the input sequence. The only permitted values for this method are VIDEOLUT_UNSCALE and VIDEOLUT_NONE.
- eye STEREO_EYE Optional: Input video LUT for the given eye in a stereo sequence
Result
- No result
get_input_orientation(eye)
Return the orientation transform for the input sequence
Arguments
- eye STEREO_EYE Optional: Input orientation for the given eye in a stereo sequence
Result
set_input_orientation(orientation, eye)
Set the orientation transform for the input sequence
Arguments
- orientation AFFINE_TYPE
- eye STEREO_EYE Optional: Input orientation for the given eye in a stereo sequence
Result
- No result
get_frame_rate()
Return the frame rate of the Sequence for this shot
Arguments
- No arguments
Result
- float: Frame rate
get_metadata(md_keys)
Get metadata values for the keys provided. The possible keys and the value type for each key are obtained using the Scene.get_metadata_definitions method.
Arguments
- md_keys Set[Any]: Set of metadata keys whose values are required.
Result
- Dict: Key/value pairs containing the metadata obtained.
get_metadata_strings(md_keys)
Get metadata values expressed as strings for the keys provided. The possible keys are obtained using the Scene.get_metadata_definitions method.
Arguments
- md_keys Set[Any]: Set of metadata keys whose values are required.
Result
- Dict: Key/value pairs containing the metadata obtained. All the values will have been converted to strings.
set_metadata(metadata)
Set metadata values for the keys provided. The possible keys and the value type for each key are obtained using the Scene.get_metadata_definitions method.
Arguments
- metadata Dict: Key/value pairs of metadata to assign in the shot.
Result
- No result
get_sequence_descriptor()
Get a SequenceDescriptor object that represents the input media for this shot.
Arguments
- No arguments
Result
- SequenceDescriptor: Object containing information about the shot's input media.
supports_client_event_data()
Does this shot support client event lists/data.
Arguments
- No arguments
Result
- int: 1 if the shot supports client event data, otherwise 0.
get_client_event_list(list_frame)
Get array of client events (notes/flags) for either an entire shot, or a specific frame of a shot. When querying the event list at a specific frame, NULL/None/null will be returned if no event list exists at that frame or the shot. The events array returned will be chronologically sorted (oldest first). Each event entry is itself a dictionary describing that event.
Arguments
- list_frame Optional[int] Can be None Optional: Identifies which event list to return; either for the entire shot (if no list_frame supplied), or for a specific, shot start relative frame number
Result
- List[Dict]: Array of client events for the shot.
Dict: Client event entry. - ClientName str: The name of the client that added the entry.
- EventId int: Identifier used to modify/delete this event.
- EventType str: The event type. Currently either "Note" or "Flag".
- NoteText str Can be None: Only valid when "EventType" value is "Note". The note text.
- RelativeTimeString str: Time the entry was created as a formatted as a user friendly string (eg. "Tuesday 17:25").
- Source str: Source of the event. Either "FLAPI" if event was added from an external source, or "Application" if added from the Filmlight host application.
- Time int: Time the entry was created (in seconds since 1/1/70 UTC).
add_client_note(client_name, note_text, event_list_frame)
Add a client note to either the client event list for an entire shot, or to the client event list at a specific frame number.
Arguments
- client_name str: Name of client adding the note.
- note_text str: Note text.
- event_list_frame Optional[int] Can be None Optional: Client event list frame number, or NULL/None/null for the entire shot's client event list
Result
- int: Event identifier which can be used to edit/delete the note later.
add_client_flag(client_name, event_list_frame)
Add a new client flag entry to either the client event list for an entire shot, or to the client event list at a specific frame number. A client event list only supports a single flag event for a given client name; If one already exists, a call to this method will replace it with a new one.
Arguments
- client_name str: Name of client flagging the shot.
- event_list_frame Optional[int] Can be None Optional: Client event list frame number, or NULL/None/null for the entire shot's client event list
Result
- int: Event identifier which can be used to remove the flag later.
delete_client_event(event_id)
Delete the (note or flag) event with the supplied id from the shot's client event list.
Arguments
- event_id str: Event list identifier of event to delete.
Result
- int: 1 on success, 0 if no event found.
set_client_event_metadata(client_event_id, metadata)
Set custom metadata key/value pairs for the client event with the supplied ID.
Arguments
- client_event_id int: ID of client event
- metadata Dict: Key/value pairs containing the metadata for the client event.
Result
- No result
get_client_event_metadata(client_event_id, md_keys)
Get custom metadata key/value pairs for the client event with the supplied ID.
Arguments
- client_event_id int: ID of client event
- md_keys Optional[Set[Any]] Can be None Optional: Set of metadata keys whose values are required, or NULL/None/null for all metadata.
Result
- Dict: Key/value pairs containing the metadata for the client event.
delete_client_event_metadata(client_event_id, metadata_key)
Delete a single metadata key/value item from the client event with the supplied ID.
Arguments
- client_event_id int: ID of client event
- metadata_key any: Key of metadata item to remove from client event.
Result
- No result
get_client_event_list_frames()
Get array of (shot start relative) frame numbers of frames with client event lists
Arguments
- No arguments
Result
- List[int]: Array of frames with client event lists
int: frame number
delete_frame_client_event_list(list_frame)
Delete the entire client event list at the given shot frame (if any).
Arguments
- list_frame int: Frame number of frame containing the event list
Result
- No result
get_client_data_summary()
Get summary info on any client data associated with this shot.
Arguments
- No arguments
Result
- Dict: Client summary info
- Clients Dict: Dictionary containing client name keys/entries for all clients who have added data to this shot. The value associated with each key is a set containing all the types of data that client has added ("Note" and/or "Flag").
get_num_marks(type)
Get number of marks within shot. If type is supplied, only return number of marks of the given type
Arguments
- type str: Mark type
Result
- int: Number of marks
get_mark_ids(offset, count, type, eye)
Get shot mark ids within the shot. Shot marks are marks which are attached to the shot's top strip. If type is specified, only return marks of matching type.
Arguments
- offset int Optional: Offset into array of marks
- count int Optional: Number of marks to fetch, pass -1 to fetch all
- type Optional[str] Can be None Optional: Mark type, which is a category name. Only shot marks of this type will be returned. If not provided, all marks within the shot will be returned. Possible categories for marks can be obtained using the Scene.get_mark_categories method.
- eye STEREO_EYE Optional: Which eye to get marks for stereo sequence
Result
- List[int]: Array of Mark IDs
int: Mark ID
get_mark(id)
add_mark(frame, category, note, eye)
Add new Mark to the shot at the given source frame
Arguments
- frame int: Source frame number
- category str: Mark category
- note Optional[str] Can be None Optional: Mark note text
- eye STEREO_EYE Optional: Which eye to add mark for in stereo sequence
Result
- int: Mark ID
delete_mark(id, eye)
Delete the Mark object with the given mark ID
Arguments
- id int: Mark ID
- eye STEREO_EYE Optional: Which eye to delete mark for in stereo sequence
Result
- No result
get_categories()
Get the set of categories assigned to this shot.
Arguments
- No arguments
Result
- Set[str]: Set of category keys. The Scene.get_category method can be used to obtain information (such as the UI colour and user-readable name) about a given category key.
set_categories(categories)
Set the categories assigned to this shot
Arguments
- categories Set[str]: Set of category keys to be assigned to the shot.
Result
- No result
insert_blg_stack(blg_path)
Insert a BLG stack at the bottom of the shot.
Arguments
- blg_path str: Path to the BLG to be applied to the shot.
Result
- No result
get_blg_payload()
Returns the BLG payload for this shot.
Arguments
- No arguments
Result
- str: String containing the payload.
apply_blg_payload(blg_payload, blg_resources)
Insert a BLG stack at the bottom of the shot.
Arguments
- blg_payload str: A BLG payload as returned by get_blg_payload().
- blg_resources str: BLG resources as returned by get_blg_resources().
Result
- No result
get_blg_resources()
Returns the BLG resources for this shot.
Arguments
- No arguments
Result
- str: String containing the resources.
Shot.get_amf_output_colour_space(amf_path)
Static utility method used to obtain the equivalent Truelight Colour Space name for the aces:outputTransform of the AMF.
Arguments
- amf_path str: Path to the AMF whose output colour space is required.
Result
- str: Output colour space name
insert_amf_stack(amf_path, settings)
Insert a AMF stack at the bottom of the shot.
Arguments
- amf_path str: Path to the AMF to be applied to the shot.
- settings AMFInsertSettings:
Result
- str: String containing information and warnings about progress of the insertion.
set_input_format_from_fdl(fdl_obj, options, eye)
Apply an ASC Framing Decision List (FDL) to specify the input format for this Shot. If no context, canvas or framing decision IDs are specified, the first FDL Canvas which matches the sequence resolution will be used.
If no matching canvas is found, this method will return NULL.
If an existing format is found that matches the FDL Canvas, that format will be used.
Arguments
- fdl_obj FDL: FDL object containing FDL canvas
- options ShotSetInputFormatFromFDLOptions: Options for applying FDL Canvas as input format
- eye STEREO_EYE Optional: Which stereo eye to apply input format for
Result
- str: Name of format created, or NULL if no matching canvas was found
create_format_from_fdl_canvas_template(fdl_obj, canvas_template_id, format_name, context_name, canvas_name, eye)
Apply an ASC Framing Decision List (FDL) Canvas Template to create a new format. This format can be used to create a deliverable from the input format.
Arguments
- fdl_obj FDL: Source FDL
- canvas_template_id Optional[str] Can be None Optional: ID of canvas template to use. If not specified, first canvas template in the FDL will be used.
- format_name Optional[str] Can be None Optional: Name to use for resulting format
- context_name Optional[str] Can be None Optional: Name to use for new FDL context
- canvas_name Optional[str] Can be None Optional: Name to use for new FDL canvas
- eye STEREO_EYE Optional: Which stereo eye to apply input format for
Result
- str: Name of new format
get_fdl(output_format_name, eye)
Get the FDL representing the framing decisions in this shot
Arguments
- output_format_name Optional[str] Can be None Optional: Include the given output format in the FDL
- eye STEREO_EYE Optional: Which stereo eye to apply input format for
Result
- FDL:
insert_basegrade_layer(values)
Insert a BaseGrade layer at the bottom of the stack.
Arguments
- values Dict: A dictionary containing new values for the given
- BaseGrade parameters. Valid keys are
- BalanceExposure, BalanceA, BalanceB,
- Flare,
- Saturation,
- Contrast,
- LightExposure, LightA, LightB,
- DimExposure, DimA, DimB,
- BrightExposure, BrightA, BrightB,
- DarkExposure, DarkA, DarkB,
- ContrastPivot,
- LightPivot, LightFalloff,
- DimPivot, DimFalloff,
- BrightPivot, BrightFalloff,
- DarkPivot, DarkFalloff,
- LightSaturation,
- DimSaturation,
- BrightSaturation,
- DarkSaturation
Result
- No result
insert_cdl_layer(cdl_values)
Insert a CDLGrade layer at the bottom of the shot.
Arguments
- cdl_values List[float]: CDL values (Slope R, Slope G, Slope B, Offset R, Offset G, Offset B, Power R, Power G, Power B, Saturation).
float:
Result
- No result
insert_cdl_layer_above(cdl_values)
Insert a CDLGrade layer at the top of the shot.
Arguments
- cdl_values List[float]: CDL values (Slope R, Slope G, Slope B, Offset R, Offset G, Offset B, Power R, Power G, Power B, Saturation).
float:
Result
- No result
insert_look_layer(look_name)
Insert a Look kayer at the bottom of the shot.
Arguments
- look_name str: Name of the Look to be inserted.
Result
- No result
insert_truelight_layer(lut_path)
Insert a Truelight layer at the bottom of the shot. The Truelight operator is used for applying 1D and 3D LUTs to an image.
Arguments
- lut_path str: Path to the LUT file to be set in the newly created Truelight operator.
Result
- No result
insert_shape_layer_from_svg(svg_path, fit_mode, mask_format, mask_name)
Insert a layer with a shape strip populated from an SVG file at the bottom of the shot.
Arguments
- svg_path str: Path to the SVG file used to populate the layer's shape strip.
- fit_mode SVGFITMODE: Controls how an SVG is transformed/fitted into the shape strip.
- mask_format str Optional: Fit to this format and mask (supplied in 'mask_name' parameter). If set, the SVG will be transformed/fitted to this format's mask area mapped to the working format area. If none supplied, the SVG will be transformed/fitted to the entire working format area.
- mask_name str Optional: Mask name (from the 'mask_format'). This may be used to further constrain fitting of the SVG to the working format area (see above).
Result
- No result
insert_colour_space_layer(toColourSpace, drt, identify)
Insert a ColourSpace operator at the bottom of the stack for this shot
Arguments
- toColourSpace str: Name of Output Colour Space
- drt str Optional: Name of DRT to use when converting between scene-referred and display-referred colour spaces.
- Default is 'scene' which uses Scene's current Display Render Transform.
- identify int Optional: Set to 1 to indicate the Colour Space operator is being used to tag/identify the colour space at this point in the stack, without any colour conversions.
- This would be applicable when using the Colour Space operator after a Truelight operator.
Result
- No result
insert_lut_layer(location, file, inputColourSpace, outputColourSpace, inputLegalRange, outputLegalRange, tetrahedral)
Insert a LUT operator at the bottom of the stack for this shot
Arguments
- location LUT_LOCATION: Specify where LUT data is stored.
- file str Can be None: Path to LUT file. You can use %C/ to use a path relative to the Scene's container.
- inputColourSpace str: Name of Input Colour Space for this LUT. Can be 'Input' to use the input colour space of the Shot, or 'Auto' to use the working colour space of the Scene.
- outputColourSpace str: Name of Output Colour Space for this LUT. Can be 'Auto' to use the LUT input colour space.
- inputLegalRange int Optional: Flag indicating that input to LUT is expected to be video-legal range. Defaults to 0 to indicate full-range.
- outputLegalRange int Optional: Flag indicating that output of LUT is video-legal range. Defaults to 0 to indicate full-range.
- tetrahedral int Optional: Flag indicating that high-quality tetrahedral interpolation should be used.
Result
- No result
delete_all_layers()
Remove all layers from the shot.
Arguments
- No arguments
Result
- No result
get_codec()
Method to obtain the codec of the input media of the shot.
Arguments
- No arguments
Result
- str: A short string containing the codec name, or NULL if the codec couldn't be determined.
Shot.get_decode_parameter_types()
Return list of supported decode parameter codec keys
Arguments
- No arguments
Result
- List[str]: Array of supported decode parameter codec keys
str: Decode Parameter codec key
Shot.get_decode_parameter_type_for_codec(codec)
Return the key identifying the decode parameters type to use for the given video codec
Arguments
- codec str: Name of codec
Result
- str: Decode Parameter type key
Shot.get_decode_parameter_definitions(decode_type)
Static method called to obtain the image decode parameter definitions for a given codec. The decode parameters are used to control how an RGBA image is generated from RAW formats like ARRIRAW, R3D etc.
This method returns an array of image decode parameter definitions for a given decode parameter type, one per parameter. Each parameter definition is a collection of key/value pairs, with different entries dependent on the type of parameter.
Arguments
- decode_type str: Type of decode parameter definitions to be obtained
Result
- List[DecodeParameterDefinition]: An array containing parameter definitions as defined above.
get_decode_parameters()
This method returns the image decode parameters for the shot.
Arguments
- No arguments
Result
- Dict: Key/value pairs containing the current decode parameters. The meaning of the various keys can be discovered using the Shot.get_decode_parameter_definitions static method.
set_decode_parameters(decode_params)
Set some or all of the image decode parameters for the shot.
Arguments
- decode_params Dict: Key/value pairs containing new decode parameter values. The allowable keys and valid values for those keys can be discovered using the get_decode_parameter_definitions static method. It is not necessary to specify all the parameters - any parameters not set will remain untouched.
Result
- No result
get_audio_settings()
Return the audio settings defined for this shot. Returns NULL if the shot has no audio defined.
Arguments
- No arguments
Result
- AudioSequenceSettings: Audio settings for shot
set_audio_settings(audio_settings)
Set the audio settings for this shot.
Arguments
- audio_settings AudioSequenceSettings: New audio settings for shot
Result
- No result
get_matte_references(eye)
Return a set of referenced/used mattes/channels for the shot.
Arguments
- eye STEREO_EYE Optional: Stereo eye for which we want the used mattes/channels
Result
- Set[Any]: Set of matte/channel names referenced.
update_matte_references(matteChannels)
This method will update the matte channel names in any Reference operators within the Shot
Arguments
- matteChannels Dict: Mapping from old matte channel name to new matte channel name
Result
- No result
ThumbnailManager
Interface used to generate shot thumbnails
Signals
- No Signals
Methods
ThumbnailManager.get_poster_uri(shot_if, options)
Get a poster (or specific) frame thumbnail URI for a shot
Arguments
- shot_if Shot: Shot interface object
- options Dict: Stucture containing optional settings used to control the type of thumbnail image rendered.
- DCSpace str Optional: Display colourspace (sRGB or P3)
- Graded int Optional: Graded/ungraded flag
- HiRes str Optional: Flag indicating hi-res image preferable
- ShotFrame int Optional: Optional timeline frame number (constrained to shot range)
Result
- str: Thumbnail URI
ThumbnailManager.get_scrub_uri_template(scene_if, shot_id, options)
Get a scrub image URI template (prefix & suffix strings). This can be used while scrubbing to generate image URIs without additional roundtrips/calls to the server.
Arguments
- scene_if Scene: Scene interface object
- shot_id Shot: ID of shot in scene
- options Dict: Stucture containing optional settings used to control the type of scrub image rendered.
- DCSpace str Optional: Display colourspace (sRGB or P3)
- Graded int Optional: Graded/ungraded flag
- HiRes str Optional: Flag indicating hi-res image preferable
Result
- List[str]: Template array containing 2 strings; a URI prefix & suffix. To form a completeURI, the scrub frame number required should be inserted between these 2 strings.
str:
Timer (BETA)
A Timer allows your script to be triggered periodically to perform processing BETA
Signals
- TimerTick BETA
Methods
Timer.create(interval, repeat)
Create a new Timer object
Arguments
- interval int: Number of milliseconds between timer ticks firing
- repeat int Optional: Flag indicating whether timer should repeat after interval elapses
Result
start()
Start timer running
Arguments
- No arguments
Result
- No result
is_started()
Inquire if timer is started
Arguments
- No arguments
Result
- int: Flag indicating whether timer is started
stop()
Stop timer firing
Arguments
- No arguments
Result
- No result
get_interval()
Return interval between timer ticks firing
Arguments
- No arguments
Result
- int: Interval in milliseconds
set_interval(interval)
Set interval between timer ticks firing
Arguments
- interval int: Interval in milliseconds
Result
- No result
Utilities
Utility functions
Signals
- No Signals
Methods
Utilities.timecode_from_string(str, fps, wraphour)
Convert string to Timecode
Arguments
- str str: Timecode in string form
- fps Optional[int] Can be None Optional: FPS
- wraphour int Optional: Hour at which timecode is considered to wrap around, defaults to 24. Set this to 0 to disable timecode wrapping.
Result
- Timecode: Timecode parsed from string
Utilities.get_allowed_enum_values(enumType)
Returns an array of EnumInfo objects representing the allowed values for a given enumeration type. Explictly, each returned entry has two fields: * Value - The (unique) internal value. * Desc - The user-friendly description for the value (so that you would typically present Desc to the user and use Value in calls to FLAPI functions).
Arguments
- enumType str: The name of the enumerated type. e.g. CUBEEXPORT_LUTFORMAT
Result
- List[EnumInfo]: Array of EnumInfo objects
Volumes
Query and configure storage for this system
Signals
- No Signals
Methods
Volumes.get_volume_keys()
Return keys for volumes accessible from this system
Arguments
- No arguments
Result
- List[str]: Array of volume keys
str: Key
Volumes.get_local_volume_keys()
Return volumes defined locally on this system
Arguments
- No arguments
Result
- List[str]: Array of volume keys
str: Key
Volumes.get_volume_info(keys)
Return VolumeInfo describing the volume with the given key
Arguments
- keys List[str]: Array of volume keys
str: Key identifying volume
Result
Value Types
AMFExportSettings
Settings to use for AMF exports
Fields
- Source EXPORT_SOURCE: Export AMFs for
- Filter str: Tab/Filter
- Category Set[str]: Category
- CategoryMatch EXPORT_CATEGORYMATCH: Shots Must Match
- Frames EXPORT_FRAMES: Frames
- MarkCategory Set[str]: Mark Category
- Stereo EXPORT_STEREO: Stereo
- Directory str: Export Directory
- Overwrite EXPORT_OVERWRITE: Existing AMFs
- PathExample str:
- Template str: Template filename used to construct the output AMF file names, by applying substitutions containing per-shot metadata.
- Desc str: Text field allowing the user the enter a description of the AMF contents.
- AuthorName str: Text field allowing the user the enter an author's name.
- AuthorEmail str: Text field allowing the user the enter an author's email address.
- ClipIdMode int: Whether or not to export <aces:clipId> element, which provides source clip information., flag indicating true or false
- ClipFilenameMode AMFEXPORT_CLIPFILENAMEMODE: When generating <aces:clipId, whether to export the full file path to the movie/image sequence or to just export the filename.
- Applied int: Whether or not to set the "applied" attribute in <aces:inputTransform> and <aces:lookTransform> tags, flag indicating true or false
- WorkingLocationCategories Set[str]: Categories used to mark aces:workingLocation tag.
- AllowFallbackSpaces int: Whether or not to allow fallback colour spaces to be substituted when generating <aces:inputTransform> if there is no ACES transform equivalent for a FilmLight colour space. This is typically useful when RAW media has been automatically debayered into a linear space and one would like the AMF to specify a log-ish IDT., flag indicating true or false
- EmitOutputTransform int: Whether or not emit the <aces:outputTransform> element, flag indicating true or false
- OutputColourSpace str: The output colour space to be used to set <aces:outputTransform>.
- CLFHandling AMFEXPORT_CLFHANDLING: Specifies how any CLF files referenced by the AMF file should be handled.
- UpdateMetadata int: Whether or not to update the AMF_NAME and AMF_UUIDmetadata columns., flag indicating true or false
AMFInsertSettings
Settings to use for AMF stack insertion
Fields
- CLFDir str: Specify directory to search for those CLF files which don't lie in the same directory as the AMF file which references them.
- CCCDir str: Specify directory to search for those CCC files which don't lie in the same directory as the AMF file which references them.
- ObeyApplied int: Whether or not to obey the "applied" element. If not obeyed, all transforms will be applied, regardless of the state of the "applied" flag, flag indicating true or false
- WorkingLocationCategories Set[str]: Categories assigned to working location
- CDLLookTransformLayerNumber int: Starting layer number for any CDL look transform layers added.
- CDLLookTransformLayerColour List[float]: Array of RGBA values
float: RGBA component
- CDLLookTransformLayerCategories Set[str]: Categories assigned to CDL look transform layers added.
- CLFLookTransformLayerNumber int: Starting layer number for any CLF look transform layers added.
- CLFLookTransformLayerColour List[float]: Array of RGBA values
float: RGBA component
- CLFLookTransformLayerCategories Set[str]: Categories assigned to CLF look transform layers added.
- GamutCompressLookTransformLayerNumber int: Starting layer number for any gamut compression look transform layers added.
- Apply Set[AMF_APPLY]: Set of transform types to apply. Must be from chosen from possible values of the AMF_APPLY value type.
APIUserInfo
Settings for an API user
Fields
- Login str: Login name
- Name str: Name
- Permissions Set[str]: Set of permissions assigned to this user
- Enabled int: Is this user currently enabled
AudioSequenceSettings
Settings defining the behaviour of an Audio Sequence
Fields
- Type AUDIOSEQ_TYPE: Type of Audio Sequence
- Filename str: Filename for audio
- Stems List[str]:
str: Filenames of audio stems
- Offset Rational: Audio Offset in seconds
- Ratio str: Audio ratio. Allowed values are "1:1", "24:25", "25:24", "1000:1001", "1001:1000", "23.98:23.976"
AudioSyncProgress
Progress information from audio sync operation
Fields
- Status AUDIOSYNCSTATUS
- Summary str: String summarising the progress information
- ShotID Optional[int] Can be None Optional: Shot ID that this progress information relates to
- Frame Optional[int] Can be None Optional: Frame number within timeline
AudioSyncSettings
Settings to use for AudioSync operation
Fields
- Criteria AUDIOSYNC_CRITERIA: Search For
- Timecode Timecode: Value for Timecode
- Scene str: Value for Scene
- Take str: Value for Take
- Directory str: Directory
- SubSearch AUDIOSYNC_SUBSEARCH: Search in
- Subdirs str: Value for Subdirs
- FPS AUDIOSYNC_FPS: Audio TC FPS
- Offset float: Offset
- Metadata AUDIOSYNC_METADATA: Read Metadata
- ClapDetect int: Clap Detect, flag indicating true or false
- ClapDetectThreshold float: Threshold
- Ratio AUDIOSYNC_RATIO: Ratio
- ReadLTC AUDIOSYNC_READLTC: Read LTC
- LTCIndex int: Number
- LTCColumn str: Into Column
- AutoSync int: Value for AutoSync, flag indicating true or false
BLGExportSettings
Settings to use for BLG exports
Fields
- Source EXPORT_SOURCE: Export BLGs for
- Filter str: Tab/Filter
- Category Set[str]: Category
- CategoryMatch EXPORT_CATEGORYMATCH: Shots Must Match
- Frames EXPORT_FRAMES: Frames
- MarkCategory Set[str]: Mark Category
- Stereo EXPORT_STEREO: Stereo
- Directory str: Export Directory
- Overwrite EXPORT_OVERWRITE: Existing BLGs
- Path str:
- Template str: Value for Template
- Scale BLGEXPORT_SCALE: Value for Scale
- AllowMultiInput int: Allow Multi-Input BLGs, flag indicating true or false
- GenerateNukeScripts int: Generate Nuke Scripts, flag indicating true or false
- GenerateWriteNode int: Value for GenerateWriteNode, flag indicating true or false
- Keyframes int: Include Keyframes, flag indicating true or false
- LockGrade BLGEXPORT_LOCKGRADE: Lock Grade
- ViewingColourSpace str: Viewing Colour Space
- ViewingFormat str: Viewing Format
CDLExportSettings
Settings to use for CDL exports
Fields
- Source EXPORT_SOURCE: Export CDLs for
- Filter str: Tab/Filter
- Category Set[str]: Category
- CategoryMatch EXPORT_CATEGORYMATCH: Shots Must Match
- Frames EXPORT_FRAMES: Frames
- MarkCategory Set[str]: Mark Category
- Stereo EXPORT_STEREO: Stereo
- Directory str: Export Directory
- Overwrite EXPORT_OVERWRITE: Existing CDLs
- Format CDLEXPORT_FORMAT: Format
- PathExample str:
- Template str: Filename
- LookNameExample str:
- LookName str: Look Name
- CDLLayer CDLEXPORT_CDLLAYER: CDL Source
- CDLLayerCustom int: Layer Number
CategoryInfo
Definition of a Category used to annotate marks, shots or strips
Fields
- Key str: Key used to identify this category
- Name str: User-visible name for this category. For user-added categories, 'Name' will always match 'Key', but some built-in categories will have different keys and names (e.g "DefaultStripCat" and "Default Strip Category").
- ReadOnly str: Is this category built-in and immutable
- Colour List[float]: Default colour associated with this category
float: RGBA components
ClientViewClientSettings
Settings for a connected Client View
Fields
- StreamIndex int: Stream index, or -1 if streaming disabled
- StreamConfigsAge int: 'Age' value incremented when a stream's configuration value changes.
- NotesEnabled int: Flag set if the Client View can add/edit notes and flags
- LaserEnabled int: Flag set if the Client View has a laser pointer (if streaming enabled)
- Debug int:
ClientViewHostUserSettings
Settings for user hosting the Client View
Fields
- UserName str: Host user's name
- LaserColour List[float]: Host user's laser pointer colour (0->1 per component).
float: RGB Components
ClientViewStreamSettings
Settings for a Client View stream
Fields
- Resolution str: Stream resolution string eg. '1920x1080'
- Bitrate int: Integer bitrate in Mbit/s
- ColourSpace str: Either 'P3', 'sRGB' or 'HDR'
ColourSpaceInfo
Description of a Truelight Colour Space
Fields
- Name str: Colour Space Name
- DisplayName str: User-visible Colour Space Name
- Type str: Type of Colour Space ("scene","display","any")
ConnectionInfo
Dictionary describing a single connection.
Fields
- ConnectionID int: Connection ID. Note: This can be obtained for a specific connection via a FLAPI Connection's 'get_connection_id()' method
- UserName str: Connected user/client name
- UsageType str: Usage type declared by a connection ('Unknown' if none explicitly set)
CubeExportSettings
Settings to use for Cube exports
Fields
- Source EXPORT_SOURCE: Export LUTs for
- Filter str: Tab/Filter
- Category Set[str]: Category
- CategoryMatch EXPORT_CATEGORYMATCH: Shots Must Match
- Frames EXPORT_FRAMES: Frames
- MarkCategory Set[str]: Mark Category
- Stereo EXPORT_STEREO: Stereo
- Directory str: Export Directory
- Overwrite EXPORT_OVERWRITE: Existing LUTs
- NumLUTs CUBEEXPORT_NUMLUTS: Number of LUTs
- LUT1Options CUBEEXPORT_LUT1OPTIONS: LUT 1 includes
- LUT1IncludeCategories Set[str]: LUT 1 Include Categories
- LUT1ExcludeCategories Set[str]: LUT 1 Exclude Categories
- LUT1Path str:
- LUT1Name str: LUT 1 Name
- LUT2Options CUBEEXPORT_LUT2OPTIONS: LUT 2 includes
- LUT2IncludeCategories Set[str]: LUT 2 Include Categories
- LUT2ExcludeCategories Set[str]: LUT 2 Exclude Categories
- LUT2Path str:
- LUT2Name str: LUT 2 Name
- LUT3Options CUBEEXPORT_LUT3OPTIONS: LUT 3 includes
- LUT3IncludeCategories Set[str]: LUT 3 Include Categories
- LUT3ExcludeCategories Set[str]: LUT 3 Exclude Categories
- LUT3Path str:
- LUT3Name str: LUT 3 Name
- OnlySelectedStrips int: Selected Grade Strips Only, flag indicating true or false
- InputColourSpace str: Input Colour Space
- InputDRT str: Input Display Rendering Transform
- LUTFormat CUBEEXPORT_LUTFORMAT: LUT Format
- ExtendedRanges CUBEEXPORT_EXTENDEDRANGES: Extended Input Range
- InputMin float: Input Min
- InputMaxLog float: Log Input Max
- InputMaxLin float: Linear Input Max
- InputLogOffset float: Log Offset
- OutputColourSpace str: Output Colour Space
- CubeResolution CUBEEXPORT_CUBERESOLUTION: 3D Cube Resolution
- LUTResolution CUBEEXPORT_LUTRESOLUTION: 1D LUT Resolution
- GradeReplace int: Replace Grades with LUTs, flag indicating true or false
CustomerInfo
Dictionary containing customer related settings/preferences.
Fields
- Name str: Customer name
- LogoURI str: URI of customer logo
- WebsiteURL str: URL to customer website
DRTInfo
Description of a Truelight Display Rendering Transform
Fields
- Name str: Display Render Transform Name
- InputSpace str: Name of required Input Colour Space
- OutputSpace str: name of result Output Colour Space
- ViewingConditions List[str]: Array of Viewing Condition names for the Display Rendering Transform
str: Viewing Condition Name
DecodeParameterChoice
Fields
- Value any: Value for this decode parameter value choice. Can be an Integer, Float or String
- Label str: User-friendly label for this value
DecodeParameterDefinition
This type is returned by get_decode_parameter_definitions to define the data type, label, ranges and values for each decode parameter that can be get or set for a Shot.
Fields
- Parameter str: Key to use in get_decode_parameters and set_decode_parameters
- Type DECODEPARAM_TYPE: Data type for this parameter
- Default any: Default value for this parameter
- Label str: User-friendly label for this parameter
- Min any: Minimum value for Integer or Float parameters
- Max any: Maximum value for Integer or Float parameters
- Choices List[DecodeParameterChoice]: Array of possible values for Choice parameters
DialogItem (BETA)
Definition of an item to be shown in a DynamicDialog BETA
Fields
- Key str: Key used to identify value for item in settings dictionary
- Label str: Label to show for item
- Type DIALOG_ITEM_TYPE: Type of dialog item
- Help str: Help text describing this dialog item
- Default any Can be None: Default value for this item
- Options List[KeyTextItem]: Array of items to show in list
- RegExp str Can be None: Regular expression to filter files shown in browsers
- Password int: Password mode for String type
- IntMin int: Minimum value for Integer type
- IntMax int: Maximum value for Integer type
- FloatMin float: Minimum value for Float type
- FloatMax float: Maximum value for Float type
- FloatSnap float: Minimum interval between Float values
- Style any Can be None: Define the style for this dialog item
- Height int Optional: Height of this item
EnumInfo
Information about a defined enumerated value
Fields
- Value str: Internal Value of Enum
- Desc str: User friendly description of value
ExportOpInfo
This type is returned to return information about export operations queued via QueueManager
Fields
- ID int: Queue operation ID
- Log List[str]:
str: All messages reported during the export operation
ExportProgress
Progress information from Export operation
Fields
- Status EXPORTSTATUS
- Summary str: String summarising the export information
- ShotID Optional[int] Can be None Optional: Shot ID that this progress information relates to
- Frame Optional[int] Can be None Optional: Frame number within timeline
FDLCanvas
FDL Canvas within a Context
Fields
- id str: Unique ID for this canvas
- label Optional[str] Can be None Optional: User-visible label for framing decision
- source_canvas_id Optional[str] Can be None Optional: Original canvas this canvas was derived from
- dimensions FDLDimension: Width & height of this canvas
- effective_dimensions Optional[FDLDimension] Can be None Optional: Effective area within canvas
- effective_anchor_point Optional[FDLRealPoint] Can be None Optional: Position of effective area within canvas
- photosite_dimensions Optional[FDLDimension] Can be None Optional: Dimensions of original sensor
- physical_dimensions Optional[FDLRealDimension] Can be None Optional: Physical size of original sensor
- anamorphic_squeeze float Optional: Anamorphic squeeze factor
- framing_decisions List[FDLFramingDecision]: Framing decisions within canvas
FDLCanvasTemplate
FDL Canvas Template
Fields
- id str: Unique ID for this canvas template
- label Optional[str] Can be None Optional: User-visible label for this canvas template
- target_dimensions FDLDimension: Required target dimensions of resulting canvas
- target_anamorphic_squeeze float: Target anamorphic squeeze factor
- fit_source FDL_FIT_SOURCE: Source area to fit into target dimensions
- fit_method FDL_FIT_METHOD: Method to fit source area into target dimensions
- alignment_method_horizontal FDL_ALIGNMENT_METHOD_HORIZONTAL: Horizontal alignment method
- alignment_method_vertical FDL_ALIGNMENT_METHOD_VERTICAL: Vertical alignment method
- preserve_from_source_canvas FDL_PRESERVE_MODE Optional: Area of source canvas to preserve in resulting canvas
- maximum_dimensions Optional[FDLDimension] Can be None Optional: Maximum canvas dimensions
- pad_to_maximum int: Flag indicating whether the resulting canvas should be padding to the maximum dimensions
- round FDLRound: Rounding parameters used to calculate final canvas dimensions
FDLContext
FDL Context containing Canvases
Fields
- label Optional[str] Can be None Optional: User-visible label for context
- context_creator Optional[str] Can be None Optional: Creator of this context
- canvases List[FDLCanvas]: Array of canvases defined within this context
FDLCreateFormatFromCanvasOptions
Options for the FDL create_format_from_canvas() function
Fields
- CanvasId str: ID of canvas to use for creating format
- FormatSet FormatSet: FormatSet to add the new Format to
- FramingDecisionId Optional[str] Can be None Optional: ID of framing decision within canvas to use for format. If not specified, the default framing intent shall be used. Otherwise the first framing decision shall be used.
- FormatName Optional[str] Can be None Optional: Name for new Format. If not specified, the name of the FDL Context and Canvas shall be used.
- MapToFormat Optional[str] Can be None Optional: If specified, the name of destination format that the new Format shall be mapped into
- MapToMask Optional[str] Can be None Optional: If specified, the name of the mask in the destination format to map the new Format to
- MapInside int Optional: If set to 1, the new format shall be mapped Inside the destination format. Otherwise it will be mapped outside.
FDLDimension
Dimension defining an integer width & height
Fields
- width int: Width of dimension
- height int: Height of dimension
FDLDocument
Top level of Framing Decision List
Fields
- version FDLVersion:
- uuid str: FDL UUID
- fdl_creator Optional[str] Can be None Optional: Creator of this FDL
- default_framing_intent Optional[str] Can be None Optional: ID of default framing intent
- framing_intents List[FDLFramingIntent]: Array of framing intents defined in this FDL
- contexts List[FDLContext]: Array of contexts defined in this FDL
- canvas_templates List[FDLCanvasTemplate]: Array of canvas templates defined in this FDL
FDLFramingDecision
FDL Framing Decision representing a framing intent within a Canvas
Fields
- id str: Unique ID for this framing decision
- label Optional[str] Can be None Optional: User-visible label for framing decision
- framing_intent_id str: Framing Intent this decision corresponds to
- dimensions FDLRealDimension: Dimension of this framing decision
- anchor_point FDLRealPoint: Position of this framing decision within canvas
- protection_dimensions Optional[FDLRealDimension] Can be None Optional: Dimensions of protection area
- protection_anchor_point Optional[FDLRealPoint] Can be None Optional: Position of protection area
FDLFramingIntent
FDL Framing Intent
Fields
- id str: Unique ID for this framing intent
- label Optional[str] Can be None Optional: User-visible label for framing intent
- aspect_ratio FDLDimension:
- protection float Optional: Protection factor
FDLPoint
Point defining an integer 2D position
Fields
- x int: X coordinate
- y int: Y coordinate
FDLRealDimension
Dimension defining a floating-point width & height
Fields
- width float: Width of dimension
- height float: Height of dimension
FDLRealPoint
Point defining an floating-point 2D position
Fields
- x float: X coordinate
- y float: Y coordinate
FDLRound
Rounding mode used when calculating canvas size
Fields
- even FDL_EVEN_MODE: Policy determining whether final canvas size is even or whole
- mode FDL_ROUND_MODE: Policy determining how floating point values are converted to integer
FDLValidation
Result of validating an FDL
Fields
- Valid int: Flag indicating whether the FDL document was valid
- Errors List[str]: Array of errors encountered when validating the FDL
str: FDL error
FDLVersion
Version number of FDL
Fields
- major int: Major version number
- minor int: Minor version number
FLUXFileInfo
Description of a file selected in FLUX Manage Browser
Fields
- Key str: Name of the selected file
- FullPath str: Full path to the selected file
- RootPath str: Path to the directory containing the file
- Symlink int: Flag indicating whether the file is a symlink
- Size int: File size in bytes
- ModTime int: Modification time expressed in seconds since UNIX epoch
FormatBurninItem
Definition of a text element within a FormatBurnin
Fields
- Type BURNIN_ITEM_TYPE: Item type
- X float: X position in pixels
- Y float: Y position in pixels
- XAlign BURNIN_HALIGN: Horizontal alignemnt of text item
- YAlign BURNIN_VALIGN: Vertical alignment of text item
- Box BURNIN_BORDER: Box drawn around text item
- Height float: Height of text item in pixels
- Text str: Content of text item
- XScale float: X Scale factor of image item
- YScale float: Y Scale factor of image item
- ResX int: Width of image item in pixels
- ResY int: Height of image item in pixels
- Opacity float: Opacity of image item
- File str: Path to image item
FormatInfo
Specifies the width, height, pixel aspect ratio
Fields
- Width int: Width of format in pixels
- Height int: Height of format in pixels
- PixelAspectRatio float: Aspect ratio of width-to-height for each pixel
FormatMapping
Defines the mapping from one Format to another Format
Fields
- sx float: X scaling factor
- sy float: Y scaling factor
- tx float: X translation
- ty float: Y translation
- inside int: Flag indicating whether mapping is inside or outside of destination format
- src_mask str: Name of source mask
- dest_mask str: Name of destination mask
FormatMask
Specifies the area of Mark defined with a Format
Fields
- Name str: Name of mask
- XMin int: Minimum X coordinate of mask within Format coordinate space
- XMax int: Maximum X coordinate of mask within Format coordinate space
- YMin int: Minimum Y coordinate of mask within Format coordinate space
- YMax int: Maximum Y coordinate of mask within Format coordinate space
FrameRange
Defines a range of frames
Fields
- Start int: Start Frame
- End int: End Frame (inclusive
KeyTextItem
A mapping for a key object to a user-readable string describing that key
Fields
- Key any:
- Text str: User-readable string describing this key
LicenceItem
Description of a installed licence option
Fields
- Product str: Product Name
- Version str: Product Version Number
- Options List[str]: Array of licence options for product
str: Licence Option
- Permanent int: Flag indicating whether licence item is permanent
- Start str: Start date
- Duration int: Number of days license is valid for from start date
- DaysLeft int: Number of days until licence option expires
LookInfo
Information for a Look
Fields
- Name str: Name of Look
- Group str: Name of the group containing the look
MetadataItem
Definition of a Metadata field that exists across all shots in a Scene
Fields
- Key str: Key used to retrieve metadata value
- Name str: User-visible name for metadata item
- Type str: Data Type of metadata item
- NumElements int: Number of data values for this metadata field. If NumElements greater than 1, the values for this metadata field will be contained in an array.
- IsReadOnly int: Flag indicating whether this metadata item is read-only
- IsUserDefined int: Flag indicating whether this metadata item is user-defined, or pre-defined by the application
- Properties Dict: Properties associated with this metadata field
MetadataProperty
Definition of a Property that can specified for each MetadataItem defined in a Scene
Fields
- Key str: Key used to identify metadata item property
- Name str: User-visible name for metadata property
MultiPasteProgress
Progress information from Multi-Paste operation
Fields
- Status MULTIPASTESTATUS
- Summary str: String summarising the progress information
- ShotID Optional[int] Can be None Optional: Shot ID that this progress information relates to
- Frame Optional[int] Can be None Optional: Frame number within timeline
MultiPasteSettings
Settings to use for MultiPaste operation
Fields
- Source MULTIPASTE_SOURCE: Specify source of grade or metadata for Multi-Paste.
- SourceScenes List[str]: Specify list of database scene names to use as source of grades and metadata. Applicable when "Source" is set to MULTIPASTE_SOURCE_MULTIPLESCENES.
str: Scene name
- SourceDirectory str: Specify directory to search for grades or metadata. Applicable when "Source" is set to MULTIPASTE_SOURCE_BLG.
- SourceEDL str: Specify EDL filename to read metadata from. Applicable when "Source" is set to MULTIPASTE_SOURCE_EDL.
- EDLApplyASCCDL MULTIPASTE_EDLAPPLYASCCDL: Whether or not to apply any CDL values found in the EDL. Applicable when "Source" is set to MULTIPASTE_SOURCE_EDL.
- BLGResourceConflict MULTIPASTE_BLGRESOURCECONFLICT: Conflict resolution algorithm used when resources imported when multi-pasting from BLG files conflict with existing resources. Applicable when "Source" is set to MULTIPASTE_SOURCE_BLG.
- DestSelection MULTIPASTE_DESTSELECTION: Destination
- AMFDirectory str: Specify directory to search for AMF files. Applicable when "Source" is set to MULTIPASTE_SOURCE_AMF.
- AMFWorkingLocationCategories Set[str]: Categories assigned to AMF working location grade layers added when multi-pasting from AMF files. Applicable when "Source" is set to MULTIPASTE_SOURCE_AMF.
- CDLDirectory str: Specify directory to search for CDL/CCC files. Applicable when "Source" is set to MULTIPASTE_SOURCE_CDL or MULTIPASTE_SOURCE_AMF.
- CDLLayerNum int: Strip colour of CDL grade layers added when multi-pasting CDL/CCC/AMF files. Applicable when "Source" is set to MULTIPASTE_SOURCE_CDL or MULTIPASTE_SOURCE_AMF.
- CDLLayerColour List[float]: Array of RGBA values
float: RGBA component
- CDLCategories Set[str]: Categories assigned to CDL grade layers added when multi-pasting from CDL/CCC files. Applicable when "Source" is set to MULTIPASTE_SOURCE_CDL or MULTIPASTE_SOURCE_AMF.
- LUTDirectory str: Specify directory to search for LUT files. Applicable when "Source" is set to MULTIPASTE_SOURCE_LUT or MULTIPASTE_SOURCE_AMF.
- LUTLayerNum int: Layer number for layers added when multi-pasting LUTs. Applicable when "Source" is set to MULTIPASTE_SOURCE_LUT or MULTIPASTE_SOURCE_AMF.
- LUTLayerColour List[float]: Array of RGBA values
float: RGBA component
- LUTCategories Set[str]: Categories assigned to Truelight layers added when multi-pasting from LUTs. Applicable when "Source" is set to MULTIPASTE_SOURCE_LUT or MULTIPASTE_SOURCE_AMF.
- MatchBy List[MULTIPASTE_MATCHBY]: Array of sort criteria
- MatchQuality MULTIPASTE_MATCHQUALITY: Whether or not metadata needs to match exactly, or if a "fuzzy" match is permissible.
- PasteGrades int: Whether or not any grade stacks found in the source data are to be pasted., flag indicating true or false
- LayerZeroBehaviour MULTIPASTE_LAYERZEROBEHAVIOUR: If "PasteGrades" is 1, specifies what exactly which parts of the grade stack should be copied.
- LayerZeroOverwrite int: If "LayerZeroBehaviour" is MULTIPASTE_LAYERZEROBEHAVIOUR_LAYERZEROANDSTACK or MULTIPASTE_LAYERZEROBEHAVIOUR_LAYERZEROONLY, how copied layer 0 operators should be merged with the existing operators., flag indicating true or false
- LayerZeroAudio int: Whether or not Audio Sequence operator is pasted into the destination scene., flag indicating true or false
- InputColourSpace int: If layer 0 is be copied, whether or not to copy the input colour space in layer 0's Sequence operator., flag indicating true or false
- SourceShots MULTIPASTE_SOURCESHOTS: Whether or not to narrow down the source layers to be copied based on category.
- SourceShotCategories Set[str]: Specifies a set of categories. Only applicable if "SourceShots" is MULTIPASTE_SOURCESHOTS_COPYALLEXCEPTCATS or MULTIPASTE_SOURCESHOTS_COPYONLYCATS.
- DestShots MULTIPASTE_DESTSHOTS: Whether or not to specify the destination layers to be overwritten or retained based on category.
- DestShotCategories Set[str]: Specifies a set of categories. Only applicaable if "DestShots" is MULTIPASTE_DESTSHOTS_OVERWRITEALLEXCEPTCATS or MULTIPASTE_DESTSHOTS_RETAINALLEXCEPTCAT.
- DetectGradeChanges int: Whether or not to mark shots whose grade has changed as a result of the multi-paste with a category., flag indicating true or false
- GradeChangedCategory str: A category to be applied to shots whose grade has changed. Only applicable if "DetectGradeChanges" is 1.
- ClearUnchangedGrades int: Whether or not to remove the category specified by "GradeChangedCategory" if a shot's grade is not changed by the multi-paste. Only applicable if "DetectGradeChanges" is 1., flag indicating true or false
- PasteLocation MULTIPASTE_PASTELOCATION: Where strips pasted are to be located.
- MaintainTracks int: Whether tracks are to be maintained., flag indicating true or false
- LayerZeroCategories MULTIPASTE_LAYERZEROCATEGORIES: Whether or not layer 0 categories are to be pasted.
- LayerZeroExcludeCategories Set[str]: A set of categories. Only applicable if "LayerZeroCategories" is MULTIPASTE_LAYERZEROCATEGORIES_INCLUDE or MULTIPASTE_LAYERZEROCATEGORIES_OVERWRITE, in which case the set is used to further narrow down the categories copied.
- PasteMetadata int: Whether not metadata columns are to be pasted., flag indicating true or false
- MetadataColumns Set[str]: Set containing names of metadata columns to be pasted.Only applicable if "PasteMetadata" is 1.
- AddExtraMetadata int: Whether or not metadata columns which exist in the source data but not in the destination scene should be pasted. Only applicable if "PasteMetadata" is 1., flag indicating true or false
- OverwriteMetadata int: Whether or not existing metadata in the destination scene is allowed to be overwritten. Only applicable if "PasteMetadata" is 1., flag indicating true or false
- PasteGroups int: Whether or not groups are to be pasted., flag indicating true or false
- ShredComps int: Shred Composites Into Separate Shots, flag indicating true or false
- ShredProtectCategories Set[str]: Value for ShredProtectCategories
- ShredExternalMattes int: Treat External Mattes As Individual Shots, flag indicating true or false
NewSceneOptions
Options for create a new database or temporary scene
Fields
- format str Can be None: Working format of scene. Can be omitted if using a template.
- colourspace str Can be None: Working colour space of scene. Can be omitted if using a template.
- frame_rate float Can be None: Working frame rate of scene. Can be omitted if using a template.
- field_order FIELDORDER Can be None Optional: Working field order of scene
- template ScenePath Can be None: Path of template scene from which to copy settings
- blg_template str Can be None: Path of BLG file from which to copy settings
- use_aces_idts int Can be None: Obsolete. Flag to indicate use of ACES-compatible versions of input colour spaces
OpenSceneStatus
Status of scene opening or creation operation
Fields
- Done int: Flag indicating whether scene open is complete
- Error str: Error message if scene open failed
- Progress float: Percentage completion
- Message str: Description of current status
QueueLogItem
Log Item from Queue Operation
Fields
- Time str: Time of log item
- Type QUEUE_LOG_TYPE: Type of log item
- Task str: Task
- Frame int: Frame Number of log item
- Message str: Log message text
- Detail str: Log message detail
QueueOp
Description of an Operation in a Queue
Fields
- ID int: Operation ID
- Description str: Description of operation
- SubmitUser str: Name of user that submitted operation
- SubmitHost str: Name of host that submitted operation
QueueOpStatus
Status of an Operation in a Queue
Fields
- ID int: Operation ID
- Status OPSTATUS: Status of operation
- Progress float: Progress of operation
- ProgressText str: Message describing current progress of operation
- TimeElapsed str: Time elapsed so far, in seconds
- TimeRemaining str: Estimated time remaining, in seconds
- Warnings int: Number of warnings encountered
- Errors int: Number of errors encountered
Rational
Holds a rational number. Used in situations where exact ratios are required.
Fields
- Numerator int: Numerator of the rational number
- Denominator int: Denominator of the rational number
RenderCodecInfo
Definition of a Codec that is supported for an image or movie file type
Fields
- Key str: Key identifying this codec
- Text str: User-readable name for codec
- Params List[RenderCodecParameterInfo]: Array of supported parameters
RenderCodecParameterInfo
Definition of a parameter to an image or movie codec
Fields
- Key str: Key used to identify this parameter
- Text str: User-readable name for parameter
- Type str: Data type of parameter
- Choices List[RenderCodecParameterValue]: Array of valid values for this parameter
RenderCodecParameterValue
Definition of a valid value for a codec parameter
Fields
- Key str: Key used to identify this parameter value
- Text str: User-readable name for parameter value
RenderDeliverable
This type is used to specify the render settings for an individual deliverable defined within a RenderSetup
Fields
- Name str: Name of deliverable
- Disabled int Optional: Flag indicating whether this deliverable is disabled for rendering
- IsMovie int Optional: Flag indicating that this deliverable is a movie
- FileType str: Key specifying image or movie file type. The list of supported file types can be found by calling RenderSetup.get_image_types() and RenderSetup.get_movie_types().
- MovieCodec Optional[str] Can be None Optional: Key identifying video codec for movie file types. The list of supported codecs can be found by calling RenderSetup.get_movie_codecs().
- AudioCodec Optional[str] Can be None Optional: Key identifying audio codec for movie file types. The list of supported codecs can be found by calling RenderSetup.get_movie_audio_codecs().
- ImageOptions Optional[Dict] Can be None Optional: Dictionary containing image codec parameters and their values
- FastStart int Optional: Flag indicating that we want to optimise the resulting movie for fast-start network playback
- AudioSampleRate AUDIO_RATE Optional: Audio Sample Rate in Hertz
- AudioNumChannels int Optional: Number of audio channels in deliverable. Use -1 to take use same number as source movie/audio.
- Container Optional[str] Can be None Optional: Destination Container path. If unset, RenderSetup will use the default container from the Scene.
- OutputDirectory str: Output directory relative to container
- FileNamePrefix str Optional: File name prefix (before frame number component)
- FileNamePostfix str Optional: File name postfix (after frame number component). Only used for Sequence renders.
- FileNameNumDigits int Optional: Number of digits to pad frame number to. Only used for Sequence renders.
- FileNameNumber RENDER_FRAMENUM Optional: Source for frame number
- FileNameExtension Optional[str] Can be None Optional: File extension. If not specified, the default exxtension for the specified file type will be used.
- ColourSpaceTag RENDER_NCLC_TAG Optional: Colour space tag data (NCLC) to embed in QuickTime movies
- RenderFormat str: Name of image format for rendered output.
- Set this to RENDER_FORMAT_USEINPUT to use the Input Format of each shot as its Render Rormat.
- RenderResolution PROXY_RESOLUTION Optional: Render format resolution
- RenderFrameRate Optional[float] Can be None Optional: Render frame rate
- RenderFieldOrder FIELDORDER Optional: Field behaviour
- RenderDecodeQuality DECODEQUALITY Optional: Source codec decode quality
- RenderColourSpace str: Name of colour space for rendered output.
- RenderVideoLUT VIDEOLUT Optional: Video scaling LUT
- RenderLayer int Optional: If specified, only the layers up to the specified layer number will be included in the renderer output. You can use RENDER_LAYER enum values to specify symbolic layer numbers. Default is to render all layers (-1).
- RenderTrack int Optional: Track number to render. Bottom most track is track 0
- RenderMask str Optional: Name of Mask within Render Format to apply to rendered image, or Auto (meaning input area or AutoNoClip (meaning input area not cropped to the Render Format)
- RenderMaskMode RENDER_MASK Optional: Mask value to apply in masked area
- RenderBurnin Optional[str] Can be None Optional: Name of Burnin to apply to rendered image
- RenderFlashBurnin int Optional: Number of frames to flash burnin at start of shot. Set to 0 to apply burnin to whole of each shot.
- RenderDisableCache int Optional: Do not read disk cache when rendering. This will ignore any intermediate strip caching and re-render all data.
- RenderChannels Optional[str] Can be None Optional: Name of channel(s) to include in rendered image, default is 'rgb'.
- 'rgb' will include RGB channels.
- 'rgba' will include RGB and Alpha channels.
- 'ycc' will include RGB channels (encoded as Y'CbCr). Required when the destination codec is Y'CbCr.
- 'ycca' will include RGB and Alpha channels (encoded as Y'CbCrA). Required when the destination codec is Y'CbCr.
- 'r', 'g', 'b' and 'a' will only include that individual channel.
- Or you can specify the name of an alternate channel within the grading stack, such as 'depth'.
- RenderAlphaHandling RENDER_ALPHA_HANDLING Can be None Optional: Alpha handling behaviour
- HandleIncompleteStacks RENDER_INCOMPLETE_BEHAVIOUR Optional: Action to take when encountering a stack with missing strips
- HandleEmptyFrames RENDER_EMPTY_BEHAVIOUR Optional: Action to take when encountering frames in timeline with no strips/shots
- HandleError RENDER_ERROR_BEHAVIOUR Optional: Action to take when encountering frames in timeline with no strips/shots
- EmbedTimecode RENDER_TIMECODE_SOURCE Optional: Which timecode to embed into rendered output
- EmbedTape RENDER_TAPENAME_SOURCE Optional: Which tape name to embed into rendered output
- EmbedClip RENDER_CLIPNAME_SOURCE Optional: Which clip name to embed into rendered output
RenderFileTypeInfo
Definition of an image or movie type
Fields
- Key str: Key identifying this file type
- Text str: User-readable name for file type
- Extensions List[str]: Array of support file extensions
str:
- Params List[RenderCodecParameterInfo]: Array of supported parameters
RenderOpInfo
This type is returned to return information about render operations queued via QueueManager
Fields
- ID int: Queue operation ID
- Warning str: Any warning that was raised during the submission of the render operation
RenderProcessorLogItem
Log Item from RenderProcessor
Fields
- Time str: Time of log item
- Type str: Type of log item
- Task str: Task
- Frame int: Frame Number of log item
- Message str: Log message text
- Detail str: Log message detail
RenderStatus
Status of render operation
Fields
- Status OPSTATUS: Status of render operation
- Error str: Error message if render failed
- Total int: Total frames to render
- Complete int: Number of frames completed
- Remaining int: Number of frames remaining
- Failed int: Number of frames that failed to render
- Progress float: Operation progress (0.0 to 1.0)
- ProgressMessage str: Last progress update message
SDKVersion
Version information for 3rd-party SDKs used in the application
Fields
- Key str: Key identifying SDK
- Name str: Name of SDK
- Description str: Description of SDK
- Version str: Version Number
SceneInfo
Return general information about the state of a scene
Fields
- CreatedDate str: Time and Date that scene was created
- CreatedBy str: Username and hostname that created scene
- CreatedVersion str: Version of software that created this scene
- OpenedDate str: Time and Date that scene was opened
- OpenedBy str: Username and hostname that opened the scene
- OpenedVersion str: Version of software that opened this scene
- ModifiedDate str: Time and Date that scene was last modified
- ModifiedBy str: Username and hostname that last modified the scene
- ModifiedVersion str: Username and hostname that last modified the scene
- WorkingFormat str: Name of working format
- Notes str: Any notes associated with this scene
- LastEDL str: Name of the last EDL imported into this scene
ScenePath
A ScenePath defines the host, job, folder and scene names required to create or open a FilmLight scene
Fields
- Type str Optional: Type of path this is. Can be 'psql' for a scene stored in a database, or 'file' for scene stored in a file
- Host str: Hostname of machine with job database
- Job str: Job name
- Scene str: Scene name
- Tag str Optional: Branch/tag name
- Filename str Optional: Filename
SceneSettingDefinition
Type information for an SceneSettings parameter
Fields
- Type str: Data type of parameter
- Desc str: Description of parameter
- Values List[any]: If present, this specifies the set of valid values for this key
any:
ShotIndexRange
shot index range
Fields
- FirstIndex int: Index of first shot that intersects the range
- LastIndex int: Index of last shot that intersects the range
ShotInfo
Shot info object
Fields
- ShotId int: shot idenfifier
- StartFrame int: The shot's timeline start frame
- EndFrame int: The shot's timeline end frame
- PosterFrame int: The shot's timeline poster frame
ShotSetInputFormatFromFDLOptions
Settings for Shot set_input_format_from_fdl() method
Fields
- CanvasId Optional[str] Can be None Optional: ID of FDL Canvas to use for input format. If not specified, the first canvas which matches the source material dimensions shall be used.
- FramingDecisionId Optional[str] Can be None Optional: ID of Framing Decision from Canvas to use as the source mask
- FormatName Optional[str] Can be None Optional: Name to use for new Format
- MapToMask Optional[str] Can be None Optional: If specified, map the input format to the named mask in the working format
- MapInside int Optional: If set, map the input format inside the working format. Otherwise map outside.
- SetWorkingFormat int Optional: If set, update the Scene working format to match the newly created format
StillExportSettings
Settings to use for Still exports
Fields
- Source EXPORT_SOURCE: Export Stills for
- Filter str: Tab/Filter
- Category Set[str]: Category
- CategoryMatch EXPORT_CATEGORYMATCH: Shots Must Match
- Frames EXPORT_FRAMES: Frames
- MarkCategory Set[str]: Mark Category
- Stereo EXPORT_STEREO: Stereo
- Directory str: Export Directory
- Overwrite EXPORT_OVERWRITE: Existing Stills
- FileType STILLEXPORT_FILETYPE: File Type
- ImageOptions str:
- Path str:
- Filename str: Filename
- ColourSpace str: Colour Space
- Format STILLEXPORT_FORMAT: Format
- Resolution STILLEXPORT_RESOLUTION: Resolution
- DecodeQuality STILLEXPORT_DECODEQUALITY: Quality
- Mask STILLEXPORT_MASK: Mask
- MaskMode STILLEXPORT_MASKMODE: Value for MaskMode
- Burnin STILLEXPORT_BURNIN: Burnin
- Truelight STILLEXPORT_TRUELIGHT: Truelight
VolumeInfo
Definition of a volume attached to, or accessible from, a FilmLight system
Fields
- Key str: Key identifying this volume
- Name str: Volume name
- Label str: Volume label
- Zone str: Zone containing Volume
- Path str: Local path to volume
Constants & Enumerations
Constants are defined at the top level of the flapi module, and can be accessed like so:
import flapi
fieldOrder = flapi.FIELDORDER_PROGRESSIVE
AFFINE_TYPE
Specify Sequence orientation affine transform type
- AT_NONE — No transform
- AT_FLIP — Flip horizontally
- AT_FLOP — Flop - flip vertically
- AT_FLIPFLOP — Flip and flop - flip both horizontally and vertically
AMFEXPORT_CLFHANDLING
Values for AMFExportSettings CLFHandling
- AMFEXPORT_CLFHANDLING_RETAINPATHANDDONTCOPY — Retain Path, Don't Copy
- AMFEXPORT_CLFHANDLING_TRIMPATHANDCOPY — Trim Path, Copy into AMF Directory
AMFEXPORT_CLIPFILENAMEMODE
Values for AMFExportSettings ClipFilenameMode
- AMFEXPORT_CLIPFILENAMEMODE_PATHANDFILENAME — Path+Filename
- AMFEXPORT_CLIPFILENAMEMODE_FILENAME — Filename Only
AMF_APPLY
Values for AMFInsertSettings Apply
- AMF_APPLY_INPUTTRANSFORM — Input Transform
- AMF_APPLY_CDLLOOKTRANSFORM — CDL Look Transforms
- AMF_APPLY_WORKINGCOLOURSPACE — CDL Working Space (Set the Scene's Working Colour Space)
- AMF_APPLY_CLFLOOKTRANSFORM — CLF Look Transforms
- AMF_APPLY_OUTPUTTRANSFORMODT — Output Transform ODT (Set the Cursor's Viewing Colour Space)
- AMF_APPLY_OUTPUTTRANSFORMRRT — Output Transform RRT (Set the Scene's Display Rendering Transform)
AUDIOSEQ_TYPE
Type of Audio in an Audio Sequence
- AUDIOSEQTYPE_NONE — No Audio
- AUDIOSEQTYPE_FILE — Audio File
- AUDIOSEQTYPE_STEMS — Audio Stems
- AUDIOSEQTYPE_MOVIE — Audio from Movie
- AUDIOSEQTYPE_TONE — Audio is generated Tone
AUDIOSYNCSTATUS
Status info related to audio sync progress
- AUDIOSYNCSTATUS_FAIL — Failure during audio sync operation
- AUDIOSYNCSTATUS_WARN — Warning during audio sync operation
- AUDIOSYNCSTATUS_INFO — Info from audio sync operation
- AUDIOSYNCSTATUS_NOTE — Note from audio sync operation
- AUDIOSYNCSTATUS_SCAN — Filesystem scanning progress
AUDIOSYNC_CRITERIA
Values for AudioSyncSettings Criteria
- AUDIOSYNC_CRITERIA_TIMECODE — Timecode
- AUDIOSYNC_CRITERIA_SRCTIMECODE — Source Timecode
- AUDIOSYNC_CRITERIA_DATESRCTIMECODE — Date & Source Timecode
- AUDIOSYNC_CRITERIA_SCENETAKE — Scene & Take
- AUDIOSYNC_CRITERIA_SHOTSCENETAKE — Shot Scene & Take
AUDIOSYNC_FPS
Values for AudioSyncSettings FPS
- AUDIOSYNC_FPS_23976 — 23.976 fps
- AUDIOSYNC_FPS_24000 — 24 fps
- AUDIOSYNC_FPS_25000 — 25 fps
- AUDIOSYNC_FPS_29970 — 29.97 fps
- AUDIOSYNC_FPS_2997DF — 29.97 fps DF
- AUDIOSYNC_FPS_30000 — 30 fps
- AUDIOSYNC_FPS_48000 — 48 fps
- AUDIOSYNC_FPS_50000 — 50 fps
- AUDIOSYNC_FPS_59940 — 59.94 fps
- AUDIOSYNC_FPS_60000 — 60 fps
AUDIOSYNC_METADATA
Values for AudioSyncSettings Metadata
- AUDIOSYNC_METADATA_SCENETAKE — Scene & Take
- AUDIOSYNC_METADATA_DATE — Date
AUDIOSYNC_RATIO
Values for AudioSyncSettings Ratio
- AUDIOSYNC_RATIO_1_TO_1 — 1:1
- AUDIOSYNC_RATIO_1001_TO_1000 — 1001:1000
- AUDIOSYNC_RATIO_1000_TO_1001 — 1000:1001
- AUDIOSYNC_RATIO_25_TO_24 — 25:24
- AUDIOSYNC_RATIO_24_TO_25 — 24:25
AUDIOSYNC_READLTC
Values for AudioSyncSettings ReadLTC
- AUDIOSYNC_READLTC_NO — No
- AUDIOSYNC_READLTC_CHANNEL — From Channel
- AUDIOSYNC_READLTC_TRACK — From Track
AUDIOSYNC_SUBSEARCH
Values for AudioSyncSettings SubSearch
- AUDIOSYNC_SUBSEARCH_ALL — All Sub-Directories
- AUDIOSYNC_SUBSEARCH_NAMED — Sub-Directories Named
- AUDIOSYNC_SUBSEARCH_NEAREST — Nearest Sub-Directory Named
AUDIO_RATE
Audio Sample Rate
- AUDIO_RATE_44100 — 44.1 kHz
- AUDIO_RATE_48000 — 48 kHz
- AUDIO_RATE_96000 — 96 kHz
BLGEXPORT_LOCKGRADE
Values for BLGExportSettings LockGrade
- BLGEXPORT_LOCKGRADE_READWRITE — No
- BLGEXPORT_LOCKGRADE_LOCKED — Yes
BLGEXPORT_SCALE
Values for BLGExportSettings Scale
- BLGEXPORT_SCALE_1 — Full
- BLGEXPORT_SCALE_2 — Half
- BLGEXPORT_SCALE_4 — Quarter
- BLGEXPORT_SCALE_16 — Sixteenth
BURNIN_BORDER
Define border type for burnin text item
- BURNIN_BORDER_NONE — No border
- BURNIN_BORDER_RECTANGLE — Rectangle
- BURNIN_BORDER_LOZENGE — Lozenge
BURNIN_HALIGN
Define horizontal alignment of burnin text item
- BURNIN_HALIGN_LEFT — Left aligned
- BURNIN_HALIGN_CENTER — Center aligned
- BURNIN_HALIGN_RIGHT — Right aligned
BURNIN_ITEM_TYPE
Specify burnin item type
- BURNIN_ITEM_TEXT — Text item
- BURNIN_ITEM_IMAGE — Image item
BURNIN_VALIGN
Define vertical alignment of burnin text item
- BURNIN_VALIGN_TOP — Top aligned
- BURNIN_VALIGN_MIDDLE — Middle aligned
- BURNIN_VALIGN_BOTTOM — Bottom aligned
CAT_MODE
Chromatic Adaptation Transform
- ACES — ACES Workflow (dynamic)
- BRADFORD — Bradford
- CIECAT02 — CIECAT02
- VONKRIES — von Kries
- XYZ — xyz (legacy)
CDLEXPORT_CDLLAYER
Values for CDLExportSettings CDLLayer
- CDLEXPORT_CDLLAYER_TOP — Topmost CDL
- CDLEXPORT_CDLLAYER_BOTTOM — Bottommost CDL
- CDLEXPORT_CDLLAYER_CUSTOM — Layer n
CDLEXPORT_FORMAT
Values for CDLExportSettings Format
- CDLEXPORT_FORMAT_CC — .cc file Color Correction, one correction per file
- CDLEXPORT_FORMAT_CCC — .ccc file Color Correction Collection, all corrections in one file
- CDLEXPORT_FORMAT_CDL — .cdl file Color Decision List
CUBEEXPORT_CUBERESOLUTION
Values for CubeExportSettings CubeResolution
- CUBEEXPORT_CUBERESOLUTION_DEFAULT — Default
- CUBEEXPORT_CUBERESOLUTION_16 — 16x16x16
- CUBEEXPORT_CUBERESOLUTION_17 — 17x17x17
- CUBEEXPORT_CUBERESOLUTION_32 — 32x32x32
- CUBEEXPORT_CUBERESOLUTION_33 — 33x33x33
- CUBEEXPORT_CUBERESOLUTION_64 — 64x64x64
- CUBEEXPORT_CUBERESOLUTION_65 — 65x65x65
CUBEEXPORT_EXTENDEDRANGES
Values for CubeExportSettings ExtendedRanges
- CUBEEXPORT_EXTENDEDRANGES_NO — No
- CUBEEXPORT_EXTENDEDRANGES_LINEAR — Linear
- CUBEEXPORT_EXTENDEDRANGES_LOG — Log
CUBEEXPORT_LUT1OPTIONS
Values for CubeExportSettings LUT1Options
- CUBEEXPORT_LUT1OPTIONS_INPUT — Input Transform
- CUBEEXPORT_LUT1OPTIONS_GRADE — Grade
- CUBEEXPORT_LUT1OPTIONS_OUTPUT — Output Transform
CUBEEXPORT_LUT2OPTIONS
Values for CubeExportSettings LUT2Options
- CUBEEXPORT_LUT2OPTIONS_INPUT — Input Transform
- CUBEEXPORT_LUT2OPTIONS_GRADE — Grade
- CUBEEXPORT_LUT2OPTIONS_OUTPUT — Output Transform
CUBEEXPORT_LUT3OPTIONS
Values for CubeExportSettings LUT3Options
- CUBEEXPORT_LUT3OPTIONS_INPUT — Input Transform
- CUBEEXPORT_LUT3OPTIONS_GRADE — Grade
- CUBEEXPORT_LUT3OPTIONS_OUTPUT — Output Transform
CUBEEXPORT_LUTFORMAT
Values for CubeExportSettings LUTFormat
- CUBEEXPORT_LUTFORMAT_TRUELIGHT — Truelight cube
- CUBEEXPORT_LUTFORMAT_TRUELIGHT_1D — Truelight 1D
- CUBEEXPORT_LUTFORMAT_AMIRA — AMIRA
- CUBEEXPORT_LUTFORMAT_ARRI — Arri
- CUBEEXPORT_LUTFORMAT_AUTODESK — Autodesk
- CUBEEXPORT_LUTFORMAT_AUTODESK_1D — Autodesk 1D
- CUBEEXPORT_LUTFORMAT_AUTODESK_1DF — Autodesk 1D half float
- CUBEEXPORT_LUTFORMAT_AUTODESK_MESH — Autodesk Lustre (Mesh)
- CUBEEXPORT_LUTFORMAT_AUTODESK_CTF — Autodesk CTF
- CUBEEXPORT_LUTFORMAT_BMD — BMD
- CUBEEXPORT_LUTFORMAT_BARCO — Barco
- CUBEEXPORT_LUTFORMAT_BLACKMAGIC — BlackMagic
- CUBEEXPORT_LUTFORMAT_BLACKMAGIC_1D — BlackMagic 1D
- CUBEEXPORT_LUTFORMAT_CLF — CLF (Common LUT Format)
- CUBEEXPORT_LUTFORMAT_CANON_1D — Canon gamma 1D
- CUBEEXPORT_LUTFORMAT_CANON_3D — Canon gamut 3D
- CUBEEXPORT_LUTFORMAT_CINESPACE — CineSpace
- CUBEEXPORT_LUTFORMAT_COLORFRONT_1D — Colorfront 1D
- CUBEEXPORT_LUTFORMAT_COLORFRONT_3D — Colorfront 3D
- CUBEEXPORT_LUTFORMAT_DVS — DVS
- CUBEEXPORT_LUTFORMAT_DVS_1D — DVS 1D
- CUBEEXPORT_LUTFORMAT_DAVINCI — DaVinci
- CUBEEXPORT_LUTFORMAT_EVERTZ — Evertz
- CUBEEXPORT_LUTFORMAT_ICC — ICC
- CUBEEXPORT_LUTFORMAT_IRIDAS — IRIDAS
- CUBEEXPORT_LUTFORMAT_IRIDAS_1D — IRIDAS 1D
- CUBEEXPORT_LUTFORMAT_LUTHER — LUTher
- CUBEEXPORT_LUTFORMAT_NUCODA — Nucoda
- CUBEEXPORT_LUTFORMAT_PANASONIC — Panasonic
- CUBEEXPORT_LUTFORMAT_PANDORA — Pandora
- CUBEEXPORT_LUTFORMAT_QUANTEL — Quantel
- CUBEEXPORT_LUTFORMAT_QUANTEL_65 — Quantel 65x65x65
- CUBEEXPORT_LUTFORMAT_SCRATCH — Scratch
- CUBEEXPORT_LUTFORMAT_SONY — Sony
- CUBEEXPORT_LUTFORMAT_SONY_BVME — Sony BVME
CUBEEXPORT_LUTRESOLUTION
Values for CubeExportSettings LUTResolution
- CUBEEXPORT_LUTRESOLUTION_DEFAULT — Default
- CUBEEXPORT_LUTRESOLUTION_1024 — 1024
- CUBEEXPORT_LUTRESOLUTION_4096 — 4096
- CUBEEXPORT_LUTRESOLUTION_16384 — 16384
CUBEEXPORT_NUMLUTS
Values for CubeExportSettings NumLUTs
- CUBEEXPORT_NUMLUTS_1 — 1
- CUBEEXPORT_NUMLUTS_2 — 2
- CUBEEXPORT_NUMLUTS_3 — 3
DECODEPARAM_TYPE
Data type for a DecodeParameterDefinition
- DECODEPARAMTYPE_INTEGER — Integer value
- DECODEPARAMTYPE_FLOAT — Floating-point value
- DECODEPARAMTYPE_BOOLEAN — Boolean value, represented as 1 or 0
- DECODEPARAMTYPE_CHOICE — A choice for a set of discrete values
- DECODEPARAMTYPE_FILE — Filename or path to a file
DECODEQUALITY
Decode Qulity to use for decoding source images for RAW codecs
- DECODEQUALITY_HIGH — Use highest quality RAW decode
- DECODEQUALITY_OPTIMISED — Use nearest decode quality for render format/resolution
- DECODEQUALITY_DRAFT — Use fastest decode quality
DIALOG_ITEM_TYPE
Type for a DynamicDialogItem used in a DynamicDialog BETA
- DIT_STRING — String
- DIT_INTEGER — Integer
- DIT_FLOAT — Floating-point number
- DIT_TIMECODE — Timecode
- DIT_DROPDOWN — Dropdown
- DIT_LIST — List of items
- DIT_TOGGLE — Toggle Button
- DIT_TOGGLE_SET — Set of Toggle buttons
- DIT_TOGGLE_DROPDOWN — Dropdown menu to allow toggling multiple items
- DIT_TOGGLE_LIST — List of toggle items
- DIT_RADIO_GROUP — Set of radio buttons
- DIT_FILEPATH — File Path
- DIT_IMAGEPATH — Image Path
- DIT_DIRECTORY — Directory Path
- DIT_SHOT_SELECTION — Shot Selection
- DIT_STATIC_TEXT — Static Text
- DIT_SHOT_CATEGORY — Shot Category
- DIT_SHOT_CATEGORY_SET — Shot Category Set
- DIT_MARK_CATEGORY — Shot Category
- DIT_MARK_CATEGORY_SET — Mark Category Set
DOLBY_VISION_MODE
Dolby Vision Mode
- DOLBYVISIONMODE_OFF — Off
- DOLBYVISIONMODE_SOFT_CMU_29 — Internal CMU (v2.9)
- DOLBYVISIONMODE_SOFT_CMU_40 — Internal CMU (v4)
EXPORTSTATUS
Status info related to Export progress
- EXPORTSTATUS_FAIL — Failure during export operation
- EXPORTSTATUS_WARN — Warning during export operation
- EXPORTSTATUS_INFO — Info from export operation
- EXPORTSTATUS_NOTE — Note from export operation
- EXPORTSTATUS_SCAN — Filesystem scanning progress
EXPORTTYPE
Type of Exporter BETA
- EXPORTTYPE_STILL — Stills Exporter
- EXPORTTYPE_BLG — BLG Exporter
- EXPORTTYPE_CUBE — Cube Exporter
- EXPORTTYPE_CDL — CDL Exporter
- EXPORTTYPE_AMF — AMF Exporter
EXPORT_CATEGORYMATCH
Values for Exporter CategoryMatch field
- EXPORT_CATEGORYMATCH_ALL — All Categories
- EXPORT_CATEGORYMATCH_ANY — Any Category
EXPORT_FRAMES
Values for Exporter Frames field
- EXPORT_FRAMES_FIRST — First Frame
- EXPORT_FRAMES_POSTER — Poster Frame
- EXPORT_FRAMES_MARKED — Marked Frames
- EXPORT_FRAMES_CURRENT — Current Frame
EXPORT_OVERWRITE
Values for Exporter Overwrite field
- EXPORT_OVERWRITE_SKIP — Skip
- EXPORT_OVERWRITE_REPLACE — Replace
EXPORT_SOURCE
Values for Exporter Source field
- EXPORT_SOURCE_ALLSHOTS — All Shots
- EXPORT_SOURCE_SELECTEDSHOTS — Selected Shots
- EXPORT_SOURCE_CURRENTSHOT — Current Shot
- EXPORT_SOURCE_SHOTSINFILTER — Shots in Filter
- EXPORT_SOURCE_SHOTSOFCATEGORY — Shots of Category
EXPORT_STEREO
Values for Exporter Stereo field
- EXPORT_STEREO_CURRENT — Current Eye
- EXPORT_STEREO_LEFT — Left Eye
- EXPORT_STEREO_RIGHT — Right Eye
- EXPORT_STEREO_BOTH — Left & Right Eyes
- EXPORT_STEREO_SINGLESTACKSTEREO — Single Stack Stereo (BLG exports only)
FDL_ALIGNMENT_METHOD_HORIZONTAL
Policy for horizontally aligning source within target dimensions
- FDLAMH_LEFT — Align source to left
- FDLAMH_CENTER — Align source in center
- FDLAMH_RIGHT — Align source to right
FDL_ALIGNMENT_METHOD_VERTICAL
Policy for vertically aligning source within target dimensions
- FDLAMV_TOP — Align source to top
- FDLAMV_CENTER — Align source to center
- FDLAMV_BOTTOM — Align source to bottom
FDL_EVEN_MODE
Policy to use when canvas template size
- FDLEM_WHOLE — Round to whole number
- FDLEM_EVEN — Round to even number
FDL_FIT_METHOD
Method to fit source dimensions into target dimensions
- FDLFM_WIDTH — Fit width of source into target
- FDLFM_HEIGHT — Fit height of source into target
- FDLFM_FIT_ALL — Fit both width and height of source into target
- FDLFM_FILL — Fill target dimensions with source
FDL_FIT_SOURCE
Which area of source canvas to use when applying a canvas template
- FDLFS_FRAMING_DECISION_DIMENSIONS — Dimensions of framing decision
- FDLFS_FRAMING_DECISION_PROTECTION_DIMENSIONS — Protection Dimensions of framing decision
- FDLFS_CANVAS_DIMENSIONS — Dimensions of source canvas
- FDLFS_CANVAS_EFFECTIVE_DIMENSIONS — Effective Dimensions of source canvas
FDL_PRESERVE_MODE
Policy for preserving areas of source canvas in target canvas
- FDLPM_NONE — No areas to preserve
- FDLPM_FRAMING_DECISION_DIMENSIONS — Framing decision dimensions
- FDLPM_FRAMING_DECISION_PROTECTION_DIMENSIONS — Framing decision protection dimensions
- FDLPM_CANVAS_DIMENSIONS — Canvas dimensions
- FDLPM_CANVAS_EFFECTIVE_DIMENSIONS — Canvas effective dimensions
FDL_ROUND_MODE
Policy to use when rounding floating-point values for canvas template size
- FDLRM_UP — Round values up to nearest whole number
- FDLRM_DOWN — Round values down to nearest whole number
- FDLRM_ROUND — Round values 0.5 and above up, and values below 0.5 down
FIELDORDER
Field order behaviour
- FIELDORDER_PROGRESSIVE — Progressive
- FIELDORDER_UPPER — Upper-field first (PAL/SECAM)
- FIELDORDER_LOWER — Lower-field first (NTSC)
FORMATSET_SCOPE
Defines the scope that a FormatSet is defined in
- FORMATSET_SCOPE_FACTORY — Factory formats built-in to the software
- FORMATSET_SCOPE_GLOBAL — Global Formats from the global formats database
- FORMATSET_SCOPE_JOB — Formats defined for a given job in a database
- FORMATSET_SCOPE_SCENE — Formats defined for a given scene
FSFILTER
Type of items to return from Filesystem get_items method
- FSFILTER_FILE — Return files
- FSFILTER_DIR — Return directories
HDR_CLIPPING_BEHAVIOUR
HDR Clipping Behaviour
- HDRCLIP_LEGACY — Legacy - HDR values clipped on all image transforms
- HDRCLIP_NOCLIP — Never Clip - HDR values preserved
- HDRCLIP_CLIP — Clip Inputs - HDR values clipped on input only
- HDRCLIP_CLIPNEG — Clip Negative Inputs - Negative HDR input values clipped to 0
IMAGETRANSFORM_MODE
Specify filtering kernel to use for image resampling/transform operations
- IMAGETRANSFORM_ADAPTIVE — Adaptive
- IMAGETRANSFORM_BOX — Square Average (Box filter)
- IMAGETRANSFORM_CIRCLE — Circle average
- IMAGETRANSFORM_COMPOSITE — Composite
- IMAGETRANSFORM_CUBIC — Fixed Cubic
- IMAGETRANSFORM_CUBIC_SPLINE — Fixed Cubic Spline
- IMAGETRANSFORM_LANCZOS — Fixed Lanczos 4-tap
- IMAGETRANSFORM_6LANCZOS — Fixed Lanczos 6-tap
- IMAGETRANSFORM_6QUINTIC — Fixed Quintic 6-tap
- IMAGETRANSFORM_GAUSSIAN — Fixed Gaussian
- IMAGETRANSFORM_CATMULL_ROM — Fixed Catmull-Rom
- IMAGETRANSFORM_SIMON — Fixed Simon
- IMAGETRANSFORM_LINEAR — Fixed Linear
- IMAGETRANSFORM_NEAREST — Fixed Nearest Pixel
- IMAGETRANSFORM_SHARPEDGE — Sharp Edge
INSERT_POSITION
Specify where to insert a sequence in a Scene
- INSERT_START — Insert sequence at start of scene
- INSERT_END — Insert sequence at end of scene
- INSERT_BEFORE — Insert sequence before specified Shot
- INSERT_AFTER — Insert sequence after specified Shot
- INSERT_ABOVE — Insert sequence above specified Shot
- INSERT_BELOW — Insert sequence below specified Shot
LOG_SEVERITY
Log Message Severity BETA
- LOGSEVERITY_HARD — Hard error
- LOGSEVERITY_SOFT — Soft error
- LOGSEVERITY_INFO — Information or transient message
LUT_LOCATION
Specify where LUT data should be found for a LUT operator
- LUTLOCATION_FILE — LUT is stored in an external file
- LUTLOCATION_EMBEDDED — LUT is embedded in source image file
MARK_TYPE
Used to distinguish between timeline, shot and strip marks
- MARKTYPE_TIMELINE — Timeline mark, position stored as time in seconds relative to start of timeline
- MARKTYPE_SHOT — Shot mark, position stored as source image frame number
- MARKTYPE_STRIP — Strip mark, position stored as time in seconds relative to start of strip
MASTERING_OPERATION
Mastering Operation
- MASTERINGOP_NONE — No operation (disabled)
- MASTERINGOP_WHITE_CLIP — Set White & Clip
- MASTERINGOP_WHITE — Set White (no clip)
MASTERING_WHITE_POINT
Mastering White Point
- MASTERINGWP_NONE — From Mastering Colour Space
- MASTERINGWP_D55 — D55
- MASTERINGWP_D60 — D60
- MASTERINGWP_D65 — D65
- MASTERINGWP_D93 — D93
- MASTERINGWP_DCI — DCI
MENU_LOCATION
Location within application of new menu or menu item BETA
- MENULOCATION_APP_MENU — Main application menu, ie Baselight or Daylight
- MENULOCATION_SCENE_MENU — Scene menu
- MENULOCATION_EDIT_MENU — Edit menu
- MENULOCATION_JOB_MANAGER — Job Manager
- MENULOCATION_SHOT_VIEW — Shots View
- MENULOCATION_FLUXMANAGE_BROWSER — FLUX Manage Browser
MULTIPASTESTATUS
Status info related to Multi-Paste progress
- MULTIPASTESTATUS_FAIL — Failure during multi-paste operation
- MULTIPASTESTATUS_WARN — Warning during multi-paste operation
- MULTIPASTESTATUS_INFO — Info from multi-paste operation
- MULTIPASTESTATUS_NOTE — Note from multi-paste operation
- MULTIPASTESTATUS_SCAN — Filesystem scanning progress
MULTIPASTE_BLGRESOURCECONFLICT
Values for MultiPasteSettings BLGResourceConflict
- MULTIPASTE_BLGRESOURCECONFLICT_REPLACE — Replace Existing Resources with BLG Versions
- MULTIPASTE_BLGRESOURCECONFLICT_ORIGINAL — Use Existing Resources with the Same Name
- MULTIPASTE_BLGRESOURCECONFLICT_RENAME — Import BLG Resources Under a New Name
MULTIPASTE_DESTSELECTION
Values for MultiPasteSettings DestSelection
- MULTIPASTE_DESTSELECTION_SELECTEDSTRIPS — Timeline Stacks Containing a Selected Strip
- MULTIPASTE_DESTSELECTION_SELECTEDSHOTS — Selected Shots in Shots View/Cuts View
MULTIPASTE_DESTSHOTS
Values for MultiPasteSettings DestShots
- MULTIPASTE_DESTSHOTS_OVERWRITEALL — Overwrite All
- MULTIPASTE_DESTSHOTS_OVERWRITEALLEXCEPTCATS — Overwrite All, Except Layers of Category
- MULTIPASTE_DESTSHOTS_RETAINALL — Retain All
- MULTIPASTE_DESTSHOTS_RETAINALLEXCEPTCATS — Retain All, Except Layers of Category
MULTIPASTE_EDLAPPLYASCCDL
Values for MultiPasteSettings EDLApplyASCCDL
- MULTIPASTE_EDLAPPLYASCCDL_NO — No
- MULTIPASTE_EDLAPPLYASCCDL_CDL — Yes
MULTIPASTE_LAYERZEROBEHAVIOUR
Values for MultiPasteSettings LayerZeroBehaviour
- MULTIPASTE_LAYERZEROBEHAVIOUR_STACKONLY — All Layers, Except Layer 0
- MULTIPASTE_LAYERZEROBEHAVIOUR_LAYERZEROANDSTACK — All Layers, Including Layer 0
- MULTIPASTE_LAYERZEROBEHAVIOUR_LAYERZEROONLY — Layer 0 Only
- MULTIPASTE_LAYERZEROBEHAVIOUR_NOLAYERS — No Layers
MULTIPASTE_LAYERZEROCATEGORIES
Values for MultiPasteSettings LayerZeroCategories
- MULTIPASTE_LAYERZEROCATEGORIES_INCLUDE — Append Categories, Except
- MULTIPASTE_LAYERZEROCATEGORIES_OVERWRITE — Replace Categories, Add All Except
- MULTIPASTE_LAYERZEROCATEGORIES_NO — Do Not Copy Layer 0 Categories
MULTIPASTE_MATCHBY
Values for MultiPasteSettings MatchBy
- MULTIPASTE_MATCHBY_TAPENAME — Source Tape Name
- MULTIPASTE_MATCHBY_FILENAME — Source Path+Filename
- MULTIPASTE_MATCHBY_FILENAMEONLY — Source Filename
- MULTIPASTE_MATCHBY_CLIPNAME — Source Clip Name
- MULTIPASTE_MATCHBY_AVIDUID — Source Avid UID
- MULTIPASTE_MATCHBY_CAMERA — Source Camera
- MULTIPASTE_MATCHBY_BLGNAME — Source BLG Name
- MULTIPASTE_MATCHBY_BLGID — Source BLG ID
- MULTIPASTE_MATCHBY_SCENE — Source Scene
- MULTIPASTE_MATCHBY_SCENETAKE — Source Scene & Take
- MULTIPASTE_MATCHBY_CAMERAROLL — Source Camera Roll
- MULTIPASTE_MATCHBY_LABROLL — Source Lab Roll
- MULTIPASTE_MATCHBY_LUT — Source LUT
- MULTIPASTE_MATCHBY_LUT2 — Source LUT2
- MULTIPASTE_MATCHBY_ASC_CC_XML — Source ASC_CC_XML
- MULTIPASTE_MATCHBY_AMF_NAME — Source AMF_NAME
- MULTIPASTE_MATCHBY_AMF_UUID — Source AMF_UUID
- MULTIPASTE_MATCHBY_FRAMENUMBER — Source Frame Number
- MULTIPASTE_MATCHBY_TIMECODE — Source Timecode
- MULTIPASTE_MATCHBY_KEYCODE — Source Keycode
- MULTIPASTE_MATCHBY_RECORDFRAMENUMBER — Record Frame Number
- MULTIPASTE_MATCHBY_RECORDTIMECODE — Record Timecode
- MULTIPASTE_MATCHBY_ALWAYSMATCH — Ignore Time Ranges
MULTIPASTE_MATCHQUALITY
Values for MultiPasteSettings MatchQuality
- MULTIPASTE_MATCHQUALITY_EXACTMATCH — Exact
- MULTIPASTE_MATCHQUALITY_FUZZYMATCH — Fuzzy
MULTIPASTE_PASTELOCATION
Values for MultiPasteSettings PasteLocation
- MULTIPASTE_PASTELOCATION_ABOVE — Above Remaining Destination Layers
- MULTIPASTE_PASTELOCATION_BELOW — Below Remaining Destination Layers
MULTIPASTE_SOURCE
Values for MultiPasteSettings Source
- MULTIPASTE_SOURCE_COPYBUFFER — Current Copy Buffer
- MULTIPASTE_SOURCE_MULTIPLESCENES — Multiple Scenes
- MULTIPASTE_SOURCE_BLG — BLG Files
- MULTIPASTE_SOURCE_AMF — Academy Metadata Files (AMFs)
- MULTIPASTE_SOURCE_LUT — LUT Files
- MULTIPASTE_SOURCE_CDL — CDL/CCC XML Files
- MULTIPASTE_SOURCE_EDL — EDL/ALE files
MULTIPASTE_SOURCESHOTS
Values for MultiPasteSettings SourceShots
- MULTIPASTE_SOURCESHOTS_COPYALL — Copy All
- MULTIPASTE_SOURCESHOTS_COPYALLEXCEPTCATS — Copy All, Except Layers of Category
- MULTIPASTE_SOURCESHOTS_COPYONLYCATS — Copy Only Layers of Category
OPENFLAG
Flags used to control opening a scene
- OPENFLAG_DISCARD — Discard any unsaved changes when opening scene
- OPENFLAG_RECOVER — Recover any unsaved changes when opening scene
- OPENFLAG_OLD — Allow opening of old scenes
- OPENFLAG_IGNORE_REVISION — Ignore data revision number when opening scene
- OPENFLAG_READ_ONLY — Open scene read-only
- OPENFLAG_ALLOW_UNKNOWN_OFX — Allow opening scenes that reference unknown OpenFX plugins
- OPENFLAG_NO_CONTAINER_WARNING — Don't warn if scene uses container that is not known on this machine
OPERATOR_BARS_TYPE
Define the type of Bars to render
- OPERATOR_BARS_TYPE_RP219HD_2a3a — SMPTE 75% white
- OPERATOR_BARS_TYPE_RP219HD_2b3a — SMPTE 100% white
- OPERATOR_BARS_TYPE_RP219HD_2c3b — SMPTE +I +Q
- OPERATOR_BARS_TYPE_RP219HD_2d3b — SMPTE -I +Q
- OPERATOR_BARS_TYPE_GREYS17 — Grey bars
- OPERATOR_BARS_TYPE_RAMP — Grey ramp
- OPERATOR_BARS_TYPE_RGBGREY — RGB and greys
- OPERATOR_BARS_TYPE_B72 — BT.2111/ARIB B72 (HLG)
- OPERATOR_BARS_TYPE_ITU2111_PQ — BT.2111 (PQ)
- OPERATOR_BARS_TYPE_B66_4K — ARIB B66 (UHDTV 4K)
- OPERATOR_BARS_TYPE_B66_8K — ARIB B66 (UHDTV 8K)
OPSTATUS
Status of an operation in Queue or Processor
- OPSTATUS_CREATING — Operation is being created
- OPSTATUS_QUEUED — Operation is waiting in the queue
- OPSTATUS_ACTIVE — Operation is active
- OPSTATUS_CRASHED — Operation crashed
- OPSTATUS_STOPPED — Operation has been manually stopped
- OPSTATUS_TOONEW — Operation was submitted to the queue by a newer version of the software and cannot be processed
- OPSTATUS_DONE — Operation is complete
- OPSTATUS_FAILED — Operation failed
OPTICALFLOW_QUALITY
Optical Flow Quality
- OFLOWQUAL_MEDIUM — Medium Quality
- OFLOWQUAL_HIGH — High Quality
- OFLOWQUAL_BEST — Best Quality
OPTICALFLOW_SMOOTHING
Optical Flow Smoothing
- OFLOWSMOOTH_NONE — None
- OFLOWSMOOTH_LOW — Low
- OFLOWSMOOTH_MEDIUM — Medium
- OFLOWSMOOTH_HIGH — High
- OFLOWSMOOTH_MAX — Maximum
PROXY_RESOLUTION
Proxy Resolution of Render Format
- RES_HIGH — High (full) resolution
- RES_MEDIUM — Medium proxy resolution
- RES_LOW — Low proxy resolution
QUEUE_LOG_TYPE
Message type for log entry queue operation log BETA
- QUEUELOGTYPE_INFO — Information
- QUEUELOGTYPE_WARN — Warning
- QUEUELOGTYPE_FAIL — Error/failure
RENDER_ALPHA_HANDLING
Special values to use for AlphaHandling in RenderDeliverable
- RENDER_ALPHA_STRAIGHT — Straight (unpremultiplied) RGB
- RENDER_ALPHA_ONBLACK — Composite onto black
- RENDER_ALPHA_ONCHEQUER — Composite onto chequerboard
- RENDER_ALPHA_PREMULTIPLY — Premultiplied RGB
RENDER_CLIPNAME_SOURCE
Which clip name to embed into rendered output
- RENDER_CLIPNAME_FILE — Source File Clip Name
- RENDER_CLIPNAME_SHOT — Shot Clip Name
- RENDER_CLIPNAME_STRIP — Clip Name from Strip Name
RENDER_COLOURSPACE
Special values to use for RenderColourSpace in RenderDeliverable
- RENDER_COLOURSPACE_USEINPUT — Use Input Colour Space of Shot
- RENDER_COLOURSPACE_USESTACKOUTPUT — Use Stack Output Colour Space. This will resolve to the Scene Grade Result Colour Space if specified, otherwise this will resolve to the Scene Working Colour Space.
RENDER_EMPTY_BEHAVIOUR
Action to take when encountering frames in timeline with no strips/shots
- RENDER_EMPTY_FAIL — Fail Render
- RENDER_EMPTY_BLACK — Render Black Frame
- RENDER_EMPTY_CHEQUER — Render Chequerboard Frame
RENDER_ERROR_BEHAVIOUR
Action to take when encountering frames in timeline with no strips/shots
- RENDER_ERROR_FAIL — Fail Render
- RENDER_ERROR_SKIP — Skip Frame And Continue
- RENDER_ERROR_BLACK — Render Black Frame
- RENDER_ERROR_CHEQUER — Render Chequerboard Frame And Continue
RENDER_FORMAT
Special values to use for RenderFormat in RenderDeliverable
- RENDER_FORMAT_USEINPUT — Use Shot Input Format
RENDER_FRAMENUM
Specify how frame number for sequence should be calculated
- RENDER_FRAMENUM_SCENE_FRAME — Scene Frame Number
- RENDER_FRAMENUM_SHOT_FRAME — Shot Frame Number
- RENDER_FRAMENUM_SCENE_TIMECODE — Record Timecode as Frame Number
- RENDER_FRAMENUM_SHOT_TIMECODE — Shot Timecode as Frame Number
RENDER_INCOMPLETE_BEHAVIOUR
Action to take when encountering shots with missing strips
- RENDER_INCOMPLETE_FAIL — Fail Render
- RENDER_INCOMPLETE_CONTINUE — Render As Baselight (Chequerboard Missing)
- RENDER_INCOMPLETE_BLACK — Render Black Frame
- RENDER_INCOMPLETE_CHEQUER — Render Chequerboard Frame
RENDER_LAYER
Layers to include when rendering. This can be a layer number or one of the following constants.
- RENDER_LAYER_ALL — Include all grade layers in rendered output
- RENDER_LAYER_LAYERS_INPUTONLY — Do not include any grade layers or operators in layer 0
- RENDER_LAYER_LAYER0 — Do not include any grade layers
RENDER_MASK
Select whether to crop to the mask, or set the black value for the masked area
- RENDER_MASK_CROP — Crop image to mask
- RENDER_MASK_BLACK — Set mask area to absolue black (0)
- RENDER_MASK_VIDEO — Set mask area to video black (16/255)
- RENDER_MASK_FILM — Set mask area to film black (95/1023)
RENDER_NCLC_TAG
Which NCLC tag to use in QuickTime Movie files for colourimetry
- RENDER_NCLC_LEGACY — Use legacy NCLC tag
- RENDER_NCLC_AUTOMATIC — Use NCLC tag based on RenderColourSpace
RENDER_TAPENAME_SOURCE
Which tape name to embed into rendered output
- RENDER_TAPENAME_FILE — Source File Tape Name
- RENDER_TAPENAME_SHOT — Shot Tape Name
- RENDER_TAPENAME_CLIP — Shot Clip Name
- RENDER_TAPENAME_STRIP — Tape Name from Strip Name
RENDER_TIMECODE_SOURCE
Which timecode to embed into rendered output
- RENDER_TIMECODE_FILETC1 — File Timecode 1
- RENDER_TIMECODE_FILETC2 — File Timecode 2
- RENDER_TIMECODE_SHOTTC — Shot Timecode
- RENDER_TIMECODE_RECTC — Record (Timeline) Timecode
ROP_TEXT_ALIGN
Text alignment
- ROP_TEXT_ALIGN_LEFT — Left
- ROP_TEXT_ALIGN_CENTER — Center
- ROP_TEXT_ALIGN_RIGHT — Right
SEQRESAMPLE_MODE
Sequence Resample Mode to use when resampling a sequence to a different video frame rate
- SEQRESAMPLE_SNAP_TO_FRAME — Snap to Frame
- SEQRESAMPLE_ROLLING_MAX — Mix Nearest Frames
- SEQRESAMPLE_OPTICAL_FLOW — Optical Flow
- SEQRESAMPLE_RIFE — RIFE ML Retime
STEREO_EYE
Stereo eye
- STEREOEYE_MONO — Mono (no stereo)
- STEREOEYE_LEFT — Left eye
- STEREOEYE_RIGHT — Right eye
STEREO_MODE
Stereo Mode
- STEREOMODE_MONO — Not Stereo
- STEREOMODE_LEFT_ON_TOP — Left Eyes Are On Top
- STEREOMODE_RIGHT_ON_TOP — Right Eyes Are On Top
- STEREOMODE_SINGLE_STACK_STEREO — Single Stack Stereo
STILLEXPORT_BURNIN
Values for StillExportSettings Burnin
STILLEXPORT_DECODEQUALITY
Values for StillExportSettings DecodeQuality
- STILLEXPORT_DECODEQUALITY_GMDQ_OPTIMISED_UNLESS_HIGH — Max Quality Decode at maximum resolution
- STILLEXPORT_DECODEQUALITY_GMDQ_OPTIMISED — Optimised Decode at half resolution where possible, for speed
- STILLEXPORT_DECODEQUALITY_GMDQ_DRAFT — Draft Decode at draft quality, for maximum speed
STILLEXPORT_FILETYPE
Values for StillExportSettings FileType
STILLEXPORT_FORMAT
Values for StillExportSettings Format
STILLEXPORT_MASK
Values for StillExportSettings Mask
STILLEXPORT_MASKMODE
Values for StillExportSettings MaskMode
- STILLEXPORT_MASKMODE_CROP — Crop Image To Mask
- STILLEXPORT_MASKMODE_HARDBLACK — Hard Black (0) Mask
- STILLEXPORT_MASKMODE_VIDEOBLACK — Video Black (16/255) Mask
- STILLEXPORT_MASKMODE_FILMBLACK — Film Black (95/1023) Mask
STILLEXPORT_RESOLUTION
Values for StillExportSettings Resolution
STILLEXPORT_TRUELIGHT
Values for StillExportSettings Truelight
SVGFITMODE
Controls how an SVG is transformed/fitted into a shape strip's 'target area' (the working format area or an optional mask area transformed to the working format).
- SVGFITMODE_NONE — The SVG is translated to the corner of the target area. No Scaling is applied.
- SVGFITMODE_BEST — The SVG image is translated to the centre of the target area and pillarboxed or letterboxed to fit the target area's height or width respectively.
- SVGFITMODE_STRETCH — The SVG is stretched horizontally and vertically to fit the target area.
TIMELINE_CACHING_MODE
Timeline Caching Mode
- CACHINGMODE_OFF — Disabled
- CACHINGMODE_CACHE_STRIPS — Cache Strips Only
- CACHINGMODE_FULL_CACHING — Cache Display and Strips
VIDEOLUT
Video Scaling LUT
- VIDEOLUT_NONE — No video scaling LUT applied
- VIDEOLUT_SCALE — Full to Legal Scale
- VIDEOLUT_SCALE_NOCLIP — Full to Legal Scale (Unclipped)
- VIDEOLUT_UNSCALE — Legal to Full Scale
- VIDEOLUT_FULLRANGE_SOFTCLIP — Soft Clip to Full Range
- VIDEOLUT_CLIP — Clip to Legal
- VIDEOLUT_SOFTCLIP — Soft Clip to Legal
Examples
Opening a connection
import os
import sys
import flapi
c = flapi.Connection("localhost")
try:
c.connect()
except flapi.FLAPIException as exc:
print( "Error: %s" % exc )
sys.exit(1)
print( "Connection OK" )
Listing jobs in database
import flapi
c = flapi.Connection("localhost")
c.connect()
jobs = c.JobManager.get_jobs("localhost")
print( "Found %d jobs on localhost:" % len(jobs) )
for j in jobs:
print( " %s" % j )
print( "Done" )
Querying Shot metadata in a Scene
import flapi
import time
import sys
if len(sys.argv) < 2:
print( "No scene specified" )
print( "Usage: %s host:job:scene" % sys.argv[0] )
exit(1)
# Connect o FLAPI
conn = flapi.Connection()
try:
conn.connect()
except flapi.FLAPIException as ex:
print( "Cannot connect to FLAPI: %s" % ex )
sys.exit(1)
# Open the given scene
scene_path = conn.Scene.parse_path( sys.argv[1] )
try:
scene = conn.Scene.open_scene( scene_path, { flapi.OPENFLAG_READ_ONLY } )
except flapi.FLAPIException as ex:
print( "Error loading scene: %s" % ex )
sys.exit(1)
# Lookup names for each metadata item
tc_keys = {
"srctc",
"rectc"
}
md_keys = {
"filename",
"clip",
"tape",
"comment"
}
md_names = {}
mddefns = scene.get_metadata_definitions()
for k in tc_keys | md_keys:
defns = [x for x in mddefns if x.Key == k]
if defns and len(defns) > 0:
md_names[k] = defns[0].Name
cat_names = {}
cat_keys = scene.get_strip_categories()
for k in cat_keys:
cat_defn = scene.get_category(k)
cat_names[k] = cat_defn.Name
# Lookup shots
nshots = scene.get_num_shots()
print( "Found %d shot(s)" % nshots )
if nshots > 0:
shots = scene.get_shot_ids(0, nshots)
for shot_ix, shot_inf in enumerate(shots):
print("Shot %d:" % shot_ix)
# Get Shot object for shot with the given ID
shot = scene.get_shot(shot_inf.ShotId)
# Get start/end source and record timecode metadata as native Timecode objects
# using the get_metadata() method
shot_tcs = shot.get_metadata( tc_keys )
for tc_key, tc_val in shot_tcs.items():
print("%15s: %s - %s" % (md_names[tc_key], shot_tcs[tc_key][0], shot_tcs[tc_key][1]))
# Get other shot metadata in String form using the get_metadata_strings() method
shot_md = shot.get_metadata_strings(md_keys)
for md_key, md_val in shot_md.items():
print("%15s: %s" % (md_names[md_key], md_val))
# Get marks in shot
mark_ids = shot.get_mark_ids()
if len(mark_ids) > 0:
print( "%15s:" % "Marks" )
for ix,m in enumerate(mark_ids):
mark = shot.get_mark(m)
print( "%20d: Frame %d Type '%s' Message '%s'" % (
ix,
mark.get_record_frame(),
mark.get_category(),
mark.get_note_text()
)
)
mark.release()
# Get shot categories
categories = shot.get_categories()
if len(categories) > 0:
print("%15s: %s" % ("Categories", set(map(lambda c: cat_names.get(c), categories ) )) )
# Release Shot object
shot.release()
scene.close_scene()
scene.release()
Querying SequenceDescriptors for Shots in a Scene
import flapi
import time
import sys
import six
if len(sys.argv) < 2:
print( "No scene specified" )
print( "Usage: %s host:job:scene" % sys.argv[0] )
exit(1)
# Connect to FLAPI
conn = flapi.Connection()
conn.connect()
# Open scene
scene_path = conn.Scene.parse_path( sys.argv[1] )
try:
scene = conn.Scene.open_scene( scene_path, { flapi.OPENFLAG_READ_ONLY } )
except flapi.FLAPIException as ex:
print( "Error loading scene: %s" % ex )
sys.exit(1)
# Lookup shots
nshots = scene.get_num_shots()
print( "Found %d shots" % nshots )
if nshots > 0:
shots = scene.get_shot_ids(0, nshots)
# Get Shot IDs
for shot_ix, shot_inf in enumerate(shots):
print("shot %d:" % shot_ix)
#Get shot object
shot = scene.get_shot(shot_inf.ShotId)
# Get Shot SequenceDescriptor object
shot_seq = shot.get_sequence_descriptor()
if shot_seq:
print(" Path: %s" % shot_seq.get_full_filename_with_F() )
print(" Start: %d" % shot_seq.get_start_frame() )
print(" End: %d" % shot_seq.get_end_frame() )
else:
print(" No SequenceDescriptor available" )
shot_seq.release()
shot.release()
six.moves.input( "Press Enter to close scene & exit" )
print( "Closing scene" )
scene.close_scene()
scene.release()
Inserting a Sequence into a Scene
import sys
import flapi
if len(sys.argv) < 2:
print( "usage: insert_seq.py <path_to_sequence> [<start frame> <end frame>]" )
sys.exit(1)
conn = flapi.Connection("localhost")
try:
conn.connect()
except flapi.FLAPIException as ex:
print( "Cannot connect to FLAPI: %s" % ex )
sys.exit(1)
jm = conn.JobManager
if not jm.job_exists("localhost", "flapi"):
jm.create_job( "localhost", "flapi" )
if jm.scene_exists( "localhost", "flapi", "insert_test" ):
jm.delete_scene( "localhost", "flapi", "insert_test", ignoreLocks=1 )
sceneOptions = {
"format": "HD 1920x1080",
"colourspace": "FilmLight_TLog_EGamut",
"frame_rate": 24.0,
"field_order" : flapi.FIELDORDER_PROGRESSIVE
}
scene_path = flapi.ScenePath({ "Host": "localhost", "Job": "flapi", "Scene": "insert_test"})
try:
scene = conn.Scene.new_scene( scene_path, sceneOptions )
except flapi.FLAPIException as ex:
print( "Error creating scene: %s" % ex )
sys.exit(1)
# Create SequenceDescriptor for the given path/frame-range
template = sys.argv[1]
if len(sys.argv) > 2:
startFrame = int( sys.argv[2], 10 )
endFrame = int( sys.argv[3], 10 )
else:
startFrame = None
endFrame = None
seqs = conn.SequenceDescriptor.get_for_template( template, None, None )
if len(seqs)==0:
print( "Cannot find SequenceDescriptor for " + template )
sys.exit(1)
# Insert SequenceDescriptor into Scene, producing a Shot object
scene.start_delta("Insert Sequence(s)")
shots = []
for seq in seqs:
shot = scene.insert_sequence( seq, flapi.INSERT_END, None, None, None )
shots.append(shot)
seq.release()
scene.end_delta()
# Print out some info about the sequence we just inserted
for shot in shots:
md = shot.get_metadata_strings( [ "clip", "tape", "srctc" ] )
for mdk in md:
print( " %s: %s" % (mdk, md[mdk]) )
# Release Shot objects
for shot in shots:
shot.release()
# Save changes
scene.save_scene()
scene.close_scene()
scene.release()
Rendering a Scene using the Queue
import flapi
import sys
import time
if len(sys.argv) < 2:
print("usage: %s host:job:scene")
sys.exit(1)
conn = flapi.Connection("localhost")
try:
conn.connect()
except flapi.FLAPIException as ex:
print( "Cannot connect to FLAPI: %s" % ex )
sys.exit(1)
# Open the scene
scene_path = conn.Scene.parse_path( sys.argv[1] )
try:
scene = conn.Scene.open_scene( scene_path )
except flapi.FLAPIException as ex:
print( "Error loading scene: %s" % ex )
sys.exit(1)
# Create RenderSetup
print( "Create RenderSetup for Scene")
renderSetup = conn.RenderSetup.create_from_scene( scene )
# Check that at least one deliverable is enabled
if 0 not in [renderSetup.get_deliverable(i).Disabled for i in range(renderSetup.get_num_deliverables())]:
print("No render deliverables are enabled in this scene. Enable at least one in the Render View in the Baselight UI and save the scene.")
sys.exit(1)
# Create Queue Manager
print( "Opening QueueManager connection" )
qm = conn.QueueManager.create_local()
# Submit render job to Queue
print( "Submitting to queue" )
opinfo = renderSetup.submit_to_queue( qm, "FLAPI Render Test " + sys.argv[1] )
print( "Created operation id %d" % opinfo.ID )
if opinfo.Warning != None:
print( "Warning: %s" % opinfo.Warning )
# We're finished with RenderSetup now
renderSetup.release()
# We're finished with Scene now
scene.close_scene()
scene.release()
# Wait on job to finish
print( "Waiting on render job to complete" )
while True:
opstat = qm.get_operation_status( opinfo.ID )
print( " Status: {Status} {Progress:.0%} {ProgressText}".format(**vars(opstat)) )
if opstat.Status == "Done":
break
time.sleep(0.5)
print( "Operation complete" )
# Remove completed operation from queue
print( "Archiving operaton" )
qm.archive_operation( opinfo.ID )
qm.release()
Querying operation status in the Queue
import flapi
import sys
conn = flapi.Connection("localhost")
conn.connect()
qm = conn.QueueManager.create_local()
ids = qm.get_operation_ids()
for id_ in ids:
print( "Operation %d" % id_ )
op = qm.get_operation( id_ )
status = qm.get_operation_status( id_ )
log = qm.get_operation_log( id_ )
print( " Desc: %s" % op.Description )
print( " Status: %s" % status.Status )
print( " Progress: %.1f" % (status.Progress * 100.0) )
print( " Last Message: %s" % status.ProgressText )
print( " Log:" )
for l in log:
print( " %s %s: %s" % (l.Time, l.Message, l.Detail) )
Generated on Mon 12 Jan 2026 at 13:03:12