Creative COW SIGN IN :: SPONSORS :: ABOUT US :: CONTACT US
ADOBE AFTER EFFECTS: HomeForumBasicsExpressionsTutorialsPodcastsMotion GraphicsTrainingCinema 4DFAQ

Render error when attempting to render renamed psd file

Cow Forums : Adobe After Effects Expressions
VIEW POSTS   •   ADD A NEW POST   •   SEARCH   •   CHANGE FORUM
Respond to this post   •   Return to posts index   •   Read entire thread


Render error when attempting to render renamed psd file
by Dean Mougianis on Nov 6, 2009 at 5:05:19 pm

Hi,

Has anyone had this problem? I'm trying to render a series of stills (photoshop psd files) at regular points along a timeline - all generated by a script. I can generate the renderitems just fine - I've attaced the script that does it.

When I try to render however, I get this error:

error: Can't copy from a file " / AEtemp-AADE9C- " that is empty (39 :: 0)

and are my filepath and new filename - but the AEtemp portion is generated by after effects. What results are files that are about 40K bytes but are not valid photoshop files.

When I don't try to rename the render output file, after effects generates it's own name with a file sequence number and this renders fine.

I hope I'm being clear. Any help would be appreciated



var frameSpeed = theComp.layer("control layer").property("Effects").property("speed").property("Slider").value;
var retPathObj = new Folder().selectDlg("Pick a folder");
for (var i = 0, startPos = 0; startPos < theComp.duration; i++, startPos += frameSpeed) {
var renderItem = app.project.renderQueue.items.add(theComp);
renderItem.timeSpanStart = startPos;
renderItem.timeSpanDuration = theComp.frameDuration;
renderItem.outputModules[1].applyTemplate("Photoshop");
renderItem.outputModules[1].file = new File(retPathObj.fullName + '/' + theComp.name + '_' + i.toString() + '.psd')
}


Respond to this post   •   Return to posts index   •   Read entire thread


Current Message Thread:




Note: If you are a registered user please click here to login before posting.

Your post will not be accepted if your name and email address are not registered in our database. Click here if you do not have an account.

Name
E-Mail Address
Subject
E-Mail me when someone responds
Just This Message   Entire Thread   None  

Message:



Note: The following are HTML characters and may cause parts of your post to disappear if not used correctly: < > &
To include any portion of the post in your response, highlight the desired text and hit the "Q" key. Read more...



Please post Expressions Code in the box below:


Add your message signature


 


Note: By clicking "Post Direct" button above, you are agreeing to the Creative Cow's Code of Conduct.



FORUMSTUTORIALSMAGAZINETRAININGVIDEOS - REELSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

© CreativeCOW.net All rights are reserved.

[Top]