1. mocha package

class mocha.Settings(override=False, read_overridden=True)

Bases: PySide2.QtCore.QSettings

class BooleanSettingAccessor(key, default_value=None, choices={})

Bases: mocha.Settings.SettingAccessor

value_types

alias of builtins.bool

class CustomSettingAccessor(custom_getter, custom_setter)

Bases: object

class FloatSettingAccessor(key, default_value=None, choices={})

Bases: mocha.Settings.SettingAccessor

value_types

alias of builtins.float

class IntegerSettingAccessor(key, default_value=None, choices={})

Bases: mocha.Settings.SettingAccessor

value_types

alias of builtins.int

class SettingAccessor(key, default_value=None, choices={})

Bases: object

value_types = None
class SettingAccessorCoupler(mapper_data)

Bases: object

class StringSettingAccessor(key, default_value=None, choices={})

Bases: mocha.Settings.SettingAccessor

value_types

alias of builtins.str

absolute_output_dir
absolute_output_dir_enabled
allKeys(self) → typing.List[str]
childGroups(self) → typing.List[str]
childKeys(self) → typing.List[str]
disable_offscreen_buffers
enable_cl_tracker
gpu_device
output_format
relative_output_dir
setValue(self, key: str, value: typing.Any)
undo_history_size
use_with_ae
value(self, key: str, defaultValue: typing.Any = Invalid(typing.Any)) → typing.Any
mocha.get_mocha_exec_name(app='mochapro')
Parameters

app (str) – application name (without an extension)

Return the absolute path of the mocha executable file.

mocha.run_mocha(app='mochapro', footage_path='', **kwargs)
Parameters
  • app (str) – application name (without an extension)

  • footage_path (str) – an absolute path to footage file

  • kwargs – Keyword arguments for command line.

Run mocha application with given command-line arguments

See https://borisfx.com/support/documentation/mocha/#_command_line

Keywords mapping:

in_point => --in
out_point => --out
frame_rate => --frame-rate
par => --par
interlace_mode => --interlace-mode