Adding Asset Folders

Adding Asset Folders#

This example plugin creates additional folders in the asset folder, when an asset gets created.

These folders are created by default: “Export”, “Playblasts”, “Renders” and “Scenefiles” and with this plugin additional folders for “Audio” and “Reference” are added.

See the section for Single File Plugins on how to load this example.

# AddAssetFolders.py

name = "AddAssetFolders"
classname = "AddAssetFolders"


import os
from qtpy.QtWidgets import *


class AddAssetFolders:
    def __init__(self, core):
        self.core = core
        self.version = "v1.0.0"

        self.core.entities.entityFolders["asset"] = ["Audio", "References"]