Forum Replies Created
-
Even if I type [45,25] nothing happen with the width…
-
Thanks! but I cant set the width… I have this
myGroup: Group{orientation:'row', alignment:['fill', 'fill'], alignChildren:['fill', 'fill'],\
myButton: Button{text:'Run', preferredSize: [10,25]},\
},\It’s becouse the “alignChildren” ? I want the buttom to be 45 width and 25 height.
-
Rainier Raydán
December 18, 2017 at 1:46 pm in reply to: solidFill/opacity numKeys problem SCRIPTINGno… it’s not 🙁
-
Rainier Raydán
December 15, 2017 at 2:01 pm in reply to: setup composition height and width via expressionJust download the .jsxbin file.
Also you can download the zip file here:
https://drive.google.com/open?id=1unO24GcuYT_zIkwGADcyGUzQCVN3PGTL
Bye!
-
Rainier Raydán
December 14, 2017 at 8:55 pm in reply to: setup composition height and width via expressionYou can download the file here
https://drive.google.com/open?id=18nkpVfR8P5DDzVYLn_2SYKiWPIaPRDJX
just put this file in the C:\Program Files\Adobe\YOUR VERSION OF AE\Support Files\Scripts\ScriptUI Panels
then you can dock it
-
Rainier Raydán
December 13, 2017 at 7:06 pm in reply to: Atom text editor for after effects scriptingHi guys!
I’m also very interest on this… Atom is way better than ExtendScript but that run buttom… I hope someone finds the answer.
-
Rainier Raydán
December 13, 2017 at 6:54 pm in reply to: setup composition height and width via expressionHi Ron!
You can do that only with a Script. You can use mine
{
function myScript(thisObj) {
function myScript_buildUI(thisObj) {
var myPanel = (thisObj instanceof Panel) ? thisObj : new Window("palette", "compSettings RR V01", [0, 0, 300, 300]);res = "group{orientation:'row', alignment:['fill', 'fill'], alignChildren:['fill', 'fill'],\
mainGroup: Group{orientation:'column', alignment:['fill', 'fill'], alignChildren:['fill', 'fill'],\
sizeGroup: Panel{text:'Panel Name',orientation:'row', alignment:['fill', 'fill'], alignChildren:['fill', 'fill'],\
widthText: StaticText{text:'Width'},\
editWidth: EditText{text:'', characters: 4},\
heightText: StaticText{text:'Height'},\
editHeight: EditText{text:'', characters: 4},\
},\
},\
btnGroup: Group{orientation:'column', alignment:['top', 'top'], alignChildren:['fill', 'fill'],\
runBtn: Button{text:'Run'},\
},\
},\
}"// Adds resource string to panel
myPanel.grp = myPanel.add(res);// VARIABLES
var proj = app.project;
var curWidth = myPanel.grp.mainGroup.sizeGroup.editWidth;
var curHeight = myPanel.grp.mainGroup.sizeGroup.editHeight;var runButton = myPanel.grp.btnGroup.runBtn;
// Assign function to UI elements
runButton.onClick = function (){
var selectedArray = itemSelection();
if(!itemSelection()){
alert("Select at least one composition.");
}else{
app.beginUndoGroup("changeCompWH");
for(a=0;a0){
return itemAry;
}else{
return null;
}
}// Setup panel sizing and make panel resizable
myPanel.layout.layout(true);
myPanel.grp.minimumSize = myPanel.grp.size;
myPanel.layout.resize();
myPanel.onResizing = myPanel.onResize = function () {this.layout.resize();}return myPanel;
}// Build script panel
var myScriptPal = myScript_buildUI(thisObj);if ((myScriptPal != null) && (myScriptPal instanceof Window)) {
myScriptPal.center();
myScriptPal.show();
}
}// Execute script
myScript(this);
}Just put the dimension you want, select one or multiple comps and click the Run buttom.
If you want a slider (I do not recomend this) you can change the editText for a slider in the code.
P.D. : Copy the code into a notepad and save it with .jsx extension. Then open it with File/Scrips/Run Script File…
Bye!
-
Hi Sebastian!
Question 1:
You can make your selected shape the high in pixel that you want but only if is not a Path becouse the Path value collect itself as a object shape. May be you can get the high value of the shape layer with sourceRectAtTime().higth and then try to add or subtract the number of pixel left to get to 95px or the number of pixel you want in the Scale property in the Transform group. Remember that the Scale property store it’s value in percentage so you have to set it’s value by right click in the scale property + Edit Value…, change the unit in pixel an then add the number of pixel in the Y value.
In the others shape layers like rectangles and ellipses you have the Size property and you can change there the num of pixels you want in high if you want. But you can’t do that with the Polystars becouse there’s no size property there… so you have to do this like you did with the path.
-
Rainier Raydán
November 19, 2017 at 7:48 pm in reply to: Access to all the properties of a layer SCRIPTINGI’ve been thinking in a way to write , like you said, a property processing function but I havent find a way… can you help me with that?
Also, I’m having troubles with the hidden properties, in this case it’s only TimeRemap. I get an error that said the property is hidden and I cant call addKey() function… You know a way to prevent this to happeng?
Thanks a lot
-
Rainier Raydán
November 15, 2017 at 9:03 pm in reply to: Access to all the properties of a layer SCRIPTINGYep, I see that… ussually I do a lot of for loops diving in the diferents levels of properties. Do you know how many for loops do I need to do to make it all the way down?
Thanks!