Selected library path

Toon Boom has command “getSelectedTemplate”. But i need to get selected “library” forder. How get selected library path?
Also command “copyPaste.createTemplateFromSelection()” will create template with all frame of scene. How create template (for exemple) from 5 to 13 frames?

Hello legion30002012,

You can’t just select the whole folder.
Your best bet would be to select several templates and then use the library.numberOfTemplatesSelected() to then do a for loop to import each ones.

And also, the copyPaste function doesn’t have the ability to only import a part of the template.