Search found 81 matches

by beginUndoGroup
July 1st, 2014, 12:36 am
Forum: Scripts Discussion
Topic: The correct use of backward loops
Replies: 4
Views: 11001

Re: The correct use of backward loops

You can you use a for loop, it's indeed the same. But since selMasksId is an array (not a collection like layer.mask) you must start right at the last entry and end at the first included: for ( j = selMasksId.length-1; j >=0; j--){theLayer.mask(selMasksId[j]).remove();} The while loop works like thi...
by beginUndoGroup
June 28th, 2014, 10:57 am
Forum: General Scripts Library
Topic: FDG-3D-Right-Angle-Line
Replies: 1
Views: 21474

Re: FDG-3D-Right-Angle-Line

Thank you !

The plant tree one is cool.

Xavier
by beginUndoGroup
June 28th, 2014, 10:53 am
Forum: Scripts Discussion
Topic: The correct use of backward loops
Replies: 4
Views: 11001

Re: The correct use of backward loops

Not clear why you need 2 loops. Removing stuff looses the properties selection so you need to store indices before: var myComp = app.project.activeItem, theLayer, n, indices; if ( myComp instanceof CompItem && myComp.selectedLayers.length>0 && myComp.selectedLayers[0].mask &&...
by beginUndoGroup
May 6th, 2014, 2:06 pm
Forum: Scripts Discussion
Topic: IndexOf problem
Replies: 10
Views: 30249

Re: IndexOf problem

ExtendScript implements ECMA Standard 262 3rd Edition (December 1999), while the latest 'official' edition is the 5th (June 2011). There are now plenty of new methods for arrays, like indexOf, every, forEach, map, filter, reduce, some... But ExtendScript doesnt have them. You can do something like t...
by beginUndoGroup
April 12th, 2014, 5:29 pm
Forum: General Scripts Library
Topic: Text as a button in GUI
Replies: 6
Views: 32552

Re: Text as a button in GUI

Do you have an error in CS3 or just a text that doesnt respond to event ?
In the second case, it might be that texts didnt support that kind of events at that time...
Really i don't know.

Xavier.
by beginUndoGroup
April 9th, 2014, 2:50 am
Forum: General Scripts Library
Topic: Text as a button in GUI
Replies: 6
Views: 32552

Re: Text as a button in GUI

There are event listeners "mouseover", "mouse out", etc. Xavier. (function(ooo){ (ooo instanceof Panel) || (ooo=new Window("palette")); ooo.onResizing = ooo.onResize = function(){this.layout.resize();}; var myText = ooo.add("panel{margins: 2}").add("stati...
by beginUndoGroup
March 7th, 2014, 12:15 pm
Forum: Scripts Discussion
Topic: Create a custom Control effect
Replies: 35
Views: 94814

Re: Create a custom Control effect

Don't think so. He puts most of his old scripts on aescripts.com and his newer ones are on motionboutique.com. If you can't find it on either place he might have judged its was not worth it... Depending on what you want to do there is another script: http://aescripts.com/slim-expression-controls/ an...
by beginUndoGroup
March 4th, 2014, 11:07 am
Forum: Scripts Discussion
Topic: Dockable Script Question
Replies: 1
Views: 6968

Re: Dockable Script Question

Try rewrite your onScriptButtonClick this way: function onScriptButtonClick() { var currDir = File($.fileName).path; var scriptFile = new File(currDir+this.currentDirectory+this.scriptFileName); alert(scriptFile.fsName); if (scriptFile.exists && scriptFile.open('r')) { eval(scriptFile.read()...
by beginUndoGroup
March 4th, 2014, 4:40 am
Forum: Expression Discussion
Topic: Weighted Directional Random Movement
Replies: 2
Views: 10571

Re: Weighted Directional Random Movement

Hi, it's very probably possible to do this with an expression, but that expression would have to to look back and recalculate for each frame all position values since the start of the animation. With 20 shapes or so, you'll be in trouble just scrubbing the CTI. But this is precisely the type of thin...
by beginUndoGroup
January 4th, 2014, 10:19 am
Forum: Expression Discussion
Topic: Linking opacity to xPosition ?
Replies: 2
Views: 9678

Re: Linking opacity to xPosition ?

Hi, you can try this:

Code: Select all

//EXPRESSION//
linear( Math.abs(ConPos-CircPos), 0, s, MaxOpa, MinOpa);
and also try replace linear by ease, or easeIn, or easeOut.

Xavier
by beginUndoGroup
December 27th, 2013, 6:23 am
Forum: Scripts Discussion
Topic: Store data with one button, paste it with another button
Replies: 2
Views: 8486

Re: Store data with one button, paste it with another button

You can, all you need to do is declare a variable high enough in your script (for instance at the same level as your window object). Here i called that variable 'scriptSelection', you can rename it. var scriptSelection = []; var w = new Window("palette", etc); var cpy = w.add ("button...
by beginUndoGroup
December 16th, 2013, 5:32 am
Forum: Scripts Discussion
Topic: addKey and setValuesAtTimes calculation time
Replies: 2
Views: 8838

Re: addKey and setValuesAtTimes calculation time

Hello, i'm also interested in this. I've got no answer, but few comments. First what do you call a large amount of keys ? Note than when you run > keyframe assistant > convert animation to keyframes, AE converts at most 30 seconds (at 25 fps that's 750 keys), even if your composition is longer. Ther...
by beginUndoGroup
December 12th, 2013, 12:21 pm
Forum: Scripts Discussion
Topic: store variables locally on hdd or direcly in .js file?
Replies: 2
Views: 8445

Re: store variables locally on hdd or direcly in .js file?

Storing in the .jsx itself is maybe possible but there are simpler ways: use the app.settings object. It has 3 methods: haveSetting, getSetting, saveSetting. haveSetting check if a setting exists saveSetting saves directly in the user's Preferences.txt file of the application. getSetting retrieves t...
by beginUndoGroup
November 21st, 2013, 1:53 am
Forum: Scripts Discussion
Topic: function time reverse keyframes
Replies: 6
Views: 14337

Re: function time reverse keyframes

prop.selected = true; does highlight the property and all of its keyframes.

Now if you want to isolate that property, as when you press M, MM, P, etc... : not possible.