ProjectEntities¶
The ProjectEntities module manages assets, shots, sequences, and other entities within a Prism project, providing CRUD operations and entity hierarchy management.
Overview¶
ProjectEntities handles all entity-related operations:
- Asset management (characters, props, environments)
- Shot and sequence management
- Entity hierarchies and relationships
- Entity metadata and attributes
- Entity queries and filtering
Features¶
- Entity types - Assets, shots, sequences, tasks
- Hierarchical structure - Parent-child relationships
- Metadata management - Custom entity attributes
- Entity creation - Create new entities programmatically
- Entity queries - Find and filter entities
- Thumbnail support - Entity preview images
Usage Example¶
import PrismCore
# Initialize Prism Core
core = PrismCore.create(prismArgs=["noUI"])
# Get all assets
assets = core.entities.getAssets()
# Create a new shot
core.entities.createShot(
entity={"type": "shot", "sequence": "sq010", "shot": "sh010"},
frameRange=[1001, 1050]
)
API Reference¶
Classes¶
ProjectEntities
¶
Bases: object
Manages all entity-related operations for Prism projects.
Handles creation, retrieval, modification, and querying of project entities including assets, shots, sequences, episodes, departments, and tasks. Provides methods for managing entity metadata, ranges, dependencies, and file operations.
Attributes:
| Name | Type | Description |
|---|---|---|
core |
PrismCore instance. |
|
entityFolders |
Dict[str, List[str]]
|
Predefined subfolders for entity types. |
entityActions |
Dict
|
Registered entity context menu actions. |
depIcons |
Dict
|
Department icon cache. |
entityDlg |
Dialog class for entity operations. |
|
omittedEntities |
Dict[str, List]
|
Entities marked as omitted/hidden. |
Initialize the ProjectEntities manager.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
core
|
Any
|
PrismCore instance. |
required |
Source code in src/core/PrismUtils/ProjectEntities.py
Functions¶
refreshOmittedEntities
¶
Refresh the list of omitted entities from project configuration.
Source code in src/core/PrismUtils/ProjectEntities.py
isEntityOmitted
¶
Check if an entity is marked as omitted.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
entity
|
Dict[str, Any]
|
Entity dict with a 'type' key. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
bool |
bool
|
True if entity is omitted. |
Source code in src/core/PrismUtils/ProjectEntities.py
isAssetOmitted
¶
Check if an asset entity is omitted.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
entity
|
Dict[str, Any]
|
Asset entity dict with 'asset_path' key. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
bool |
bool
|
True if asset is omitted. |
Source code in src/core/PrismUtils/ProjectEntities.py
isEpisodeOmitted
¶
isSequenceOmitted
¶
isShotOmitted
¶
Check if a shot entity is omitted.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
entity
|
Dict[str, Any]
|
Shot entity dict with 'sequence' and 'shot' keys. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
bool |
bool
|
True if shot is omitted. |
Source code in src/core/PrismUtils/ProjectEntities.py
getShotSubFolders
¶
Get the list of expected subfolders for shot entities.
Returns:
| Type | Description |
|---|---|
List[str]
|
List[str]: List of subfolder names (e.g., ['Scenefiles', 'Export']). |
Source code in src/core/PrismUtils/ProjectEntities.py
getTypeFromShotPath
¶
Determine if a path represents a shot or folder based on its contents.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str
|
Path to check. |
required |
content
|
Optional[List[str]]
|
Optional list of folder contents (if already known). |
None
|
Returns:
| Type | Description |
|---|---|
Optional[str]
|
Optional[str]: 'shot' if path is a shot, 'folder' otherwise, or None if path doesn't exist. |
Source code in src/core/PrismUtils/ProjectEntities.py
getShotName
¶
Get the formatted name for a shot entity.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
entity
|
Dict[str, Any]
|
Shot entity dict with 'sequence', 'shot', and optionally 'episode' keys. |
required |
Returns:
| Type | Description |
|---|---|
Optional[str]
|
Optional[str]: Formatted shot name, or None if no sequence in entity. |
Source code in src/core/PrismUtils/ProjectEntities.py
setShotRange
¶
Set the frame range for a shot entity.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
entity
|
Dict[str, Any]
|
Shot entity dict with 'episode', 'sequence', and 'shot' keys. |
required |
start
|
int
|
Start frame number. |
required |
end
|
int
|
End frame number. |
required |
Source code in src/core/PrismUtils/ProjectEntities.py
getShotRange
¶
Get the frame range for a shot entity.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
entity
|
Dict[str, Any]
|
Shot entity dict with 'sequence', 'shot', and optionally 'episode' keys. |
required |
handles
|
bool
|
If True, include handle frames in the range. |
False
|
Returns:
| Type | Description |
|---|---|
Optional[List[int]]
|
Optional[List[int]]: Two-element list [start, end] or None if no range defined. |
Source code in src/core/PrismUtils/ProjectEntities.py
getEpisodes
¶
Get all episodes matching the search filter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
searchFilter
|
str
|
Optional filter string to match episode names or descriptions. |
''
|
locations
|
Optional[List]
|
Optional list of specific locations to search. |
None
|
Returns:
| Type | Description |
|---|---|
List[Dict[str, Any]]
|
List[Dict[str, Any]]: List of episode dicts with paths and metadata. |
Source code in src/core/PrismUtils/ProjectEntities.py
getSequences
¶
getSequences(searchFilter: str = '', locations: Optional[List] = None, episode: Optional[str] = None) -> List[Dict[str, Any]]
Get all sequences matching the search filter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
searchFilter
|
str
|
Optional filter string to match sequence names or descriptions. |
''
|
locations
|
Optional[List]
|
Optional list of specific locations to search. |
None
|
episode
|
Optional[str]
|
Optional episode name to filter sequences. |
None
|
Returns:
| Type | Description |
|---|---|
List[Dict[str, Any]]
|
List[Dict[str, Any]]: List of sequence dicts with paths and metadata. |
Source code in src/core/PrismUtils/ProjectEntities.py
getLocations
¶
Get project locations (paths) to search for entities.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
locations
|
Optional[List[str]]
|
Optional list of location names/paths to filter. |
None
|
Returns:
| Type | Description |
|---|---|
List[Dict[str, str]]
|
List[Dict[str, str]]: List of location dicts with 'path' and 'location' keys. |
Source code in src/core/PrismUtils/ProjectEntities.py
filterValidShots
¶
Filter shot data to only valid shots matching the search filter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
shotData
|
List[Dict[str, Any]]
|
List of shot dicts to filter. |
required |
searchFilter
|
str
|
Optional filter string to match shot names or descriptions. |
''
|
Returns:
| Type | Description |
|---|---|
List[Dict[str, Any]]
|
List[Dict[str, Any]]: Filtered list of shot dicts. |
Source code in src/core/PrismUtils/ProjectEntities.py
combineShotsFromLocations
¶
Combine shot data from multiple locations into unique shots.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
shotData
|
List[Dict[str, Any]]
|
List of shot dicts from different locations. |
required |
Returns:
| Type | Description |
|---|---|
List[Dict[str, Any]]
|
List[Dict[str, Any]]: Combined list with unique shots having multiple paths. |
Source code in src/core/PrismUtils/ProjectEntities.py
getShot
¶
getShot(sequence: str, shot: str, episode: Optional[str] = None, projectPath: Optional[str] = None) -> Optional[Dict[str, Any]]
Get a specific shot entity by name.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
sequence
|
str
|
Sequence name. |
required |
shot
|
str
|
Shot name. |
required |
episode
|
Optional[str]
|
Optional episode name. |
None
|
projectPath
|
Optional[str]
|
Optional specific project path to search. |
None
|
Returns:
| Type | Description |
|---|---|
Optional[Dict[str, Any]]
|
Optional[Dict[str, Any]]: Shot entity dict or None if not found. |
Source code in src/core/PrismUtils/ProjectEntities.py
getShots
¶
getShots(searchFilter: str = '', locations: Optional[List] = None, episode: Optional[str] = None, sequence: Optional[str] = None) -> List[Dict[str, Any]]
Get all shots matching the filter criteria.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
searchFilter
|
str
|
Optional filter string to match shot names or descriptions. |
''
|
locations
|
Optional[List]
|
Optional list of specific locations to search. |
None
|
episode
|
Optional[str]
|
Optional episode name to filter shots. |
None
|
sequence
|
Optional[str]
|
Optional sequence name to filter shots. |
None
|
Returns:
| Type | Description |
|---|---|
List[Dict[str, Any]]
|
List[Dict[str, Any]]: List of shot dicts with paths and metadata. |
Source code in src/core/PrismUtils/ProjectEntities.py
getShotsFromSequence
¶
getSteps
¶
Get all departments/steps for an entity.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
entity
|
Dict[str, Any]
|
Entity dict with 'type' key. |
required |
Returns:
| Type | Description |
|---|---|
List[str]
|
List[str]: List of department names. |
Source code in src/core/PrismUtils/ProjectEntities.py
getCategories
¶
Get all categories (tasks) for an entity and optional department.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
entity
|
Dict[str, Any]
|
Entity dict. |
required |
step
|
Optional[str]
|
Optional department name to filter categories. |
None
|
Returns:
| Type | Description |
|---|---|
List[str]
|
List[str]: List of category/task names. |
Source code in src/core/PrismUtils/ProjectEntities.py
getScenefiles
¶
getScenefiles(entity: Optional[Dict[str, Any]] = None, step: Optional[str] = None, category: Optional[str] = None, extensions: Optional[List[str]] = None, path: Optional[str] = None) -> List[str]
Get all scenefile paths matching the criteria.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
entity
|
Optional[Dict[str, Any]]
|
Optional entity dict to filter by. |
None
|
step
|
Optional[str]
|
Optional department name. |
None
|
category
|
Optional[str]
|
Optional task name. |
None
|
extensions
|
Optional[List[str]]
|
Optional list of file extensions to filter. |
None
|
path
|
Optional[str]
|
Optional specific path to search. |
None
|
Returns:
| Type | Description |
|---|---|
List[str]
|
List[str]: List of scenefile paths. |
Source code in src/core/PrismUtils/ProjectEntities.py
getScenefile
¶
getScenefile(entity: Dict[str, Any], department: str, task: str, version: Union[str, int]) -> Optional[str]
Get a specific scenefile path by version.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
entity
|
Dict[str, Any]
|
Entity dict. |
required |
department
|
str
|
Department name. |
required |
task
|
str
|
Task name. |
required |
version
|
Union[str, int]
|
Version number (int), version string, or 'latest'. |
required |
Returns:
| Type | Description |
|---|---|
Optional[str]
|
Optional[str]: Scenefile path or None if not found. |
Source code in src/core/PrismUtils/ProjectEntities.py
isValidScenefilename
¶
Check if a filename is a valid scenefile.
Filters out temp files, autosaves, and blacklisted extensions.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
filename
|
str
|
Filename or path to check. |
required |
extensions
|
Optional[List[str]]
|
Optional list of allowed extensions. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
bool |
bool
|
True if filename is a valid scenefile. |
Source code in src/core/PrismUtils/ProjectEntities.py
866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 | |
orderDepartments
¶
Order departments according to project settings.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
entity
|
Dict[str, Any]
|
Entity dict with type |
required |
departments
|
List[str]
|
List of department names to order |
required |
Returns:
| Type | Description |
|---|---|
List[str]
|
Ordered list of department names |
Source code in src/core/PrismUtils/ProjectEntities.py
orderTasks
¶
Order tasks according to department's default task order.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
entity
|
Dict[str, Any]
|
Entity dict with type |
required |
department
|
str
|
Department abbreviation |
required |
tasks
|
List[str]
|
List of task names to order |
required |
Returns:
| Type | Description |
|---|---|
List[str]
|
Ordered list of task names |
Source code in src/core/PrismUtils/ProjectEntities.py
indexOf
¶
Get the index of a value in a list, or -1 if not found.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
val
|
Any
|
Value to find. |
required |
listData
|
List
|
List to search. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
Index of value or -1 if not found. |
Source code in src/core/PrismUtils/ProjectEntities.py
getDependencies
¶
Get dependencies for a version file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str
|
Path to version file. |
required |
Returns:
| Type | Description |
|---|---|
List[str]
|
List[str]: List of dependency paths. |
Source code in src/core/PrismUtils/ProjectEntities.py
getCurrentDependencies
¶
Get dependencies from the currently open scene.
Returns:
| Type | Description |
|---|---|
Dict[str, List[str]]
|
Dict[str, List[str]]: Dict with 'dependencies' and 'externalFiles' keys. |
Source code in src/core/PrismUtils/ProjectEntities.py
createEntity
¶
createEntity(entity: Dict[str, Any], dialog: Optional[Any] = None, frameRange: Optional[List[int]] = None, silent: bool = False, description: Optional[str] = None, preview: Optional[QPixmap] = None, metaData: Optional[Dict] = None) -> Dict[str, Any]
Create an entity (asset, assetFolder, or shot).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
entity
|
Dict[str, Any]
|
Entity dict with 'type' key. |
required |
dialog
|
Optional[Any]
|
Optional dialog widget. |
None
|
frameRange
|
Optional[List[int]]
|
Optional frame range for shots. |
None
|
silent
|
bool
|
If True, suppress UI dialogs. |
False
|
description
|
Optional[str]
|
Optional description text. |
None
|
preview
|
Optional[QPixmap]
|
Optional preview pixmap. |
None
|
metaData
|
Optional[Dict]
|
Optional metadata dict. |
None
|
Returns:
| Type | Description |
|---|---|
Dict[str, Any]
|
Dict[str, Any]: Result dict with entity and status info. |
Source code in src/core/PrismUtils/ProjectEntities.py
createAssetFolder
¶
Create an asset folder entity.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
entity
|
Dict[str, Any]
|
Asset folder entity dict with 'asset_path' key. |
required |
dialog
|
Optional[Any]
|
Optional dialog widget. |
None
|
Returns:
| Type | Description |
|---|---|
Dict[str, Any]
|
Dict[str, Any]: Result dict with entity and 'existed' flag. |
Source code in src/core/PrismUtils/ProjectEntities.py
createAsset
¶
createAsset(entity: Dict[str, Any], description: Optional[str] = None, preview: Optional[QPixmap] = None, metaData: Optional[Dict] = None, dialog: Optional[Any] = None) -> Dict[str, Any]
Create an asset entity with all necessary folders.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
entity
|
Dict[str, Any]
|
Asset entity dict with 'asset_path' key. |
required |
description
|
Optional[str]
|
Optional asset description. |
None
|
preview
|
Optional[QPixmap]
|
Optional preview pixmap. |
None
|
metaData
|
Optional[Dict]
|
Optional metadata dict. |
None
|
dialog
|
Optional[Any]
|
Optional dialog widget. |
None
|
Returns:
| Type | Description |
|---|---|
Dict[str, Any]
|
Dict[str, Any]: Result dict with entity, 'existed' flag, and optional 'error'. |
Source code in src/core/PrismUtils/ProjectEntities.py
1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 | |
createShot
¶
createShot(entity: Dict[str, Any], frameRange: Optional[List[int]] = None, preview: Optional[QPixmap] = None, metaData: Optional[Dict] = None) -> Dict[str, Any]
Create a shot entity with all necessary folders.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
entity
|
Dict[str, Any]
|
Shot entity dict with shot info. |
required |
frameRange
|
Optional[List[int]]
|
Optional two-element list [start, end] frame range. |
None
|
preview
|
Optional[QPixmap]
|
Optional preview pixmap. |
None
|
metaData
|
Optional[Dict]
|
Optional metadata dict. |
None
|
Returns:
| Type | Description |
|---|---|
Dict[str, Any]
|
Dict[str, Any]: Result dict with entity and 'existed' flag. |
Source code in src/core/PrismUtils/ProjectEntities.py
1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 | |
createDepartment
¶
createDepartment(department: str, entity: Dict[str, Any], stepPath: str = '', createCat: bool = True) -> str
Create a department folder for an entity.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
department
|
str
|
Department name. |
required |
entity
|
Dict[str, Any]
|
Entity dict. |
required |
stepPath
|
str
|
Optional base path for department. If empty, uses entity path. |
''
|
createCat
|
bool
|
If True, create a default category/task in the department. |
True
|
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Path to the created department folder. |
Source code in src/core/PrismUtils/ProjectEntities.py
getLongDepartmentName
¶
Get the full name of a department from its abbreviation.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
entity
|
str
|
Entity type ('asset', 'shot', or 'sequence'). |
required |
abbreviation
|
str
|
Department abbreviation. |
required |
Returns:
| Type | Description |
|---|---|
Optional[str]
|
Optional[str]: Full department name or None if not found. |
Source code in src/core/PrismUtils/ProjectEntities.py
getDepartmentAbbreviation
¶
Get the abbreviation of a department from its full name.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
entity
|
str
|
Entity type ('asset', 'shot', or 'sequence'). |
required |
department
|
str
|
Full department name. |
required |
Returns:
| Type | Description |
|---|---|
Optional[str]
|
Optional[str]: Department abbreviation or None if not found. |
Source code in src/core/PrismUtils/ProjectEntities.py
getPrismDepartmentFromCustomName
¶
Convert custom department names to standard Prism department names.
Maps various common abbreviations and names to standard Prism departments (Concept, Modeling, Surfacing, Rigging, Layout, Animation, FX, Lighting, Compositing). Checks environment variables for custom names.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
Department name or abbreviation (case-insensitive). |
required |
Returns:
| Type | Description |
|---|---|
Optional[str]
|
Optional[str]: Standard Prism department name or original name if no match. |
Source code in src/core/PrismUtils/ProjectEntities.py
1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 | |
getDepartmentIcon
¶
Get the icon for a department.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
department
|
str
|
Department name. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
QIcon |
QIcon
|
Icon for the department. |
Source code in src/core/PrismUtils/ProjectEntities.py
getDefaultTasksForDepartment
¶
Get the default tasks for a department.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
entity
|
str
|
Entity type string ('asset' or 'shot'). |
required |
department
|
str
|
Department name/abbreviation. |
required |
Returns:
| Type | Description |
|---|---|
Optional[List[str]]
|
Optional[List[str]]: List of default task names or None if department doesn't exist. |
Source code in src/core/PrismUtils/ProjectEntities.py
createDefaultCat
¶
Create default categories/tasks for a department.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
entity
|
Dict[str, Any]
|
Entity dict with 'type' key. |
required |
step
|
str
|
Department name. |
required |
Returns:
| Type | Description |
|---|---|
Optional[List[str]]
|
Optional[List[str]]: List of created category paths or None if no tasks defined. |
Source code in src/core/PrismUtils/ProjectEntities.py
createCategory
¶
Create a category/task folder for an entity and department.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
entity
|
Dict[str, Any]
|
Entity dict. |
required |
step
|
str
|
Department name. |
required |
category
|
str
|
Task/category name. |
required |
Returns:
| Type | Description |
|---|---|
Optional[str]
|
Optional[str]: Path to created category or None if creation failed. |
Source code in src/core/PrismUtils/ProjectEntities.py
getDefaultPresetSceneForContext
¶
Get the default preset scene file for a given context.
Checks callbacks and default preset scene settings to find a matching preset scene for the context (entity, department, task).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
context
|
Dict[str, Any]
|
Context dict with entity and task information. |
required |
Returns:
| Type | Description |
|---|---|
Optional[str]
|
Optional[str]: Path to preset scene file or None if not found. |
Source code in src/core/PrismUtils/ProjectEntities.py
getDefaultPresetScenes
¶
Get list of default preset scenes from project configuration.
Returns:
| Type | Description |
|---|---|
List[Dict]
|
List[Dict]: List of preset scene definitions with 'name' key. |
Source code in src/core/PrismUtils/ProjectEntities.py
doesContextMatchTaskFilters
¶
Check if a context matches the specified task filters.
Evaluates whether the context (entity type, name, department) matches the filter patterns defined in taskFilters.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
taskFilters
|
Dict
|
Filter dict with 'entities' and 'departments' keys. |
required |
context
|
Dict[str, Any]
|
Context dict with entity and task information. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
bool |
bool
|
True if context matches filters. |
Source code in src/core/PrismUtils/ProjectEntities.py
getItemMatchingContext
¶
Find the first item in a list that matches the given context.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
items
|
List[Dict]
|
List of items with 'taskFilter' expressions. |
required |
context
|
Dict[str, Any]
|
Context dict with entity and task information. |
required |
Returns:
| Type | Description |
|---|---|
Optional[Dict]
|
Optional[Dict]: First matching item or None if no match found. |
Source code in src/core/PrismUtils/ProjectEntities.py
validateExpression
¶
Validate a task filter expression.
Parses and validates filter expressions used to match tasks against contexts. Expression format: "entity:name|department:dep_name".
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
expression
|
str
|
Filter expression string. |
required |
Returns:
| Type | Description |
|---|---|
Dict[str, Any]
|
Dict[str, Any]: Parsed filter dict with 'entities' and 'departments' lists. |
Source code in src/core/PrismUtils/ProjectEntities.py
createTasksFromPreset
¶
createTasksFromPreset(entity: Dict[str, Any], preset: Optional[Dict] = None, presetName: Optional[str] = None) -> Optional[List[str]]
Create tasks for an entity from a task preset.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
entity
|
Dict[str, Any]
|
Entity dict. |
required |
preset
|
Optional[Dict]
|
Optional preset dict with 'tasks' list. |
None
|
presetName
|
Optional[str]
|
Optional preset name to load if preset not provided. |
None
|
Returns:
| Type | Description |
|---|---|
Optional[List[str]]
|
Optional[List[str]]: List of created task paths or None if no preset found. |
Source code in src/core/PrismUtils/ProjectEntities.py
getTaskDataPath
¶
Get the path to the task data file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
entity
|
Dict[str, Any]
|
Entity dict. |
required |
department
|
str
|
Department name. |
required |
task
|
str
|
Task name. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Path to task data config file. |
Source code in src/core/PrismUtils/ProjectEntities.py
getTaskData
¶
Get the stored data for a task.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
entity
|
Dict[str, Any]
|
Entity dict. |
required |
department
|
str
|
Department name. |
required |
task
|
str
|
Task name. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
Dict |
Dict
|
Task data dict (empty if file doesn't exist). |
Source code in src/core/PrismUtils/ProjectEntities.py
setTaskData
¶
Set a specific data value for a task.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
entity
|
Dict[str, Any]
|
Entity dict. |
required |
department
|
str
|
Department name. |
required |
task
|
str
|
Task name. |
required |
key
|
str
|
Data key to set. |
required |
val
|
Any
|
Value to set. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
bool |
bool
|
True if successful. |
Source code in src/core/PrismUtils/ProjectEntities.py
omitEntity
¶
Mark an entity as omitted (hidden) or restore it.
Omitted entities are hidden from entity lists and browsers.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
entity
|
Dict[str, Any]
|
Entity dict with 'type' and entity identifiers. |
required |
omit
|
bool
|
If True, omit the entity. If False, restore it. |
True
|
Source code in src/core/PrismUtils/ProjectEntities.py
1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 | |
setComment
¶
Set a comment for a scenefile.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
filepath
|
str
|
Path to scenefile. |
required |
comment
|
str
|
Comment text. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
The comment that was set. |
Source code in src/core/PrismUtils/ProjectEntities.py
1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 | |
setDescription
¶
Set a description for a scenefile.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
filepath
|
str
|
Path to scenefile. |
required |
description
|
str
|
Description text. |
required |
Source code in src/core/PrismUtils/ProjectEntities.py
getAssetDescription
¶
Get the description for an asset.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
assetName
|
str
|
Asset name. |
required |
projectPath
|
Optional[str]
|
Optional specific project path. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Asset description or empty string if not found. |
Source code in src/core/PrismUtils/ProjectEntities.py
setAssetDescription
¶
Set the description for an asset.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
assetName
|
str
|
Asset name. |
required |
description
|
str
|
Description text. |
required |
Source code in src/core/PrismUtils/ProjectEntities.py
getMetaData
¶
Get the metadata for an entity.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
entity
|
Dict[str, Any]
|
Entity dict with 'type' and entity identifiers. |
required |
projectPath
|
Optional[str]
|
Optional specific project path. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
Dict |
Dict
|
Metadata dict (empty if not found). |
Source code in src/core/PrismUtils/ProjectEntities.py
setMetaData
¶
setMetaData(entity: Optional[Dict[str, Any]] = None, metaData: Optional[Dict] = None, entities: Optional[List[Dict[str, Any]]] = None, metaDatas: Optional[List[Dict]] = None) -> None
Set metadata for one or more entities.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
entity
|
Optional[Dict[str, Any]]
|
Single entity dict (use with metaData). |
None
|
metaData
|
Optional[Dict]
|
Metadata dict for single entity. |
None
|
entities
|
Optional[List[Dict[str, Any]]]
|
List of entity dicts (use with metaDatas). |
None
|
metaDatas
|
Optional[List[Dict]]
|
List of metadata dicts corresponding to entities. |
None
|
Source code in src/core/PrismUtils/ProjectEntities.py
deleteShot
¶
Delete a shot and all its files.
Attempts to remove the shot folder from both global and local locations. Prompts user to retry if files are locked by another program.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
shotName
|
str
|
Name of the shot to delete. |
required |
Source code in src/core/PrismUtils/ProjectEntities.py
renameEpisode
¶
Rename an episode and update all related paths and configs.
Updates episode folder names, nested folder references, and config files. Handles both global and local locations.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
curEpName
|
str
|
Current episode name. |
required |
newEpName
|
str
|
New episode name. |
required |
locations
|
Optional[List[str]]
|
Optional list of locations to rename ('global', 'local'). If None, uses all. |
None
|
Source code in src/core/PrismUtils/ProjectEntities.py
2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 | |
renameSequence
¶
Rename a sequence and update all related paths and configs.
Updates sequence folder names, nested folder references, and config files. Handles both global and local locations.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
curSeqName
|
str
|
Current sequence name. |
required |
newSeqName
|
str
|
New sequence name. |
required |
locations
|
Optional[List[str]]
|
Optional list of locations to rename ('global', 'local'). If None, uses all. |
None
|
Source code in src/core/PrismUtils/ProjectEntities.py
2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 | |
renameShot
¶
renameShot(curShotData: Dict[str, str], newShotData: Dict[str, str], locations: Optional[List[str]] = None) -> None
Rename a shot and update all related paths and configs.
Updates shot folder names, nested folder references, and config files. Handles both global and local locations.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
curShotData
|
Dict[str, str]
|
Dict with current 'sequence' and 'shot' keys. |
required |
newShotData
|
Dict[str, str]
|
Dict with new 'sequence' and 'shot' keys. |
required |
locations
|
Optional[List[str]]
|
Optional list of locations to rename ('global', 'local'). If None, uses all. |
None
|
Source code in src/core/PrismUtils/ProjectEntities.py
2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 | |
getAssetSubFolders
¶
Get the list of subfolders that identify an asset folder.
Determines required subfolders based on project structure templates (departments, products, renders, playblasts).
Returns:
| Type | Description |
|---|---|
List[str]
|
List[str]: List of subfolder names that should exist in asset folders. |
Source code in src/core/PrismUtils/ProjectEntities.py
getTypeFromAssetPath
¶
Determine if a path is an asset folder or a regular folder.
Checks for the presence of asset-identifying subfolders. Uses strict or loose detection based on project settings.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str
|
Folder path to check. |
required |
content
|
Optional[List[str]]
|
Optional list of folder contents. If None, reads from disk. |
None
|
Returns:
| Type | Description |
|---|---|
Optional[str]
|
Optional[str]: 'asset' if it's an asset folder, 'folder' if regular folder, None if path doesn't exist. |
Source code in src/core/PrismUtils/ProjectEntities.py
getAsset
¶
Get an asset entity dict by name.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
assetName
|
str
|
Asset name or relative path. |
required |
projectPath
|
Optional[str]
|
Optional specific project path. |
None
|
Returns:
| Type | Description |
|---|---|
Optional[Dict[str, Any]]
|
Optional[Dict[str, Any]]: Asset entity dict with 'type' and 'asset_path' keys, or None if not found. |
Source code in src/core/PrismUtils/ProjectEntities.py
getAssets
¶
Get all assets in a path.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
Optional[str]
|
Optional base path to search. Defaults to project asset path. |
None
|
depth
|
int
|
Search depth. 0 = unlimited, 1 = immediate children only, etc. |
0
|
Returns:
| Type | Description |
|---|---|
List[Dict[str, Any]]
|
List[Dict[str, Any]]: List of asset entity dicts. |
Source code in src/core/PrismUtils/ProjectEntities.py
getAssetPaths
¶
getAssetPaths(path: Optional[str] = None, returnFolders: bool = False, depth: int = 0) -> Union[List[str], Tuple[List[str], List[str]]]
Get all asset folder paths in a directory tree.
Recursively searches for asset folders based on asset-identifying subfolders.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
Optional[str]
|
Optional base path to search. Defaults to project asset path. |
None
|
returnFolders
|
bool
|
If True, also return non-asset folder paths. |
False
|
depth
|
int
|
Search depth. 0 = unlimited, 1 = immediate children only, etc. |
0
|
Returns:
| Type | Description |
|---|---|
Union[List[str], Tuple[List[str], List[str]]]
|
Union[List[str], Tuple[List[str], List[str]]]: List of asset paths, or tuple of (asset_paths, folder_paths) if returnFolders is True. |
Source code in src/core/PrismUtils/ProjectEntities.py
getEmptyAssetFolders
¶
Get all empty asset folders in the project.
Returns:
| Type | Description |
|---|---|
List[str]
|
List[str]: List of paths to empty asset folders. |
Source code in src/core/PrismUtils/ProjectEntities.py
getAssetPathFromAssetName
¶
Get the full path to an asset folder from its name.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
assetName
|
str
|
Asset name or relative path. |
required |
Returns:
| Type | Description |
|---|---|
Optional[str]
|
Optional[str]: Full path to asset folder or None if not found. |
Source code in src/core/PrismUtils/ProjectEntities.py
getAssetFoldersFromPath
¶
Get the asset folder hierarchy from a path.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str
|
Full path to an asset or within an asset. |
required |
pathType
|
str
|
Type of path ('asset'). |
'asset'
|
Returns:
| Type | Description |
|---|---|
List[str]
|
List[str]: List of folder names in the asset hierarchy. |
Source code in src/core/PrismUtils/ProjectEntities.py
filterAssets
¶
filterAssets(assets: List[Dict[str, Any]], filterStr: str, projectPath: Optional[str] = None) -> List[Dict[str, Any]]
Filter assets by a search string.
Filters assets whose names or paths contain the filter string. Also filters out omitted assets and checks descriptions.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
assets
|
List[Dict[str, Any]]
|
List of asset entity dicts. |
required |
filterStr
|
str
|
Search string (case-insensitive). |
required |
projectPath
|
Optional[str]
|
Optional specific project path. |
None
|
Returns:
| Type | Description |
|---|---|
List[Dict[str, Any]]
|
List[Dict[str, Any]]: Filtered list of asset entity dicts. |
Source code in src/core/PrismUtils/ProjectEntities.py
filterOmittedAssets
¶
Remove omitted assets from a list.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
assets
|
List[Dict[str, Any]]
|
List of asset entity dicts. |
required |
Returns:
| Type | Description |
|---|---|
List[Dict[str, Any]]
|
List[Dict[str, Any]]: Filtered list without omitted assets. |
Source code in src/core/PrismUtils/ProjectEntities.py
isAssetPathOmitted
¶
isValidAssetName
¶
Check if an asset name contains only valid characters.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
assetName
|
str
|
Asset name to validate. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
bool |
bool
|
True if name is valid. |
Source code in src/core/PrismUtils/ProjectEntities.py
getAssetNameFromPath
¶
getAssetRelPathFromPath
¶
Get the relative asset path from a full path.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str
|
Full path to asset folder. |
required |
projectPath
|
Optional[str]
|
Optional specific project path. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Relative path from asset base directory. |
Source code in src/core/PrismUtils/ProjectEntities.py
getScenefileData
¶
getScenefileData(fileName: str, preview: bool = False, getEntityFromPath: bool = False) -> Dict[str, Any]
Extract metadata from a scenefile name and path.
Parses entity, department, task, version, user, comment from filename.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
fileName
|
str
|
Full path to scenefile. |
required |
preview
|
bool
|
If True, also load preview image. |
False
|
getEntityFromPath
|
bool
|
If True, extract entity data from path. |
False
|
Returns:
| Type | Description |
|---|---|
Dict[str, Any]
|
Dict[str, Any]: Scenefile data with keys like 'entity', 'department', 'task', 'version', 'user', 'comment', 'extension', etc. |
Source code in src/core/PrismUtils/ProjectEntities.py
2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 | |
getCurrentScenefileData
¶
getScenePreviewPath
¶
setScenePreview
¶
Save a preview image for a scenefile.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
scenepath
|
str
|
Path to scenefile. |
required |
preview
|
QPixmap
|
Preview pixmap to save. |
required |
Source code in src/core/PrismUtils/ProjectEntities.py
getScenefileInfoPath
¶
Get the path to a scenefile's version info file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
scenePath
|
str
|
Path to scenefile. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Path to version info config file. |
Source code in src/core/PrismUtils/ProjectEntities.py
setScenefileInfo
¶
Set a specific info value for a scenefile.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
scenePath
|
str
|
Path to scenefile. |
required |
key
|
str
|
Info key to set. |
required |
value
|
Any
|
Value to set. |
required |
Source code in src/core/PrismUtils/ProjectEntities.py
getHighestVersion
¶
getHighestVersion(entity: Dict[str, Any], department: str, task: str, getExistingPath: bool = False, fileTypes: Union[str, List[str]] = '*', localVersions: bool = True, getExistingVersion: bool = False) -> Union[str, List, Tuple[Optional[int], str]]
Get the next version number or highest existing version for a task.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
entity
|
Dict[str, Any]
|
Entity dict. |
required |
department
|
str
|
Department name. |
required |
task
|
str
|
Task name. |
required |
getExistingPath
|
bool
|
If True, return path to highest version instead of next version number. |
False
|
fileTypes
|
Union[str, List[str]]
|
File extension filter ('*' for all, or list of extensions). |
'*'
|
localVersions
|
bool
|
Include local versions in search. |
True
|
getExistingVersion
|
bool
|
If True, return [version_int, path] tuple. |
False
|
Returns:
| Type | Description |
|---|---|
Union[str, List, Tuple[Optional[int], str]]
|
Union[str, List, Tuple]: Next version string (e.g. 'v0001'), or path, or [version, path] tuple based on flags. |
Source code in src/core/PrismUtils/ProjectEntities.py
3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 | |
getTaskNames
¶
getTaskNames(taskType: Optional[str] = None, locations: Optional[List] = None, context: Optional[Dict] = None, key: Optional[str] = None, taskname: Optional[str] = None, addDepartments: bool = True) -> List[str]
Get all task/product/identifier names for a given type.
Scans project structure to find all existing tasks, products, or identifiers.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
taskType
|
Optional[str]
|
Type of tasks to get ('export', '3d', '2d', 'playblast', 'external', 'textures'). |
None
|
locations
|
Optional[List]
|
Optional list of location paths to search. |
None
|
context
|
Optional[Dict]
|
Optional context dict to filter results. |
None
|
key
|
Optional[str]
|
Optional structure key override (auto-determined from taskType if None). |
None
|
taskname
|
Optional[str]
|
Optional task name key override. |
None
|
addDepartments
|
bool
|
If True, include department names in results. |
True
|
Returns:
| Type | Description |
|---|---|
List[str]
|
List[str]: List of unique task/product/identifier names. |
Source code in src/core/PrismUtils/ProjectEntities.py
3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 | |
getEntityPreviewPath
¶
Get the path to an entity's preview/thumbnail image.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
entity
|
Dict[str, Any]
|
Entity dict with 'type' and entity identifiers. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Path to preview image file. |
Source code in src/core/PrismUtils/ProjectEntities.py
getEntityPreview
¶
getEntityPreview(entity: Dict[str, Any], width: Optional[int] = None, height: Optional[int] = None) -> Optional[QPixmap]
Get the preview image for an entity.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
entity
|
Dict[str, Any]
|
Entity dict with 'type' and entity identifiers. |
required |
width
|
Optional[int]
|
Optional width to scale to. |
None
|
height
|
Optional[int]
|
Optional height to scale to. |
None
|
Returns:
| Type | Description |
|---|---|
Optional[QPixmap]
|
Optional[QPixmap]: Preview pixmap or None if not found. |
Source code in src/core/PrismUtils/ProjectEntities.py
setEntityPreview
¶
setEntityPreview(entity: Dict[str, Any], pixmap: QPixmap, width: int = 250, height: int = 141) -> Optional[QPixmap]
Save a preview image for an entity.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
entity
|
Dict[str, Any]
|
Entity dict with 'type' and entity identifiers. |
required |
pixmap
|
QPixmap
|
Preview pixmap to save. |
required |
width
|
int
|
Target width for saved image. |
250
|
height
|
int
|
Target height for saved image. |
141
|
Returns:
| Type | Description |
|---|---|
Optional[QPixmap]
|
Optional[QPixmap]: Scaled and saved pixmap or None if invalid. |
Source code in src/core/PrismUtils/ProjectEntities.py
getPresetScene
¶
Get a preset scene by name.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
Preset scene name or filename. |
required |
Returns:
| Type | Description |
|---|---|
Optional[Dict[str, str]]
|
Optional[Dict[str, str]]: Preset dict with 'label' and 'path' keys, or None if not found. |
Source code in src/core/PrismUtils/ProjectEntities.py
getPresetScenes
¶
Get all available preset scenes.
Searches project PresetScenes folder and custom paths from environment variable.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
context
|
Optional[Dict]
|
Optional context dict to filter presets. |
None
|
Returns:
| Type | Description |
|---|---|
List[Dict[str, str]]
|
List[Dict[str, str]]: List of preset dicts with 'label' and 'path' keys. |
Source code in src/core/PrismUtils/ProjectEntities.py
getBlacklistedExtensions
¶
Get list of file extensions to exclude from preset scene search.
Reads from PRISM_BLACKLISTED_EXTENSIONS environment variable.
Returns:
| Type | Description |
|---|---|
List[str]
|
List[str]: List of blacklisted file extensions. |
Source code in src/core/PrismUtils/ProjectEntities.py
getPresetScenesFromFolder
¶
Get all preset scene files from a folder.
Recursively searches folder for scene files, excluding blacklisted extensions and files starting with '.', '_', or ending with '~'.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
folder
|
str
|
Folder path to search. |
required |
Returns:
| Type | Description |
|---|---|
List[Dict[str, str]]
|
List[Dict[str, str]]: List of preset dicts with 'label' and 'path' keys. |
Source code in src/core/PrismUtils/ProjectEntities.py
getScenePresetPathFromName
¶
Get the full path to a preset scene by name.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
Preset scene name. |
required |
Returns:
| Type | Description |
|---|---|
Optional[str]
|
Optional[str]: Full path to preset scene or None if not found. |
Source code in src/core/PrismUtils/ProjectEntities.py
ingestScenefiles
¶
ingestScenefiles(files: List[str], entity: Dict[str, Any], department: str, task: str, finishCallback: Optional[callable] = None, data: Optional[Dict] = None, rename: bool = True) -> List[str]
Import external scenefiles into the project structure.
Copies files to the appropriate project location with proper naming.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
files
|
List[str]
|
List of file paths to ingest. |
required |
entity
|
Dict[str, Any]
|
Target entity dict. |
required |
department
|
str
|
Target department name. |
required |
task
|
str
|
Target task name. |
required |
finishCallback
|
Optional[callable]
|
Optional callback when copy completes. |
None
|
data
|
Optional[Dict]
|
Optional additional data to merge into version info. |
None
|
rename
|
bool
|
If True, rename files to project naming convention. If False, keep original names. |
True
|
Returns:
| Type | Description |
|---|---|
List[str]
|
List[str]: List of created file paths. |
Source code in src/core/PrismUtils/ProjectEntities.py
3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 | |
createSceneFromPreset
¶
createSceneFromPreset(entity: Dict[str, Any], fileName: str, step: Optional[str] = None, category: Optional[str] = None, comment: Optional[str] = None, version: Optional[str] = None, location: str = 'local') -> Optional[str]
Create a new scene version from a preset scene file.
Copies a preset scene to the proper project location with full version info.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
entity
|
Dict[str, Any]
|
Entity dict. |
required |
fileName
|
str
|
Preset scene name or full path to preset file. |
required |
step
|
Optional[str]
|
Optional department name. |
None
|
category
|
Optional[str]
|
Optional task/category name. |
None
|
comment
|
Optional[str]
|
Optional version comment. |
None
|
version
|
Optional[str]
|
Optional version string. If None, uses next available version. |
None
|
location
|
str
|
Target location ('local' or 'global'). |
'local'
|
Returns:
| Type | Description |
|---|---|
Optional[str]
|
Optional[str]: Path to created scene file or None if failed. |
Source code in src/core/PrismUtils/ProjectEntities.py
3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 | |
createPresetScene
¶
Create a new preset scene from the current scene.
Prompts user for preset name and saves current scene to PresetScenes folder.
Returns:
| Type | Description |
|---|---|
Optional[str]
|
Optional[str]: Path to created preset scene or None if cancelled. |
Source code in src/core/PrismUtils/ProjectEntities.py
getAutobackPath
¶
getAutobackPath(prog: str, entity: Optional[Dict[str, Any]] = None, department: Optional[str] = None, task: Optional[str] = None) -> Optional[Tuple[str, str]]
Get the autobackup path for a specific program and context.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
prog
|
str
|
Program/plugin name. |
required |
entity
|
Optional[Dict[str, Any]]
|
Optional entity dict. |
None
|
department
|
Optional[str]
|
Optional department name. |
None
|
task
|
Optional[str]
|
Optional task name. |
None
|
Returns:
| Type | Description |
|---|---|
Optional[Tuple[str, str]]
|
Optional[Tuple[str, str]]: Tuple of (autoback_path, file_filter_string) or None if not available. |
Source code in src/core/PrismUtils/ProjectEntities.py
createVersionFromAutoBackupDlg
¶
createVersionFromAutoBackupDlg(prog: str, entity: Dict[str, Any], department: str, task: str, parent: Optional[QWidget] = None) -> Optional[str]
Show file dialog to select an autobackup file and create a version from it.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
prog
|
str
|
Program/plugin name. |
required |
entity
|
Dict[str, Any]
|
Entity dict. |
required |
department
|
str
|
Department name. |
required |
task
|
str
|
Task name. |
required |
parent
|
Optional[QWidget]
|
Optional parent widget for dialog. |
None
|
Returns:
| Type | Description |
|---|---|
Optional[str]
|
Optional[str]: Path to created version or None if cancelled. |
Source code in src/core/PrismUtils/ProjectEntities.py
createVersionFromAutoBackup
¶
createVersionFromAutoBackup(filepath: str, entity: Dict[str, Any], department: str, task: str) -> Optional[str]
Create a new version from an autobackup file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
filepath
|
str
|
Path to autobackup file. |
required |
entity
|
Dict[str, Any]
|
Entity dict. |
required |
department
|
str
|
Department name. |
required |
task
|
str
|
Task name. |
required |
Returns:
| Type | Description |
|---|---|
Optional[str]
|
Optional[str]: Path to created version or None if failed. |
Source code in src/core/PrismUtils/ProjectEntities.py
copySceneFile
¶
copySceneFile(filepath: str, entity: Dict[str, Any], department: str, task: str, location: Optional[str] = None) -> Optional[str]
Copy a scene file to create a new version in the project.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
filepath
|
str
|
Source file path to copy. |
required |
entity
|
Dict[str, Any]
|
Entity dict. |
required |
department
|
str
|
Department name. |
required |
task
|
str
|
Task name. |
required |
location
|
Optional[str]
|
Optional target location ('local' or 'global'). If None, uses project setting. |
None
|
Returns:
| Type | Description |
|---|---|
Optional[str]
|
Optional[str]: Path to created version or None if failed. |
Source code in src/core/PrismUtils/ProjectEntities.py
getDefaultSceneBuildingSteps
¶
Get the list of default scene building steps.
Defines the order of operations to apply during scene building.
Returns:
| Type | Description |
|---|---|
List[Dict[str, Any]]
|
List[Dict[str, Any]]: List of step dictionaries with their details. |
Source code in src/core/PrismUtils/ProjectEntities.py
getAvailableSceneBuildingSteps
¶
Get the list of available scene building steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
app
|
str
|
Application name. |
required |
Returns:
| Type | Description |
|---|---|
List[dict]
|
List[dict]: List of step dictionaries that can be applied during scene building. |
Source code in src/core/PrismUtils/ProjectEntities.py
buildSceneSetFramerange
¶
Scene building step function to set framerange for an entity.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
step
|
Dict[str, Any]
|
Step settings dict. |
required |
context
|
Dict[str, Any]
|
Current scene building context dict with entity, department, task info. |
required |
Source code in src/core/PrismUtils/ProjectEntities.py
buildSceneSetFPS
¶
Scene building step function to set FPS for an entity.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
step
|
Dict[str, Any]
|
Step settings dict. |
required |
context
|
Dict[str, Any]
|
Current scene building context dict with entity, department, task info. |
required |
Source code in src/core/PrismUtils/ProjectEntities.py
buildSceneSetResolution
¶
Scene building step function to set resolution for an entity.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
step
|
Dict[str, Any]
|
Step settings dict. |
required |
context
|
Dict[str, Any]
|
Current scene building context dict with entity, department, task info. |
required |
Source code in src/core/PrismUtils/ProjectEntities.py
buildSceneImportProducts
¶
Scene building step function to import products for an entity.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
step
|
Dict[str, Any]
|
Step settings dict. |
required |
context
|
Dict[str, Any]
|
Current scene building context dict with entity, department, task info. |
required |
Source code in src/core/PrismUtils/ProjectEntities.py
buildSceneImportShotcam
¶
Scene building step function to import shot cameras for a shot entity.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
step
|
Dict[str, Any]
|
Step settings dict. |
required |
context
|
Dict[str, Any]
|
Current scene building context dict with entity, department, task info. |
required |
Source code in src/core/PrismUtils/ProjectEntities.py
buildSceneRunCode
¶
Scene building step to run custom Python code.
Available variables in the code scope
core: Prism core instance self: ProjectEntities instance context: Current scene building context dict step: Current step dict
Source code in src/core/PrismUtils/ProjectEntities.py
getActiveSceneBuildingSteps
¶
getActiveSceneBuildingSteps(entity: Dict[str, Any], department: str, task: str, sbSettings: Dict, skipBuildSteps: Optional[List[str]] = None) -> List[Dict[str, Any]]
Return the ordered list of enabled scene building steps that match the given context.
Steps are loaded from the project config for the current app plugin (under
sceneBuilding.<appName>.steps). When no app-specific steps are configured
the built-in defaults from :meth:getDefaultSceneBuildingSteps are used.
Each step is included only when:
enabledisTrue(or absent).- Its
nameis not in skipBuildSteps. - Its
dftTasksfilter (if present) matches entity/department/task. - For built-in steps without a
dftTaskskey the corresponding entry in sbSettings is used as a fallback filter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
entity
|
Dict[str, Any]
|
Entity dict. |
required |
department
|
str
|
Department name. |
required |
task
|
str
|
Task name. |
required |
sbSettings
|
Dict
|
Scene building settings dict (merged defaults + project overrides). |
required |
skipBuildSteps
|
Optional[List[str]]
|
Optional list of step names to skip. |
None
|
Returns:
| Type | Description |
|---|---|
List[Dict[str, Any]]
|
List of active step dicts in execution order. |
Source code in src/core/PrismUtils/ProjectEntities.py
3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 | |
buildScene
¶
buildScene(entity: Dict[str, Any], department: str, task: str, stepOverrides: Optional[List[Dict[str, Any]]] = None) -> Optional[str]
Automatically build a new scene with project settings applied.
Creates a new scene with proper framerange, fps, resolution, imported products, and shot cameras based on scene building settings.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
entity
|
Dict[str, Any]
|
Entity dict. |
required |
department
|
str
|
Department name. |
required |
task
|
str
|
Task name. |
required |
stepOverrides
|
Optional[List[Dict[str, Any]]]
|
Optional per-run list of step dicts. If provided, these steps are executed instead of resolving active steps from project configuration. |
None
|
Returns:
| Type | Description |
|---|---|
Optional[str]
|
Optional[str]: Path to created scene or None if failed/cancelled. |
Source code in src/core/PrismUtils/ProjectEntities.py
3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 | |
openScenefile
¶
Open a scenefile in the current application.
Handles lockfile checking, local file syncing, state manager, and callbacks.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
filepath
|
str
|
Path to scenefile to open. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
bool |
bool
|
True if successfully opened, False otherwise. |
Source code in src/core/PrismUtils/ProjectEntities.py
4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 | |
createVersionFromCurrentScene
¶
Create a new version by saving the current scene.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
entity
|
Dict[str, Any]
|
Entity dict. |
required |
department
|
str
|
Department name. |
required |
task
|
str
|
Task name. |
required |
Returns:
| Type | Description |
|---|---|
Optional[str]
|
Optional[str]: Path to saved version or None if failed. |
Source code in src/core/PrismUtils/ProjectEntities.py
backupScenefile
¶
Create a backup of the current scene if enough time has passed.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
targetFolder
|
str
|
Folder to save backup to. |
required |
bufferMinutes
|
int
|
Minimum minutes since last backup before creating new one. |
5
|
Returns:
| Name | Type | Description |
|---|---|---|
bool |
bool
|
True if backup was created or skipped due to buffer, False if failed. |
Source code in src/core/PrismUtils/ProjectEntities.py
addEntityAction
¶
Register a custom context menu action for entities.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
key
|
str
|
Unique identifier for the action. |
required |
types
|
List[str]
|
List of entity types this action applies to ('asset', 'shot', etc). |
required |
function
|
callable
|
Callable to execute when action is triggered. |
required |
label
|
str
|
Display label for the context menu item. |
required |
Source code in src/core/PrismUtils/ProjectEntities.py
removeEntityAction
¶
Remove a registered entity action.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
key
|
str
|
Unique identifier of the action to remove. |
required |
Source code in src/core/PrismUtils/ProjectEntities.py
getAssetActions
¶
Get all registered context menu actions for asset entities.
Returns:
| Type | Description |
|---|---|
Dict[str, Dict]
|
Dict[str, Dict]: Dict of action key -> action data. |
Source code in src/core/PrismUtils/ProjectEntities.py
getShotActions
¶
Get all registered context menu actions for shot entities.
Returns:
| Type | Description |
|---|---|
Dict[str, Dict]
|
Dict[str, Dict]: Dict of action key -> action data. |
Source code in src/core/PrismUtils/ProjectEntities.py
connectEntityDlg
¶
connectEntityDlg(entities: Optional[List[Dict[str, Any]]] = None, parent: Optional[QWidget] = None) -> Optional[List[Dict[str, Any]]]
Show dialog to connect entities to other entities.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
entities
|
Optional[List[Dict[str, Any]]]
|
Optional list of entities to connect. |
None
|
parent
|
Optional[QWidget]
|
Optional parent widget for dialog. |
None
|
Returns:
| Type | Description |
|---|---|
Optional[List[Dict[str, Any]]]
|
Optional[List[Dict[str, Any]]]: List of connected entities or None if cancelled. |
Source code in src/core/PrismUtils/ProjectEntities.py
getConnectedEntities
¶
Get all entities connected to the given entity.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
entity
|
Dict[str, Any]
|
Entity dict. |
required |
Returns:
| Type | Description |
|---|---|
List[Dict[str, Any]]
|
List[Dict[str, Any]]: List of connected entity dicts. |
Source code in src/core/PrismUtils/ProjectEntities.py
setConnectedEntities
¶
setConnectedEntities(entities: List[Dict[str, Any]], connectedEntities: List[Dict[str, Any]], add: bool = False, remove: bool = False, setReverse: bool = True) -> None
Set or update entity connections.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
entities
|
List[Dict[str, Any]]
|
List of entities to set connections for. |
required |
connectedEntities
|
List[Dict[str, Any]]
|
List of entities to connect to. |
required |
add
|
bool
|
If True, add to existing connections instead of replacing. |
False
|
remove
|
bool
|
If True, remove from existing connections. |
False
|
setReverse
|
bool
|
If True, also create reverse connections. |
True
|
Source code in src/core/PrismUtils/ProjectEntities.py
4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 | |
getCleanEntity
¶
Create a cleaned copy of entity dict with only essential keys.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
entity
|
Dict[str, Any]
|
Entity dict to clean. |
required |
Returns:
| Type | Description |
|---|---|
Dict[str, Any]
|
Dict[str, Any]: Cleaned entity dict. |
Source code in src/core/PrismUtils/ProjectEntities.py
getUniqueEntities
¶
Remove duplicate entities from a list.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
entities
|
List[Dict[str, Any]]
|
List of entity dicts. |
required |
Returns:
| Type | Description |
|---|---|
List[Dict[str, Any]]
|
List[Dict[str, Any]]: List of unique entities. |
Source code in src/core/PrismUtils/ProjectEntities.py
getEntityName
¶
Get the display name for an entity.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
entity
|
Dict[str, Any]
|
Entity dict. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Entity name for display. |
Source code in src/core/PrismUtils/ProjectEntities.py
EntityDlg
¶
Bases: QDialog
Initialize EntityDlg dialog.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
origin
|
Any
|
Parent widget with core attribute |
required |
parent
|
Optional[QWidget]
|
Qt parent widget. Defaults to None. |
None
|
Source code in src/core/PrismUtils/ProjectEntities.py
Functions¶
setupUi
¶
Set up the entity selection dialog UI.
Creates entity widget with asset/shot tabs and selection buttons.
Source code in src/core/PrismUtils/ProjectEntities.py
itemDoubleClicked
¶
buttonClicked
¶
Handle dialog button clicks.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
button
|
Union[str, Any]
|
Button text or button object |
required |
Source code in src/core/PrismUtils/ProjectEntities.py
sizeHint
¶
Get recommended dialog size.
Returns:
| Type | Description |
|---|---|
QSize
|
QSize(400, 400) |
ConnectEntitiesDlg
¶
Bases: QDialog
Dialog for connecting entities to each other.
Allows selecting two entities and creating connections between them.
Attributes:
| Name | Type | Description |
|---|---|---|
core |
PrismCore instance |
|
parentDlg |
Parent dialog |
Initialize ConnectEntitiesDlg.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
core
|
Any
|
PrismCore instance |
required |
parent
|
Optional[QWidget]
|
Parent widget. Defaults to None. |
None
|
Source code in src/core/PrismUtils/ProjectEntities.py
Functions¶
setupUi
¶
Set up the connect entities dialog UI.
Creates two entity widgets for connecting entities to each other.
Source code in src/core/PrismUtils/ProjectEntities.py
4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 | |
sizeHint
¶
Get recommended dialog size.
Returns:
| Type | Description |
|---|---|
QSize
|
QSize(800, 700) |
onAccepted
¶
Handle Apply button click.
Sets the entity connections and shows confirmation message.
Source code in src/core/PrismUtils/ProjectEntities.py
tabChanged
¶
Handle tab change between Assets and Shots.
Updates the connected entities widget to show the opposite type.
Source code in src/core/PrismUtils/ProjectEntities.py
onSelectedEntityChanged
¶
selectConnectedEntities
¶
Select entities connected to currently selected entities.
Source code in src/core/PrismUtils/ProjectEntities.py
refreshEntities
¶
refreshEntityInfo
¶
Update the entity selection info label.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
items
|
Optional[Any]
|
Items to show info for (defaults to selected items) |
None
|
Source code in src/core/PrismUtils/ProjectEntities.py
refreshConnectedEntityInfo
¶
Update the connected entity info label.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
items
|
Optional[Any]
|
Items to show info for (defaults to selected items) |
None
|
Source code in src/core/PrismUtils/ProjectEntities.py
Entity Hierarchy¶
Project
├── Assets/
│ ├── Characters/
│ ├── Props/
│ └── Environments/
└── Shots/
├── Sequence_010/
│ ├── shot_010/
│ └── shot_020/
└── Sequence_020/
Entity Attributes¶
Common entity metadata: - Name, description - Frame range (for shots) - Resolution, aspect ratio - Status, priority - Assigned artists
See Also¶
- Projects - Project structure management
- PathManager - Entity path resolution
- Products - Entity product management