Search found 81 matches

by beginUndoGroup
December 8th, 2018, 6:27 am
Forum: Script requests
Topic: Vertex groups
Replies: 1
Views: 13021

Re: Vertex groups

Scripts dont have access to vertex selection, so i guess the answer is no for scripts.
A plugin could.
by beginUndoGroup
December 21st, 2017, 2:17 am
Forum: Scripts Discussion
Topic: Delete Selected Keyframes via script
Replies: 4
Views: 12600

Re: Delete Selected Keyframes via script

property is not defined in your snippet.

(You need define : var property = property[k])

Xavier
by beginUndoGroup
December 11th, 2017, 7:18 am
Forum: Expression Discussion
Topic: Wiggle, how to use the output values?
Replies: 10
Views: 29234

Re: Wiggle, how to use the output values?

I had not tried my code when i posted, and i just did: it works for me. The solid animated with this expression moves every second frame, and holds it position otherwise. I don't know why it's not working for you. Side note: Arrays are objects : if a is an array, (typeof a) is : 'object', and (a ins...
by beginUndoGroup
December 3rd, 2017, 5:44 am
Forum: Expression Discussion
Topic: Wiggle, how to use the output values?
Replies: 10
Views: 29234

Re: Wiggle, how to use the output values?

Try this: if (timeToFrames(time)%2 ==0){     wiggle(12,50);     } else{     wiggle(12,50, 1,0.5, time-0.04);     }; wiggle(freq, amount, octave, multiplier, time); It's a method for properties, and it outputs the same kind of things as the property's value (number, array of numbers, etc). So you can...
by beginUndoGroup
February 24th, 2017, 6:43 am
Forum: Scripts Discussion
Topic: How to update UI apps ?
Replies: 3
Views: 11391

Re: How to update UI apps ?

@runegan : you can close a comp this way:

comp.openInViewer();
app.executeCommand(4); // 4 is "Close"

Xavier
by beginUndoGroup
January 25th, 2017, 9:16 am
Forum: Scripts Discussion
Topic: Image sequence array concatenation - need optimization help!
Replies: 1
Views: 7811

Re: Image sequence array concatenation - need optimization help!

ExtendScript doesnt like big arrays. Past 500 entries it is getting a bit slow. What it slowing you down is probably the use of sort () and splice(). You dont need the sort() because getFiles() takes the files sorted anyway. And to avoid the splice(), you can push a new array (the final result) inst...
by beginUndoGroup
January 7th, 2017, 11:42 am
Forum: Expression Discussion
Topic: Measure length of curved shape path?
Replies: 1
Views: 13364

Re: Measure length of curved shape path?

In an expression context, there is no way.
And in scripting, you can access the control points of a shape path, hence you could calculate its curve length, but you would have to implement that function because After Effects does not provide it.

Xavier
by beginUndoGroup
December 2nd, 2016, 12:31 pm
Forum: Scripts Discussion
Topic: Run an explorer windows from After effects
Replies: 7
Views: 14810

Re: Run an explorer windows from After effects

For folders, you can simply do:

myFolderObj.execute();

For files, .execute() also exists, but it will do something different (open the file with the default application registered for that type of file).

Xavier
by beginUndoGroup
November 30th, 2016, 2:13 am
Forum: Scripts Discussion
Topic: Camera Auto-Orientation Off
Replies: 8
Views: 14706

Re: Camera Auto-Orientation Off

Humm, sorry.
I misstyped the first and copied/pasted endlessly the same mistake.

Xavier
by beginUndoGroup
November 29th, 2016, 1:02 pm
Forum: Scripts Discussion
Topic: Camera Auto-Orientation Off
Replies: 8
Views: 14706

Re: Camera Auto-Orientation Off

Use the AutoOrient object:

Code: Select all

myCamera.autoOrient = AutoOrient.NO_AUTO_ORIENT;


Other possibilities are :
AutoOrient.ALONG_PATH;
AutoOrient.CAMERA_OR_POINT_OF_INTEREST;
AutoOrient.CHARACTERS_TOWARDS_CAMERA;

(the last one is only for per-character-3D text layers).

Xavier

 
by beginUndoGroup
August 11th, 2016, 1:49 pm
Forum: Script requests
Topic: Mass "Remove Masks" script?
Replies: 2
Views: 11701

Re: Mass "Remove Masks" script?

You can try this, it removes all masks blindly (save as .jsx in the ScriptUIPanel folder, restart AE, then launch from the Window menu): this.add("button{text: 'remove all masks'}").onClick = function(){ var comp = app.project.activeItem; if (!comp || comp.typeName !== "Composition&qu...
by beginUndoGroup
July 5th, 2016, 11:00 am
Forum: Scripts Discussion
Topic: Treeview multiselect?
Replies: 5
Views: 13986

Re: Treeview multiselect?

Hi again, i tried my suggestion and you right, it doesnt work.
From the ScriptUI object model viewer in ESTK, treeviews creation properties do not include "multiselect" (listboxes do), so it might very well be that they are not supposed to accept multiple selections...

Xavier
by beginUndoGroup
July 4th, 2016, 5:23 am
Forum: Scripts Discussion
Topic: Treeview multiselect?
Replies: 5
Views: 13986

Re: Treeview multiselect?

You need to specify "multiselect: true" in the properties object of the treeview: myTree = myGroup.add("treeview{properties:{multiselect: true}}"); or : myTree = myGroup.add("treeview", undefined, undefined, {multiselect: true}); (it must be specified upon creation and ...
by beginUndoGroup
May 16th, 2016, 2:50 am
Forum: Scripts Discussion
Topic: Dialog UI to palette
Replies: 3
Views: 10169

Re: Dialog UI to palette

To make requests you can use this form: http://www.adobe.com/products/wishform.html

But i doubt that, in that very case, Adobe will change anything.
by beginUndoGroup
May 15th, 2016, 1:56 am
Forum: Scripts Discussion
Topic: Dialog UI to palette
Replies: 3
Views: 10169

Re: Dialog UI to palette

I may be mistaken, but from the name of the window you want to create it seems that it would be an auxiliary window for a main script. If so, then it's not possible. Dockable scripts are special in that the 'this' object at the entry point of the script is already a graphical container (empty panel)...