fxcore
The fxcore module provides a set of tools for managing and automating the creation of VFX entities.
check_asset
Checks if a valid asset directory structure exists within a project.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
base_dir |
str
|
The base directory where the asset should be located, typically the "project/production/assets" directory. Defaults to the current directory. |
'.'
|
Returns:
| Name | Type | Description |
|---|---|---|
bool |
bool
|
|
check_assets_directory
Checks if a valid "assets" (which holds the assets) directory structure exists within a project.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
base_dir |
str
|
The base directory where the "assets" directory should be located, typically the "project/production" directory. Defaults to the current directory. |
'.'
|
Returns:
| Name | Type | Description |
|---|---|---|
bool |
bool
|
|
check_project
Checks if a valid project directory structure exists.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
base_dir |
str
|
The base directory where the project should be located. Defaults to the current directory. |
'.'
|
Returns:
| Name | Type | Description |
|---|---|---|
bool |
bool
|
|
check_sequence
Checks if a valid sequence directory structure exists within a project.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
base_dir |
str
|
The base directory where the sequence should be located, typically the "project/production/shots" directory. Defaults to the current directory. |
'.'
|
Returns:
| Name | Type | Description |
|---|---|---|
bool |
bool
|
|
check_shot
Checks if a valid shot directory structure exists within a sequence.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
base_dir |
str
|
The base directory where the shot should be located, typically the "project/production/shots/sequence" directory. Defaults to the current directory. |
'.'
|
Returns:
| Name | Type | Description |
|---|---|---|
bool |
bool
|
|
check_shots_directory
Checks if a valid "shots" (which holds the sequences) directory structure exists within a project.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
base_dir |
str
|
The base directory where the "shots" directory should be located, typically the "project/production" directory. Defaults to the current directory. |
'.'
|
Returns:
| Name | Type | Description |
|---|---|---|
bool |
bool
|
|
check_step
Checks if a valid step directory structure exists within a project.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
base_dir |
str
|
The base directory where the step should be located, typically the "project/production/steps" directory. Defaults to the current directory. |
'.'
|
Returns:
| Name | Type | Description |
|---|---|---|
bool |
bool
|
|
check_task
Checks if a valid task directory structure exists within a project.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
base_dir |
str
|
The base directory where the task should be located, typically the "project/production/tasks" directory. Defaults to the current directory. |
'.'
|
Returns:
| Name | Type | Description |
|---|---|---|
bool |
bool
|
|
check_workfiles_directory
Checks if a valid workfile directory structure exists within a project.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
base_dir |
str
|
The base directory where the workfile should be located, typically the "project/production/workfiles" directory. Defaults to the current directory. |
'.'
|
Returns:
| Name | Type | Description |
|---|---|---|
bool |
bool
|
|
create_asset
Creates a new asset directory structure within a project.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
asset_name |
str
|
The name of the asset to create. |
required |
base_dir |
str
|
The base directory where the asset will be created, typically the "project/production/assets" directory. Defaults to the current directory. |
'.'
|
parent |
QWidget
|
The parent widget for the message box. Only applicable in a GUI environment. |
None
|
Returns:
| Type | Description |
|---|---|
Optional[str]
|
Optional[str]: The name of the asset if created, |
Examples:
Python
CLI
Info
Has a CLI counterpart.
create_assets
Creates new asset directory structures within a project.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
asset_names |
list
|
The names of the assets to create. |
required |
base_dir |
str
|
The base directory where the asset will be created, typically the "project/production/assets" directory. Defaults to the current directory. |
'.'
|
Returns:
| Type | Description |
|---|---|
Optional[list[str]]
|
Optional[list]: The names of the assets if created, |
Examples:
Python
CLI
Info
Has a CLI counterpart.
create_project
Creates a new project directory structure.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
project_name |
str
|
The name of the project to create. |
required |
base_dir |
str
|
The base directory where the project will be created. Defaults to the current directory. |
'.'
|
Returns:
| Type | Description |
|---|---|
Optional[str]
|
Optional[str]: The name of the project if created, |
Examples:
Python
CLI
Info
Has a CLI counterpart.
create_sequence
Creates a new sequence directory structure within a project.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
sequence_name |
str
|
The name of the sequence to create. |
required |
base_dir |
str
|
The base directory where the sequence will be created, typically the "project/production/shots" directory. Defaults to the current directory. |
'.'
|
parent |
QWidget
|
The parent widget for the message box. Only applicable in a GUI environment. |
None
|
Returns:
| Type | Description |
|---|---|
Optional[str]
|
Optional[str]: The name of the sequence if created, |
Examples:
Python
CLI
Info
Has a CLI counterpart.
create_sequences
Creates new sequence directory structures within a project.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
sequence_names |
list
|
The names of the sequences to create. |
required |
base_dir |
str
|
The base directory where the sequence will be created, typically the "project/production/shots" directory. Defaults to the current directory. |
'.'
|
Returns:
| Type | Description |
|---|---|
Optional[list[str]]
|
Optional[list]: The names of the sequences if created, |
Examples:
Python
CLI
Info
Has a CLI counterpart.
create_shot
Creates a new shot directory structure within a sequence.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
shot_name |
str
|
The name of the shot to create. |
required |
base_dir |
str
|
The base directory where the shot will be created, typically the "project/production/shots/sequence" directory. Defaults to the current directory. |
'.'
|
parent |
QWidget
|
The parent widget for the message box. Only applicable in a GUI environment. |
None
|
Returns:
| Type | Description |
|---|---|
Optional[str]
|
Optional[str]: The name of the shot if created, |
Examples:
Python
CLI
Info
Has a CLI counterpart.
create_shots
Creates new shot directory structures within a sequence.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
shot_names |
list[str]
|
The names of the shots to create. |
required |
base_dir |
str
|
The base directory where the shots will be created, typically the "project/production/shots/sequence" directory. Defaults to the current directory. |
'.'
|
Returns:
| Type | Description |
|---|---|
Optional[list[str]]
|
Optional[list[str]]: The names of the shots if created,
|
Examples:
Python
CLI
Info
Has a CLI counterpart.
create_step
Creates a new step directory structure within a project.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
step_name |
str
|
The name of the step to create. |
required |
base_dir |
str
|
The base directory where the step will be created, typically the "project/production/steps" directory. Defaults to the current directory. |
'.'
|
parent |
QWidget
|
The parent widget for the message box. Only applicable in a GUI environment. |
None
|
Returns:
| Type | Description |
|---|---|
Optional[str]
|
Optional[str]: The name of the step if created, |
Examples:
Python
CLI
Info
Has a CLI counterpart.
create_task
Creates a new task directory structure within a project.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
task_name |
str
|
The name of the task to create. |
required |
base_dir |
str
|
The base directory where the task will be created, typically the "project/production/tasks" directory. Defaults to the current directory. |
'.'
|
parent |
QWidget
|
The parent widget for the message box. Only applicable in a GUI environment. |
None
|
Returns:
| Type | Description |
|---|---|
Optional[str]
|
Optional[str]: The name of the task if created, |
Examples:
Python
CLI
Info
Has a CLI counterpart.
create_workfile
Creates a new workfile directory structure within a project.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
workfile_name |
str
|
The name of the workfile to create. |
required |
base_dir |
str
|
The base directory where the workfile will be created, typically the "project/production/workfiles" directory. Defaults to the current directory. |
'.'
|
parent |
QWidget
|
The parent widget for the message box. Only applicable in a GUI environment. |
None
|
Returns:
| Type | Description |
|---|---|
Optional[str]
|
Optional[str]: The name of the workfile if created, |
Examples:
Python
CLI
Info
Has a CLI counterpart.
Bug
Not implemented yet.
get_project
Gets the project path, name, assets path, and shots path from the environment file, or the environment variables (if set beforehand).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
from_file |
bool
|
Whether to force read the environment file.
Defaults to |
False
|
Returns:
| Type | Description |
|---|---|
Dict[str, Optional[str]]
|
Dict[str, Optional[str]]: A dictionary with keys
'FXQUINOX_PROJECT_ROOT', 'FXQUINOX_PROJECT_NAME',
'FXQUINOX_PROJECT_ASSETS_PATH', and 'FXQUINOX_PROJECT_SHOTS_PATH'
pointing to their respective paths if found, |
set_project
set_project(
launcher: Optional[FXLauncherSystemTray] = None,
quit_on_last_window_closed: bool = False,
project_path: str = None,
) -> Optional[Tuple[str, str]]
Sets the project path in the project browser.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
launcher |
FXLauncherSystemTray
|
The launcher instance to update the
project name. Defaults to |
None
|
quit_on_last_window_closed |
bool
|
Whether to quit the application when
the last window is closed. Defaults to |
False
|
project_dir |
str
|
The project directory to set. Defaults to |
required |
Returns:
| Type | Description |
|---|---|
Optional[Tuple[str, str]]
|
Optional[dict]: A dictionary with the project root, name, assets path,
and shots path if set, |