After further investigation, I managed to fix my problem.
I was trying to use this:
if (myComp.layers[y].source.name == null) { y++ }
instead of this:
if (myComp.layers[y].source == null) { y++ }
Newbie mistake, but at least I found it!
Search found 14 matches
- August 13th, 2014, 12:50 pm
- Forum: Scripts Discussion
- Topic: Detect if layer is a text layer
- Replies: 2
- Views: 17099
- August 13th, 2014, 10:55 am
- Forum: Scripts Discussion
- Topic: Detect if layer is a text layer
- Replies: 2
- Views: 17099
Detect if layer is a text layer
Hi everyone! I'm trying to help someone write a script in the scripts request forum that selects layers with the same source footage. The problem i'm running into is that as it loops through the layers, if it runs into "text" it finds the source as null and breaks. Is there something I can...
- August 13th, 2014, 10:49 am
- Forum: Script requests
- Topic: layer - select all from source
- Replies: 1
- Views: 12543
Re: layer - select all from source
Sorry it took so long to get a reply. The code below should work for selecting items with the same source, just select an item and run the script. EDIT: Fixed the bugs! { var myComp = app.project.activeItem; if (myComp.selectedLayers.length != 0) { var myLayers = myComp.selectedLayers; var myNumLaye...
- August 12th, 2014, 2:41 pm
- Forum: Script requests
- Topic: Set Keyframe Influence
- Replies: 1
- Views: 42492
Set Keyframe Influence
I'm attempting to make a toolbar that lets me change the incoming or outgoing velocities for all selected keyframes to set amounts (60%, 80%, 100% etc) with a single button press so I don't have to keep right clicking and going into the keyframe velocity window every time. The two problems i'm runni...
- January 15th, 2013, 5:33 pm
- Forum: Script requests
- Topic: Delete Duplicate Keyframes
- Replies: 2
- Views: 14164
Re: Delete Duplicate Keyframes
Absolutely perfect!
This solves my immediate problem, and I should also be able to learn a lot from how you wrote it. Thank you!
This solves my immediate problem, and I should also be able to learn a lot from how you wrote it. Thank you!
- January 11th, 2013, 6:17 pm
- Forum: Script requests
- Topic: Delete Duplicate Keyframes
- Replies: 2
- Views: 14164
Delete Duplicate Keyframes
Hello! I'm wondering if you can help me write up a very quick script. It's similar to the aescripts jdSmartBaker, but much simpler. I need a script that looks at the first keyframe and then continually deletes each keyframe after it that has the same value, until it hits a keyframe with a new value....
- September 17th, 2012, 2:05 pm
- Forum: Scripts Discussion
- Topic: Script to reveal property
- Replies: 1
- Views: 10358
Script to reveal property
Is there any object that will allow you to expand/twirldown a specific property? To be honest, I just want to make a button that expands keyframed properties without expanding properties with only expressions on them. (I know about the U, Shift+EE trick, but that hides properties with both keyframes...
- August 27th, 2012, 3:53 pm
- Forum: Scripts Discussion
- Topic: Work in Progress: Questions for a RenderFarm Submitter
- Replies: 10
- Views: 35535
Re: Work in Progress: Questions for a RenderFarm Submitter
Update: Turns out it's not what I thought it was. Instead the renderfarm engine is not liking that some mapped network drives have red X's over them, even though they are connected.
- August 27th, 2012, 2:15 pm
- Forum: Scripts Discussion
- Topic: Work in Progress: Questions for a RenderFarm Submitter
- Replies: 10
- Views: 35535
Re: Work in Progress: Questions for a RenderFarm Submitter
Might that work if I force it to bring up a save-as dialog with app.project.saveWithDialog()?
- August 27th, 2012, 1:41 pm
- Forum: Scripts Discussion
- Topic: Work in Progress: Questions for a RenderFarm Submitter
- Replies: 10
- Views: 35535
Re: Work in Progress: Questions for a RenderFarm Submitter
Ok, i've come up with a new problem! I've got the script set up to where it can queue up renderitems, save, and then submit the jobs to the farm. The only problem is, I think that it's not actually completing the save before starting the function to send off the data to the farm. That's causing some...
- August 16th, 2012, 9:41 am
- Forum: Scripts Discussion
- Topic: Work in Progress: Questions for a RenderFarm Submitter
- Replies: 10
- Views: 35535
Re: Work in Progress: Questions for a RenderFarm Submitter
Thank you! That's exactly what I needed.
- August 15th, 2012, 5:39 pm
- Forum: Scripts Discussion
- Topic: Work in Progress: Questions for a RenderFarm Submitter
- Replies: 10
- Views: 35535
Re: Work in Progress: Questions for a RenderFarm Submitter
Ok, new question. I have some code that is allowing me to over-ride the start frame and duration of an item added to the render queue. if (SmedgeIt.checkbox2.value == false) { var STS_Framerate = app.project.item(i).frameRate; rqi.timeSpanStart = SmedgeIt.edittext4.text / STS_FR; var STS_Duration = ...
- August 9th, 2012, 3:25 pm
- Forum: Scripts Discussion
- Topic: Work in Progress: Questions for a RenderFarm Submitter
- Replies: 10
- Views: 35535
Re: Work in Progress: Questions for a RenderFarm Submitter
Ahh, I see. I think my plan will be to give it three conditions then... if Queued render items exist but selected comps dont, then use the queue. If selected comps exist, but queued render items don't, use comps. If both exist, pop up an annoying window asking the user which he wants to use. :mrgreen:
- August 9th, 2012, 12:01 pm
- Forum: Scripts Discussion
- Topic: Work in Progress: Questions for a RenderFarm Submitter
- Replies: 10
- Views: 35535
Work in Progress: Questions for a RenderFarm Submitter
Hi everyone! Having used expressions pretty extensively for the past couple years, i've decided to jump neck-deep into teaching myself scripting. I've been at it for a couple weeks now, and have decided to tackle a project as a case-study to learn the ins and outs of everything. I'm working on a scr...