Function importFile

  • 导入文件到 Ae 中

    Type Parameters

    • T extends _ItemClasses

    Parameters

    • path: LooseFile
    • importType: ImportAsType
    • Optionalsequence: boolean = false

    Returns T | null

    0.1.0

    const sequencePath = _.createPath(_.pathDesktop.fsName, "Sequence", "image_01.png");
    _.importFile(sequencePath, ImportAsType.FOOTAGE, true);
    // 结果:桌面 Sequence 文件夹中的 png 序列被导入为素材。