Fabio Apelbaum
Forum Replies Created
-
Fabio Apelbaum
May 20, 2016 at 9:50 pm in reply to: Exporting position, scale and rotation of 1 object inside several precompsThank you Dan, it was excelent, just finished reading and it has been very useful,
Let me ask you a question, as I mentioned yesterday, Im trying to use a spreadsheet to change text layers, for that reason, I am trying to access the namespaces such as Replace with this text and replace my text layer with whatever is written in this namespace. Is there an easy way to access all of these?
Please find some of the code I have so far, I included the xml inside my code just to test it, later I will write my script to gather the XML info from an XML Excel file.
-
Fabio Apelbaum
May 19, 2016 at 3:07 pm in reply to: Exporting position, scale and rotation of 1 object inside several precompsHi Dan! hope you are doing great.
Im too, trying to understand how to export/import data to XML. I am trying to create a simple script that will grab text from XML and insert it into text layers inside my comps. I know there are scripts already that does this, such as Text2Spreadsheet, but I thought I would learn much more if I taking this challenge on my own.
As always, Im very thankful for any information that can help me moving forward.
Fabio
-
Xavier, as always thank you so much for the reply!
let me ask you,
parentFolder.path is giving me an error (undefined is not an object). Now, when I do .file.parent.path in the other hand, it is giving me the file path to the parent folder. Is it the same thing?
Thanks
Fabio
-
Xavier! thank you so much, it works great!
Let me ask you a question to better understand whats going on,
when I read:
var dds = [ddA, ddB, ddC, ddD];
for (var i=0; i<4; i++) dds[i].onChange = onDDChange;why is that onDDChange not using parentheses? onDDChange() if it is related to the function?
Thanks again!!
Fabio
-
As always Dan! you are the man!
-
Fabio Apelbaum
May 11, 2015 at 5:09 pm in reply to: multiple text layers to form one. how can I center it as a whole?wow! thanks a lot! that worked great! let me ask you for a recommendation! As you can see in the image I attached in the original post, I have a dropdown for the day and a dropdown for the time. The time is very tricky because it has different font sizes in it when referring to the “30” and the “et”, so instead of making only one text layer to change the information dynamically, what I had to do was to create all instances from 12am to 12pm… ej: 1a, 130a, 2a, 230a, etc… when the time is selected from the dropdown, it hides all time layers and then makes visible only the one selected… that worked fine until now. Now, that I want to use the sourceRectAtTime() to center the layers automatically… I am not sure what to do… because right now to try what you suggested I applied the sourceRectAtTime() to only one of the layers… how could I measure the length of the active “visible” layer only?.
what I have right now is:
x=thisComp.layer(“1230a”).sourceRectAtTime().width;
y=thisComp.layer(“1230a”).sourceRectAtTime().height;
[x,y];Which only gives me the Boundaries for “1230a”… but if I want the whole thing to be centered when 1p with different width is selected?
Thanks!!
Fabio
-
Fabio Apelbaum
April 22, 2015 at 6:40 pm in reply to: [extendScript] Select a project item without using its index ?sounds like an awesome approach. I believe it will all have to start with a for loop that reads all the files in the project, right?.. could you please tell me how should I write it, any tips will be highly appreciated, Im still learning on the go.
-
Fabio Apelbaum
April 22, 2015 at 6:20 pm in reply to: [extendScript] Select a project item without using its index ?Hi Walter, I saw your response to this thread, pretty cool. Now, let me ask you…. I do have a collection of items required to run my script.
I have in my script an if/else that stays if the file name of the current project is equals to the file name required to open, then, dont open it again and move on. But where I am having problems is that sometimes the producers imports the actual project into a new project with a different file name… so I dont know how to tell the script that if it finds element “x”within the project collection…. is because the original project has been imported… so do not open the project again and just move on with the rest of the script….
any ideas?
thanks!
-
Fabio Apelbaum
April 9, 2015 at 10:46 pm in reply to: change the X position of null layer incrementally every time user press a left or right buttonWow!!! works like a charm! thank you so much! Dan, let me ask you if you dont mind. I would never guessed to put a 1 for y and a 2 for z. How can I learn more about those details? I couldnt find it in the scripting guide from Adobe.
Thanks so much for all! owe you big time!
-
Fabio Apelbaum
April 9, 2015 at 6:23 pm in reply to: change the X position of null layer incrementally every time user press a left or right buttonThank you Dan! Yes, it is on a script I have been creating in ExtendScript. To that specific part this is what I have written so far… Im not really sure how to tell the null to add/substract and save the new value.
Tried looking in the Scripting guide but couldnt find it. Can you please lead me in the right direction?
Thank you again!
Fabio
var proj = app.project;
var selectAP = proj.item(7);
var layerPosition= selectAP.layer('Text_Position');
var textPosition = layerPosition.property("Position");
var cbList = new Array();//GROUP 2 PANEL
var groupTwo = myWin.add("panel", undefined, "Please, select the time and day:");
groupTwo.orientation = "row";// ARROWS ON UI
var leftArrow = groupTwo.add("iconbutton", undefined, "/Applications/Adobe After Effects CC 2014/Scripts/RedSox_Script/Images/left.png","LeftArrow");
var rightArrow = groupTwo.add("iconbutton", undefined, "/Applications/Adobe After Effects CC 2014/Scripts/RedSox_Script/Images/right.png","RightArrow");//LEFT ARROW TO CHANGE DAY/TIME TO CENTER
leftArrow.onClick = function(){
layerPosition.property("Transform").property("Position").setValue([0,0,0]);
};
//RIGHT ARROW TO CHANGE DAY/TIME TO CENTER
rightArrow.onClick = function(){
layerPosition.property("Transform").property("Position").setValue([0,0,0]);
};
