Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Creating a folder structure at a defined location on your desktop from AE via script?

Community Beginner ,
Apr 28, 2015 Apr 28, 2015


I've written a script that creates a folder structure in my AE project view but I would like to then be able to run another script (eventually tied to a button on a GUI panel) that allows me to define where I can create a similar folder structure on my desktop or defined folder.

Is there a way to do this?

Thanks!

TOPICS
Scripting
5.2K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Advocate , Aug 11, 2015 Aug 11, 2015

Ok, I believe I now have something that works. I've tested it a little bit in CC 2014, but have not really put it through the wringer. So use with CAUTION!!!

It may not look pretty, but it works. The only things to be aware of are that it currently does not have a special character verifier to prevent OS folder name issues. The other is that if a duplicate folder name appears within the same parentFolder (see crude example below), it will just not be created in the OS setup. This prevents overwri

...
Translate
Advocate ,
Apr 04, 2016 Apr 04, 2016
LATEST

No worries. Each folder path is fully typed out.

myFirstFolder

     myFirstSubFolder

          myFirstSubSubFolder

     myThirdSubFolder

     myFourthSubFolder

translates into...

myFirstFolder

myFirstFolder + slash + myFirstSubFolder

myFirstFolder + slash + myFirstSubFolder + slash + myFirstSubSubFolder

myFirstFolder + slash + myThirdSubFolder

myFirstFolder + slash + myFourthSubFolder

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines