Search found 81 matches
- January 29th, 2015, 1:33 am
- Forum: Expression Discussion
- Topic: Creating radio buttons with checkbox controllers
- Replies: 1
- Views: 9918
Re: Creating radio buttons with checkbox controllers
If your fill color only takes two values, you can simplify your framework by using only one checkbox, named for instance "alt color", and in the fill set an expression like: if (effect("alt color")("Checkbox").value==1) [1,0,0,1] else [0,0,1,1]; With a bigger color rang...
- December 16th, 2014, 3:57 pm
- Forum: Scripts Discussion
- Topic: Setting the active, working composition
- Replies: 8
- Views: 22173
Re: Setting the active, working composition
OK... writing the previous post i got to an "idea"... try things and read error contents, like: comp.saveFrameToPng("Roger !"); // error : argument length should be 2 comp.saveFrameToPng("Roger", "that !"); // error : argument 1 is not a number, comp.saveFrame...
- December 16th, 2014, 3:51 pm
- Forum: Scripts Discussion
- Topic: Setting the active, working composition
- Replies: 8
- Views: 22173
Re: Setting the active, working composition
Nab, i just came across this thread and i'm puzzled. How could you know the arguments of "saveFrameToPng" if it is not "documented" in the guide. In ESTK data browser, its arguments are not showed. And scouting the comp.reflect object gives nothing (those ReflectionInfo objects a...
- December 11th, 2014, 2:45 am
- Forum: Scripts Discussion
- Topic: selectedProperties on Effects
- Replies: 4
- Views: 13636
Re: selectedProperties on Effects
Hi, yes adding a slider to the layer's effects will invalidate any existing reference to properties inside "effect" (but not to anything else), plus it destroyes the layer's selectedProperties state. It's a pain actually. You have to save some data to be able to recover those selected prop...
- December 10th, 2014, 1:40 am
- Forum: Scripts Discussion
- Topic: selectedProperties on Effects
- Replies: 4
- Views: 13636
Re: selectedProperties on Effects
There are two things: (1) selecting properties most of the time also selects their renamable parents. (2) After Effects always sorts the array comp.selectedProperties (and also layer.selectedProperties) and the order is (apparently) the lexicographic order on propertyIndex. So if you select one prop...
- November 27th, 2014, 11:34 am
- Forum: Scripts Discussion
- Topic: Assign espression to selected property after adding effect
- Replies: 2
- Views: 9072
Re: Assign espression to selected property after adding effe
Hi. If selectedProperty is not inside "Effects" there is no reason why it should be invalidated by adding a new effect. But if it is inside effect, it will invalidated and then you don't have much other choice that saving info to find it back. propertyIndex is probably the best choice for ...
- November 13th, 2014, 12:37 pm
- Forum: Scripts Discussion
- Topic: Are custom effects still not scriptable (CS6+) ?
- Replies: 3
- Views: 11137
Re: Are custom effects still not scriptable (CS6+) ?
Ah thank you. I forgot about the MenuCommands.
- November 13th, 2014, 4:08 am
- Forum: Scripts Discussion
- Topic: Are custom effects still not scriptable (CS6+) ?
- Replies: 3
- Views: 11137
Re: Are custom effects still not scriptable (CS6+) ?
For CUSTOM_VALUE (eg curves) AND NO_VALUE (eg gradient), it is not even possible to read the value (there is no object designed to wrap the value data).
By the way, how would you save a preset by script, even if there is no such type of value involved ?
By the way, how would you save a preset by script, even if there is no such type of value involved ?
- November 4th, 2014, 10:46 pm
- Forum: Scripts Discussion
- Topic: Create a custom Control effect
- Replies: 35
- Views: 98897
Re: Create a custom Control effect
I see.
Thank you again.
Thank you again.
- October 29th, 2014, 11:33 pm
- Forum: Scripts Discussion
- Topic: Create a custom Control effect
- Replies: 35
- Views: 98897
Re: Create a custom Control effect
Wow thank you nab. I wasn't expecting an answer anymore for this one. It works.
How did you find it by the way ?
How did you find it by the way ?
- October 10th, 2014, 12:32 am
- Forum: Expression Discussion
- Topic: cash multipler
- Replies: 3
- Views: 15181
Re: cash multipler
Avoid multiplying a number with a string. If you have the possibility, put x and y on separate sliders, and in your text put an expression that formats x*y into what you want, for instance x=thisLayer.effect("x").slider; y=thisLayer.effect("y").slider; "$" + (x*y).toFix...
- September 25th, 2014, 2:21 am
- Forum: Scripts Discussion
- Topic: Simple Motion Detection in AE
- Replies: 2
- Views: 10681
Re: Simple Motion Detection in AE
After Effects scripting has no access to pixel color in layers. Expressions have though : layer.sampleImage() (see this post for instance : http://blogs.adobe.com/aftereffects/2009/07/color-sampler-using-sampleimag.html ). So your script should add a color control to the layer, then in a loop over p...
- September 17th, 2014, 2:44 pm
- Forum: Scripts Discussion
- Topic: DropDownList update
- Replies: 2
- Views: 8949
Re: DropDownList update
you can specify items as an array upon creation, but after you can only add them one by one. remove all items from the list: maListe.removeAll(); remove item k from the list: maListe.remove(maListe.items[k]); add one item to the list at index k maListe.add("item", "xxx", k) // if...
- July 7th, 2014, 5:33 am
- Forum: Scripts Discussion
- Topic: Migrating my own scripts from cs6 to cc does not work.....
- Replies: 3
- Views: 9989
Re: Migrating my own scripts from cs6 to cc does not work...
The above bit of code is surely not the reason why your script doesnt work, it's just strange (but cute!). The thing is that your code is hard to read overall and it is consequently hard to help. What is not working ? Do you have errors or nothing happens ? Try to put some breakpoints (or alerts) al...
- July 4th, 2014, 7:33 am
- Forum: Scripts Discussion
- Topic: Migrating my own scripts from cs6 to cc does not work.....
- Replies: 3
- Views: 9989
Re: Migrating my own scripts from cs6 to cc does not work...
Is that french style ?//Vérifier si le calque est en 3D ou pas
var isTroisD;
if(app.project.activeItem.selectedLayers[0].threeDLayer){
isTroisD="true";
}
else{
isTroisD="false";
}
if (isTroisD == "true"){}