ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

get suffix of footagefiles and create folders

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Rainier Raydán
get suffix of footagefiles and create folders
on Oct 10, 2017 at 4:40:36 pm

Hi! I'm trying to write a script that creates folders by the suffix of footage files.

Its there anyway to get the suffix of the differents AVfiles (like .ai, .jpg. jpeg, psd....) and then subtract the dot (".") from the text so it can create and array to get the folders name without the dot?


Return to posts index

Dan Ebberts
Re: get suffix of footagefiles and create folders
on Oct 10, 2017 at 5:35:40 pm

Like this maybe:

var s = myFootage.name.split(".");
var myFolderName = s[s.length-1];


Dan



Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]