Search found 29 matches

by dfred
August 27th, 2012, 1:53 pm
Forum: Scripts Discussion
Topic: Work in Progress: Questions for a RenderFarm Submitter
Replies: 10
Views: 6834

Re: Work in Progress: Questions for a RenderFarm Submitter

I'm not completely sure if it'll work, but try this:

Code: Select all

if (!app.isUISuppressed) {
    doRestOfScript;
}
Edit: Nevermind, I think that's only for Render Engine actually.
by dfred
August 15th, 2012, 11:36 pm
Forum: Scripts Discussion
Topic: Work in Progress: Questions for a RenderFarm Submitter
Replies: 10
Views: 6834

Re: Work in Progress: Questions for a RenderFarm Submitter

Also, I believe if you have projectStartFrame set to 1 and all comps set to start at frame 1 everything should work as expected. The issue arises when projectStartFrame is set to 0 and comp start frame is set to 1.
by dfred
August 15th, 2012, 11:27 pm
Forum: Scripts Discussion
Topic: Work in Progress: Questions for a RenderFarm Submitter
Replies: 10
Views: 6834

Re: Work in Progress: Questions for a RenderFarm Submitter

Paul Tuersley came up with a hack to this problem:

viewtopic.php?f=8&t=1878
by dfred
August 15th, 2012, 9:36 am
Forum: Scripts Discussion
Topic: Camera Iris Shape and Iris Rotation
Replies: 5
Views: 4522

Re: Camera Iris Shape and Iris Rotation

Ah yes. I guess they can't list everything in the Scripting Guide, but some of the camera options are accessible directly from the camera level, but others are only available through "cameraOption": app.project.activeItem.layer("Camera 1").aperture app.project.activeItem.layer("Camera 1").blurLevel ...
by dfred
August 14th, 2012, 5:03 pm
Forum: Scripts Discussion
Topic: Camera Iris Shape and Iris Rotation
Replies: 5
Views: 4522

Re: Camera Iris Shape and Iris Rotation

You need a numerical value (Hexagon is 6 because the divider counts as part of the list):

Code: Select all

newCamera.cameraOption.irisShape.setValue(6)
Try this as well:

Code: Select all

irisRotExpression = 'thisComp.layer("Camera Control").effect("Iris Rotation")("Angle").value';
by dfred
August 9th, 2012, 2:44 pm
Forum: Scripts Discussion
Topic: Work in Progress: Questions for a RenderFarm Submitter
Replies: 10
Views: 6834

Re: Work in Progress: Questions for a RenderFarm Submitter

I don't believe renderQueue items have a "selected" attribute, so you'll probably have to stick with:

Code: Select all

if(app.renderQueue.item(index).status === RQItemStatus.QUEUED)

or

Code: Select all

if(app.renderQueue.item(index).status === RQItemStatus.UNQUEUED)
by dfred
July 18th, 2012, 7:51 pm
Forum: Animation presets Library
Topic: Vignette Preset
Replies: 0
Views: 6744

Vignette Preset

Single Layer Vignette Preset Using YY_Ramp+ for CS5.5+
by dfred
July 11th, 2012, 2:50 pm
Forum: Scripts Discussion
Topic: Unable to get/set CUSTOM_VALUE keyframe
Replies: 0
Views: 2775

Unable to get/set CUSTOM_VALUE keyframe

Is there any way to move a keyframe on a property with PropertyValueType.CUSTOM_VALUE without getting or setting a value?
by dfred
June 30th, 2012, 12:10 am
Forum: Script requests
Topic: Randomize Masks Colors?
Replies: 7
Views: 5189

Re: Randomize Masks Colors?

Here's another variation using a spectrum of colors instead of completely random colors: function hsvToRgb(h, s, v){ var r, g, b; var i = Math.floor(h * 6); var f = h * 6 - i; var p = v * (1 - s); var q = v * (1 - f * s); var t = v * (1 - (1 - f) * s); switch(i % 6){ case 0: r = v, g = t, b = p; bre...
by dfred
June 29th, 2012, 1:33 pm
Forum: Script requests
Topic: Randomize Masks Colors?
Replies: 7
Views: 5189

Re: Randomize Masks Colors?

You can play around with the brightness and saturation levels: function rgbToHsv(r, g, b){ r = r/255, g = g/255, b = b/255; var max = Math.max(r, g, b), min = Math.min(r, g, b); var h, s, v = max; var d = max - min; s = max == 0 ? 0 : d / max; if(max == min){ h = 0; // achromatic }else{ switch(max){...
by dfred
June 25th, 2012, 12:42 pm
Forum: Script Tutorials
Topic: FootageItem replace() method
Replies: 10
Views: 13559

Re: FootageItem replace() method

Maybe a dumb question, but my Javascript Console does not print out all variable results as it shows in your screenshot. It only prints "Result: undefined" after every script I run. It only prints something else when I explicitly use "$.writeln". Am I missing something? (I'm on a Mac.)
by dfred
June 21st, 2012, 10:52 am
Forum: Script requests
Topic: I know this isn't really the right place, but
Replies: 2
Views: 2657

Re: I know this isn't really the right place, but

I don't know about externally editing it, but have you tried to open it with Caps Lock on and have you tried to import it into a new project instead of opening it? If you know it's Auto Levels then you could try removing the plugin from the Plug-ins folder before opening it or importing it.
by dfred
June 20th, 2012, 6:09 pm
Forum: Scripts Discussion
Topic: New CS6 Scripting Features
Replies: 2
Views: 3054

Re: New CS6 Scripting Features

Awesome. Thanks!
by dfred
June 19th, 2012, 8:28 pm
Forum: Script requests
Topic: Randomize Masks Colors?
Replies: 7
Views: 5189

Re: Randomize Masks Colors?

function changeMaskColors() { app.beginUndoGroup ( "Change Mask Colors"); if (!app.project || !(app.project.activeItem instanceof CompItem) || app.project.activeItem.selectedLayers < 1) { alert ("Please select at least one layer"); return; } var curItem = app.project.activeItem; // current composit...
by dfred
June 15th, 2012, 1:07 pm
Forum: Script requests
Topic: Put nulls at each corner of a solid
Replies: 2
Views: 5036

Re: Put nulls at each corner of a solid

Try the attached script. // CornerNulls.jsx by Dan Fredley ©2012 // Version 1.0 // This script creates a null object at each corner of selected layers and keeps them organized in a "Nulls" folder within the "Solids" folder. // // No scripts are guaranteed and use at your own risk, etc. { function C...