im trying to split a footage path into an array on windows. but with no luck:
Code: Select all
var selItems = app.project.selection;
if (selItems.length > 0){
for (i=0; i < selItems.length; i++){
var footagePath=selItems[i].file;
alert (footagePath);
var splitFootagePath = footagePath.split("/");
alert (splitFootagePath);
}
} else {
alert("Error");
}
Code: Select all
var splitFootagePath = footagePath.split("/");
any help?Unable to execute script at line 6. Function footage.split is undefined
thanks in advance,
payton