Search found 8 matches

by alexmunteanu
May 10th, 2020, 9:01 am
Forum: Scripts Discussion
Topic: Can't find the code ID to open the Scripting & Expressions window
Replies: 2
Views: 9200

Re: Can't find the code ID to open the Scripting & Expressions window

3131 is the command id, so:

Code: Select all

if (parseFloat(app.version) < 16.1) app.executeCommand(2359);
else app.executeCommand(3131);
by alexmunteanu
April 14th, 2020, 11:10 am
Forum: Script requests
Topic: Replace multiple footage Items with Placeholder
Replies: 10
Views: 20242

Re: Replace multiple footage Items with Placeholder

In you specific case there is a workaround. replaceWithPlaceholder() method changes the mainSource property and it seems that an Undo, even if apparently you can see the correct file, still leaves mainSource property of type PlaceholderSource . To avoid this, I simply replaced the item with a solid....
by alexmunteanu
April 14th, 2020, 10:38 am
Forum: Scripts Discussion
Topic: Convert jsx to jsxbin
Replies: 2
Views: 15506

Re: Convert jsx to jsxbin

Hey, There are a couple of utilities on github, such as https://github.com/runegan/jsxbin If you're an Atom user you can check out my JSXBIN encoder : https://atom.io/packages/jsxbin-encoder Or for Visual Code: https://github.com/axwt/texttojsxbin All of these tools are using esdebugger-core from ht...
by alexmunteanu
April 13th, 2020, 7:30 am
Forum: Script requests
Topic: Replace multiple footage Items with Placeholder
Replies: 10
Views: 20242

Re: Replace multiple footage Items with Placeholder

Yes... the previously replaced items will remain as a placeholder somehow, after an Undo.
Will check into that a bit later and send you an updated script.

Cheers! Take care!

by alexmunteanu
April 12th, 2020, 5:12 pm
Forum: Script requests
Topic: Replace multiple footage Items with Placeholder
Replies: 10
Views: 20242

Re: Replace multiple footage Items with Placeholder

P.S.: You don't have to check all the project items. app.project.selection gives you an array of all the selected items. In bigger projects your script will be slower.

by alexmunteanu
April 12th, 2020, 5:10 pm
Forum: Script requests
Topic: Replace multiple footage Items with Placeholder
Replies: 10
Views: 20242

Re: Replace multiple footage Items with Placeholder

I've made a few more changes besides the proxy part: corrected/ improved item check added the option to use the defaults w-3840, h-2160, fps-30 or insert new values it can handle both file sequences and video files Here you go (also attached): function runReplaceWithPlaceHolder () { if (app.project....
by alexmunteanu
April 12th, 2020, 10:12 am
Forum: Script requests
Topic: Replace multiple footage Items with Placeholder
Replies: 10
Views: 20242

Re: Replace multiple footage Items with Placeholder

Hey, The first issue is that ` selected ` property returns a Boolean. So it basically tells you if the specified item is selected or not. Second: ` app.project.item.selected ` does not exist. You need to specify an item. E.g.: ` app.project.item(1).selected `. Third:you're using an anonymous functio...