Search found 705 matches
- March 16th, 2012, 2:29 am
- Forum: Scripts Discussion
- Topic: Calling Functions with ScriptUI
- Replies: 3
- Views: 8922
Re: Calling Functions with ScriptUI
Regarding it opening a panel and a window, I'd suggest looking more carefully at the example on that other post. When run from the Windows menu, "this" is the panel that AE creates. The last line of the script "myScript(this)" sends the panel (if it exists) to the main script fun...
- March 15th, 2012, 1:38 pm
- Forum: Scripts Discussion
- Topic: inPoint, outPoint, duration problems
- Replies: 3
- Views: 9565
Re: inPoint, outPoint, duration problems
There is also the currentFormatToTime() global method for converting from timecode to seconds. See page 16 of the CS3 Scripting Guide pdf. And if necessary you can check and alter the time display type (timecode, frames) using the Project object's timecodeDisplayType atribute (page 116) It can be tr...
- March 15th, 2012, 1:28 pm
- Forum: Scripts Discussion
- Topic: Calling Functions with ScriptUI
- Replies: 3
- Views: 8922
Re: Calling Functions with ScriptUI
The most obvious problem I see is that you're defining an object (MAR) in one of the functions and yet other functions are trying to access it. Something that is defined inside a function only has scope in that function. You'll need to define it outside any function (or inside a function that also c...
- March 13th, 2012, 5:21 am
- Forum: Scripts Discussion
- Topic: Problem with UI and functions
- Replies: 4
- Views: 12595
Re: Problem with UI and functions
I've added some comments which will hopefully help explain things. { // THESE MATCHING BRACKETS AT START/END MAY NOT BE NECESSARY // I THINK WE USED TO DO THIS THINKING IT PREVENTED VARIABLES HAVING GLOBAL (APP WIDE) SCOPE // BUT THAT ISN'T THE CASE. I DON'T THINK THEY REALLY DO ANYTHING. //////////...
- March 12th, 2012, 5:45 pm
- Forum: Scripts Discussion
- Topic: Problem with UI and functions
- Replies: 4
- Views: 12595
Re: Problem with UI and functions
I think this is because variables defined outside a function have global scope across all scripts, and your myPalette variable is getting redefined by the second script. You should use unique names for variables defined in the main scope, but even these would conflict if you were to run multiple ins...
- March 9th, 2012, 3:14 am
- Forum: Scripts Discussion
- Topic: Close/Open folders?
- Replies: 2
- Views: 8378
Re: Close/Open folders?
I don't think that's possible. But it looks like comps can only be selected if the containing folder is open, so you can prevent it from opening any folders that aren't already open with this: for(var i = 1; i<=app.project.numItems; i++){ if(app.project.item(i) instanceof CompItem && app.pro...
- February 2nd, 2012, 9:49 am
- Forum: Paul Tuersley's Scripts
- Topic: AE to C4D
- Replies: 82
- Views: 555688
Re: AE to C4D
I don't think you have posted in the wrong place. We are definitely talking about AE to C4D. Here's the description of one of their new plugins on that link: Plugin for After Effects CS3 - CS5 to CINEMA 4D R12 connection. I haven't tried it myself, but I would imagine it does what you want and is pr...
- February 2nd, 2012, 6:40 am
- Forum: Paul Tuersley's Scripts
- Topic: AE to C4D
- Replies: 82
- Views: 555688
Re: AE to C4D
Hi Chris, To be sure it's not a sync issue you should check it's 25 fps every step of the way, including in C4D, the resulting render and how that render is interpreted when reimported into After Effects. Have you tried using Maxon's new official AE export plug-in? As far as I'm aware it's made my A...
- January 27th, 2012, 11:16 am
- Forum: Script requests
- Topic: All Solos off
- Replies: 9
- Views: 18487
Re: All Solos off
It's .locked
You can find it as an attribute of the Layer object in the CS3 scripting guide.
You can find it as an attribute of the Layer object in the CS3 scripting guide.
- January 4th, 2012, 9:34 am
- Forum: Script requests
- Topic: Script to create a backwards compatible AE-project
- Replies: 4
- Views: 13576
- November 3rd, 2011, 3:47 am
- Forum: Script requests
- Topic: All Solos off
- Replies: 9
- Views: 18487
Re: All Solos off
Scripts don't have access to the layout of Timeline columns, so this isn't possible.
- October 7th, 2011, 4:30 am
- Forum: Script requests
- Topic: Preset Typography Controls under Script Management
- Replies: 7
- Views: 17918
Re: Preset Typography Controls under Script Management
Yes, pt_TextEdit does allow you to save text styles as presets and apply them to other layers. Scripting doesn't have full access to text style properties, so it only saves and applies the Font, Size, Fill Color, Stroke Color, Stroke Width and Alignment.
- October 5th, 2011, 4:43 pm
- Forum: Scripts Discussion
- Topic: Convert expressions to keyframes++
- Replies: 2
- Views: 32072
Re: Convert expressions to keyframes++
These things can only be done with scripts, not expressions. I'll move this to Scripts Discussions. To add an expression to a property you would use: property.expression = "my expression"; To remove an expression you would use: property.expression = ""; To convert an expression t...
- October 5th, 2011, 12:55 am
- Forum: Expression Discussion
- Topic: Concatenate texts
- Replies: 6
- Views: 21260
Re: Concatenate texts
This will limit it to 2 decimal places: string=R.value.toFixed(2) + ", " + G.value.toFixed(2) + ", " +B.value.toFixed(2); You won't be able to set individual text colors if you do this on a single text layer. When an expression is applied it appears to take the style from the fir...
- October 4th, 2011, 3:28 pm
- Forum: Expression Discussion
- Topic: Concatenate texts
- Replies: 6
- Views: 21260
Re: Concatenate texts
You could do:
Code: Select all
string=R.value + "," + G.value + "," +B.value;