Xavier Gomez: Activity About Liked Popular Images
Xavier Gomez

Member Since:
October 12th 2011
328 Posts
100 posts
app.executeCommand() for 100% Zoom
by Ilya Sire 6 days ago
Hi forum, What is the code app.executeCommand() for 100% zoom, or key " ". Anyone can help Thank you
Re: app.executeCommand() for 100% Zoom
by Xavier Gomez 5 days ago
You can do it without a menu command, using the viewer object: if (app.activeViewer) app.activeViewer.views 0 .options.zoom = 1.0; (it can't be used to "Fit up to 100%" though, only absolute values).
Scripting: Retrieving Label Color from Preferences
by Jay Brown 3 weeks ago
I've been trying to figure this out the last couple of days and just can't get by it. I'm trying to get the assigned preference Label Colors from the preference text file: "Adobe After Effects 14.2 Pr
Re: Scripting: Retrieving Label Color from Preferences
by Xavier Gomez 1 week ago
The code failed to be written correctly, and i can't edit, so once again: function prefCodeToHexCode(str){ return str.replace( "( ^" +)" g, function(u, code){ var result = ""; for (var i=0; i
In theory, how many times will this code run
by Jakob Wagner 2 months ago
Hi OK. A crazy Friday experiment. Basically I'm trying to optimise the way I execute expressions. It doesn't really matter what the code does, this is about the structure of it. I have a text layer. I
Re: In theory, how many times will this code run
by Xavier Gomez 2 months ago
What is sure is that the string is build at least once for the text layer, and is evaluated three different times, once per shape layer. Now, is the string rebuilt everytime it is required by one of t
app.executeCommand Question
by James Ronan 3 months ago
Hey All! I'm trying to use the app.executeCommand(); function to a specific layer in my array. The problem I'm having is that it is executing the command across all layers, and I only want it for 2nd
Re: app.executeCommand Question
by Xavier Gomez 3 months ago
You'll probably have to store the layer selection, deselect all layers except the one you want, use the command, and eventually reselect. Xavier
Script onDraw Button 'mouseup' not triggered
by Clifford Li 3 months ago
Did anyone try to onDraw a icon button, and that 'mouseup' event not been trigger In my case, I don't want any border added on my button, so I am trying to use onDraw function. here's my script: b.onD
Re: Script onDraw Button 'mouseup' not triggered
by Xavier Gomez 3 months ago
You can use a ui element of type 'customView' (the constructor name is : Custom) myBtn = myContainer.add("customView"); or, within a resource string: res = "group{...,\ myBtn : Custom{type: 'cust
item arrange script
by Rainier Raydán 3 months ago
Hi! I'm trying to write a script that rearrange my items but I cant get it work... I have this: app.beginUndoGroup("undo"); var proj = app.project; function findPrecompFolder(){ for(var i=1;i
Re: item arrange script
by Xavier Gomez 3 months ago
It's a bit strange that the findPrecomps function calls moveToFolder(). One would expect that the findPrecomps function returns an array of precomps (your function returns nothing), and that the moveT
Advanced Time Expresion
by Augusto Keltika Junior 3 months ago
Hi there, I'm creating a countdown at 25fps and I'd like it to spin 360 with ease on Y axis every 19 frames, how would I go with that I tried clamp, math.sin and other time expressions on the forum bu
Re: Advanced Time Expresion
by Xavier Gomez 3 months ago
This should work: t0 = inPoint; period = 19; frames spinDur = 4; frames phase = 2; frames t = timeToFrames(time-t0)-phase; n = Math.floor(t period); t%=period; if (t<0) t+= period; n*360 + ease(t,
toWorld.valueAtTime
by ben rollason 8 years ago
Is there a workaround to get a toWorld.valueAtTime or toWorldVec.valueAtTime Expressions don't understand the above syntax.... but I'm thinking a workaround's going to be quite a long winded process o
Re: toWorld.valueAtTime
by Dan Ebberts 8 years ago
The layer space transforms all take time as an optional second parameter: toWorld(point,time) Dan
+3
Xavier Gomez liked this 9 months ago
Finding the edges of text and shape layers just got a lot easier
by Dan Ebberts 3 years ago
With the latest AE release (CC 2014.2) expressions now have a long-awaited feature that allows them to find the edges of text and shape layers without having to do the sampleImage() hack. It's sourceR
+3
Xavier Gomez liked this 2 years ago
Re: Finding the edges of text and shape layers just got a lot easier
by Tiago Cav 2 years ago
Thank you, Dan!
Remove all keyframes by script
by Xavier Gomez 4 years ago
Hello, is there a way to remove all keyframes on a given property other than using the removeKey() method I'm thinking about the timeVary stopwatch : from off to on it adds a keyframe (same as addKey(
Re: Remove all keyframes by script
by Mitch Mann 4 years ago
Maybe have the script select all keys on the property, then delete. You could call delete as a menu command. Then you wouldn't have to loop.
+1
Xavier Gomez liked this 4 years ago
easeIn/easeOut expression question.
by Darryl Torke 4 years ago
Is there anyway to speed up or slow down the amont of 'easing' in the 'easeIn' expressions I'd like to really increase the amount of easing. Almost a stall at the beginning.
Re: easeIn/easeOut expression question.
by Xavier Gomez 4 years ago
If what you are after is expressions and not graph editor, there is this script:http: aescripts.com ease-and-wizz . It has a good collection of ease functions other than the AE default ones. But i'm n
script loading a function from text file
by Xavier Gomez 5 years ago
Hello, i've got some small problem while writing a (UI)script. The user should be able to write a js function in the AE interface (whatever way, at the moment i'm using the expression box...) The scri
+1
Xavier Gomez liked this 4 years ago
Re: script loading a function from text file
by Dan Ebberts 5 years ago
My hunch is that you have to do the close() before you do the $.evalFile(). Dan
+1
Xavier Gomez liked this 4 years ago
Scripting: Add loopOut() Expression to a selectedLayer with a script?
by Brandon Smith 5 years ago
I am beginning to learn scripting, so I am starting off with some simple shortcut scripts. One that I am having a hard time trying to make is a script that will apply the loopOut() expression to the P
Re: Scripting: Add loopOut() Expression to a selectedLayer with a script?
by Xavier Gomez 5 years ago
Assuming that : 1- your script has already identified the layer (let's call it theLayer), 2- your script has a string variable (called say expr) that contains the expression text, you can go on like t
Sine wave on effect parameter?
by Patrick Murphy 5 years ago
Hi there, On a tight deadline and looking to put an expression on an effect parameter (specifically the turbulent displacement's evolution). I'm looking to have numbers bounce back and forth from 360
Re: Sine wave on effect parameter?
by Xavier Gomez 5 years ago
amplitude = 360; period = 2; refTime = inPoint; amplitude * Math.sin(2*Math.PI*(time-refTime) period); amplitude is the amplitude of oscillations, period is the duration of a cycle (in seconds), refT
Transform a 3D motion path
by Xavier Gomez 5 years ago
Hello, there are few old posts on that topic but i'd like to check for new advices. By transform a motion path i mean translate scale rotate, not arbitrary transformation. Basically a 3D-layer already
Re: Transform a 3D motion path
by Xavier Gomez 5 years ago
hmm, answer much appreciated!!! Glad that i asked. I was feeling uncomfortable with those axis manipulations so i'd almost never use them...(!) Thank you, Xavier (beside this, i still have the feeling
View Options, motion paths
by Brian Nishii 7 years ago
Does anybody know how to lock a view of a motion path while they work on other layers I have a moving camera following a null moving in Z space. I'd like to be able to see the motion path of the movin
Re: View Options, motion paths
by Xavier Gomez 5 years ago
That would be super helpful, and very easy to implement (a small icon to click to enable motion path view even when the layer is deselected).
Strange error - SetOutputWorld called with a world of the wrong size
by Michael Garske 5 years ago
There are a couple of posts about this error but no information on what it means. Has anyone ever encountered this or know how to get rid of it Strange thing is it only happens occasionally most of th
Re: Strange error - SetOutputWorld called with a world of the wrong size
by Xavier Gomez 5 years ago
Looks like a plugin error, i bet you don't encounter this with only buildt-in AE tools. Maybe you have a parameter set that the plugin developer hasnt thought of. Just trying to help :)
CPU usage in a script process
by Xavier Gomez 5 years ago
When i run a .jsx script in AE my CPUs are very much underused (only 2 out of 8, and not even at full load) and i'm wondering if that's a normal feature. It really feels like a big waste, only 12% cpu
Load expression into script from a file
by Nick Leigh 7 years ago
Is there a way I can load an expression into a script from a file The reason I ask is because I have an expression that is about 150 lines of code and if I ever needed to make changes to it would be a
Re: Load expression into script from a file
by Nick Leigh 7 years ago
Dan, Yes that worked for me know as it is now putting the file contents in the sourceText but now my script ends as soon as that happens. It's almost like it has a return or exit. It works perfect up
+1
Xavier Gomez liked this 6 years ago
CC Cylinder and Camera
by Xavier Gomez 6 years ago
Hello, I'm having problems using CC Cylinder with a Camera. I know it's been an issue: http: forums.adobe.com thread 397649 but i'd like to know if this has been corrected in newer versions (I'm using
+1
Xavier Gomez liked this 6 years ago
Re: CC Cylinder and Camera
by Xavier Gomez 6 years ago
Thank you for the idea, i've looked through the net, freeform looks really nice, but for CS3 it is a third-party pluggin which i dont have,... I'll find my way. Thank you.
Bouncing movement
by Esteban Duperly 10 years ago
Hi! I've been trying to create a bouncing movement in AE. I tryed with a script I found in a folder named "bouncingBallSimulation", run it from inside of AE but didn't work. I need to animate a seed
Re: Bouncing movement
by Dan Ebberts 6 years ago
true is just the JavaScript boolean literal constant. So while(true) says "execute this loop forever". Encountering the break statement says "I was just kidding about the forever business, stop execut
+1
Xavier Gomez liked this 6 years ago
© 2017 CreativeCOW.net All Rights Reserved
[TOP]