Dan Ebberts: Activity About Liked Popular Images
Dan Ebberts

COW Leader
Member Since:
May 22nd 2001
10397 Posts
100 posts500 posts1000 posts5000 posts10000 posts
Friends:

Adam levine

Alex Covella

Alex Sparrow

Andres Delgado

bart stevens

Daniel Futerman

Devashish Das

edy brown

Ernesto Sanchez

Fabio Apelbaum

ido shor

Ismael Millán

James Poulakos

James Zwadlo

Jason Jantzen

Jason Symson

Jay Andrew

Kalleheikki Kannisto

Karen Grigorean

Katryna Sleptzoff

Kevin C. Burke

Logan King

Luis Florez

matthew tully

Navarro Parker

Paul Roper

Philip Bowser

ronnie bink

Sean Dunn

Snorre Hjelseth

Tim Allen
check if property exists
by rami yaron 9 hours ago
Can I test if a layer property exists, to avoid exception raising The following code doesnt work, still raises an exception: if(typeOf(Layer.timeRemap)=='undefined')
Re: check if property exists
by Dan Ebberts 9 hours ago
First, I think it would be typeof, not typeOf, but I think you'd be better off with try catch: try{ Layer.timeRemap; }catch(e){ do something else } Dan
Decimal Numbers ( remove .0 )
by Nick Kennedy 16 hours ago
Is it possible for an expression to recognise when a number (provided by an expression slider) has a zero as decimal (i.e. 2.0) and then remove the decimal point and zero (i.e. 2 ) but keep them if th
Re: Decimal Numbers ( remove .0 )
by Dan Ebberts 13 hours ago
There are probably simpler ways, but this should work: n = effect("Slider Control")("Slider").value.toFixed(1); n n.length-1 == "0" n.substr(0,n.length-2) : n Dan
Adding buttons to a UI panel from that UI panel stopped working in AE19 - works in 18
by Jeroen Rommelaars 19 hours ago
Hey guys, I have a little UI panel with several buttons. One of these buttons should check some layers, and possibly add a new button to the UI. This always worked perfect in AE18 and before, but stop
Re: Adding buttons to a UI panel from that UI panel stopped working in AE19 - works in 18
by Dan Ebberts 17 hours ago
Hard to say without seeing it in context, but when it halts on error, I think I'd try a few $.writeln() commands in the console to see what the undefined object is. My guess is it's myPanel. Then you
Adding 2 Presets to a Layer
by Vinay Parakala 1 day ago
I'm new to After Effects and I'm trying to write a script to have a piece of text animate in at 6 seconds and disappear at 10 seconds using a script. I have this: var proj = app.project; var activeIte
Re: Adding 2 Presets to a Layer
by Dan Ebberts 1 day ago
Try it this way: function select(theLayer){ var theComp = theLayer.containingComp; for (var i = 1; i <= theComp.numLayers; i++){ theComp.layer(i).selected = false; } theLayer.selected = true; } var
Script slower at each run
by Fabio Neves 2 days ago
Hello! I have a data exporter script, that reads all the info I need from my project and export that to an external JSON file. My project is quite big and every time I run my script it takes more time
Re: Script slower at each run
by Dan Ebberts 2 days ago
You could try throwing this in there at the start of your script: app.purge(PurgeTarget.ALL_CACHES); Dan
Pickwhipping animations between comps of different length
by Hiski Suomela 2 days ago
Hi! Is there a simple solution for creating linear expression between two comps of different length I have a null in a comp which is 40 seconds long ("liikunta-character-D1-001") and another null in a
Re: Pickwhipping animations between comps of different length
by Dan Ebberts 2 days ago
Try it this way: ctrlComp = comp("1 minute comp"); L = thisComp.layer(ctrlComp.name); CTRLnull = ctrlComp.layer("Null 2").transform.position; linear(CTRLnull.valueAtTime(time - L.startTime) 0 ,90,430,
Setting the In and Out points of a text layer to align with markers via a script
by Adam Walker 3 days ago
Hey all, I'm looking into automating subtitle placement using text layers and markers. My process is to RAM preview the video, and apply markers to a null layer as i play through the video at each poi
Re: Setting the In and Out points of a text layer to align with markers via a script
by Dan Ebberts 3 days ago
This is a very basic example, tailored to your screen shot. It needs additional error checking etc. (e.g. to make sure a comp is selected, there are enough markers, etc.) but it should give you the id
Move a layer up or down in index when zRotation exceeds or falls below certain value?
by Casey Labatt-Simon 4 days ago
Hi all! I have a mildly complicated question. I'm creating an animation with a whole bunch of different cubes, in an isometric perspective, all rotating and moving around. I'm attempting to use Essent
Re: Move a layer up or down in index when zRotation exceeds or falls below certain value?
by Dan Ebberts 3 days ago
There are quite a few things that can mess up the interaction of 3D layers. See if any of this applies to your situation: https: helpx.adobe.com after-effects using 3d-layers.html#3d_layer_interaction
Automatically scale text layer to accomodate the length of text
by David Newman 2 weeks ago
Hi all, I'm trying to scale a text layer automatically so that when I type text into it (or refer to it from an outside source), the text layer automatically scales so that it doesn't clip off the sid
Re: Automatically scale text layer to accomodate the length of text
by Dan Ebberts 3 days ago
Rather than messing with scale, I think you might be better off creating a box text layer like this: var maxW = myComp.width*0.9; var myTextLayer = myComp.layers.addBoxText( maxW,200 ,"some text"); Th
Animate object along animated path
by Robin Munshaw 2 weeks ago
Hi there, I've created a path that has vertices animated to follow an underlying map. The map is a slow zoom in on Google Earth looking at the ground at about 45 degrees, so each vertex of the path is
Re: Animate object along animated path
by Dan Ebberts 2 weeks ago
Assuming that you're using Trim Paths to set the end point of your path, an expression like this (for the position of your dot) should track an animated path: L = thisComp.layer("Shape Layer 1"); path
I Want To thank Dan Ebberts
by Julien Schickel 4 weeks ago
Hello everybody, I don't know If it is ok to post this on the forum, but I made this animation of the solar system: https: www.youtube.com watch v=UzbnPX8Stnc and I never would have been able if it wa
Re: I Want To thank Dan Ebberts
by Dan Ebberts 4 weeks ago
I just wanted to say thank you so much for the kind words, and what a nice piece of work you have created! Dan
Using the layer name within an expression
by Paul Connors 1 month ago
Hello. I'm testing some data-driven expressions using a .csv file as my source. I have some expressions in my comp that reference that data, but I'm trying to incorporate the layer name into the expre
Re: Using the layer name within an expression
by Dan Ebberts 1 month ago
For one thing, you let some curly quotes sneak into the end of the first and second lines... Dan
Scale expression
by chris holland 1 month ago
Hi, I need to create a map using dots, I want the dots to scale from 0-100 randomly over the space of 3 seconds to reveal build the map. I came across a post on here where someone had the exact same p
Re: Scale expression
by Dan Ebberts 1 month ago
Try this: maxTime = 3; max time for all dots to appear rampTime = .1; seedRandom(index,true); myTime = random(maxTime-rampTime); s = linear(time,myTime,myTime+rampTime,0,100); s,s Dan
toComp puppet pin to 2Dnull irrespective of puppeted comp size
by alex ezorsky 2 months ago
I'm trying to experiment with putting a pattern on someone's face and I've got tracking data for all the face points we need in the form of position animated nulls. I have the pattern comp with puppet
Re: toComp puppet pin to 2Dnull irrespective of puppeted comp size
by Dan Ebberts 1 month ago
The layer space transforms are all about getting points from layer space to comp space (toComp) and from comp space to layer space (fromComp). The first part of the expression needs to get the null's
Stopping the wiggle expression after a few second.
by Ruo Zheng 5 months ago
Hey everyone, I just starting learning about expressions and currently, I'm trying to make a flicker-in effect for this logo. I have wiggle(100,100) in the Opacity property of the logo but I'm trying
Re: Stopping the wiggle expression after a few second.
by Dan Ebberts 5 months ago
This should work: time < 5 wiggle(100,100) : value Dan
Toggle Hold value between keyframes?
by Ronan De Lacy 7 months ago
Hello all, I have a text layer, that's set up to pull data from a text file. I'm taking values from sliders on separate layers to each keyframe on the timeline. Everything is working, however, the val
+1
Dan Ebberts liked this 7 months ago
Re: Toggle Hold value between keyframes?
by Ronan De Lacy 7 months ago
Thanks so much, Dan. You're a life saver!!
How to start time expression at layer InPoint
by sergei opanasuk 9 months ago
Hello, I have typewriter effect animation driven by simple expression time*25 How can I start the expression at layers inPoint Please help. Thank you very much!!!! sergei
Re: How to start time expression at layer InPoint
by Dan Ebberts 9 months ago
I'd start with this: 100 - (time-inPoint)*25 Dan
Layers skew when rotating
by Ryan Stone 10 years ago
Hey everyone, This is one of those stupid simple questions. I must have pressed a wrong key somewhere and it's activated 'something'. When I rotate a layer it skews and extends horribley, until it rea
Re: Layers skew when rotating
by Dan Ebberts 2 years ago
I'm not aware of a workaround, but would love to hear about it if someone else knows of one. Dan
test
by Dan Ebberts 2 years ago
<
ido shor 3 years ago
Hey dan, I posted a Q on the expression forum, will be great if you'll find the time to answer.

tnxx
Ismael Millán 4 years ago
Circular motion y axis

When i put the rate to 0, the motion is backward, any help? (sorri my english)
The position expression:
radius=effect("Radio")("Slider");
rate=effect("Frecuencia")("Slider");
offset=effect("Offset")("Slider");
angle=time*rate+offset;
x=radius*Math.cos(degreesToRadians(angle));
y=transform.position[1];
z=radius*Math.sin(degreesToRadians(angle));
centre=thisComp.layer("Null 1").transform.position;
add(centre,[x,y,z])
Dan Ebberts 4 years ago
Controlling speed is tricky business. This might help: http: www.motionscript.com articles speed-control.html Dan
Fabio Apelbaum 4 years ago
Hi Dan! hope your day is going well!

Let me ask you a question.. I saw a UI script someone created that when the mouse is over a button, a small description comes at the bottom of the script that looks like statictext but changes when the mouse goes over other buttons.

because the file is encrypted I was not able to open and learn how its done, would you happen to know?

I been playing all morning trying using the event listener and handler, but not sure if thats how its done. and how can you tell the handler to change whichever info in the statictext.

Thank you for your time!!

Take care,

Fabio
Fabio Apelbaum 5 years ago
Hi Dan, could you plese lend me a hand? I was able to write this script and works perfect as long as a project was open in after effects before running the script. But I noticed that if I just opened AE and run the script, it gives me an error at: line3: var projName = proj.file.name.replace(/%20/g, " ");

I understand that the error is happening because it can not find an open file name when AE just opened... but how can I avoid this error?

var my_file = new File("/Volumes/XSANESN/CreativeServices/Projects/ON_AIR_PROMOS/RED_SOX/15_RED_SOX/15_RED\ SOX\ TUNE\ INS/Graphics/RS_Tune_In_Toolkit/RS_Tune_In_Toolkit.aep");
var proj=app.project;
var projName = proj.file.name.replace(/%20/g, " ");



if (projName == null){
new_project = app.open(my_file);
}
else {

if (projName == my_file.name){
alert(projName + " IS ALREADY OPEN");
}
else{
if (my_file.exists){
new_project = app.open(my_file);
}
else {
new_project2 = app.open();
}
}
}
if (new_project){
alert(projName + " IS NOW OPEN, ENJOY");
}


Application




Thanks a lot!
Fabio Apelbaum 5 years ago
Sorry, sent you the wrong version... this is it: var my_file = new File(" Volumes XSANESN CreativeServices Projects ON_AIR_PROMOS RED_SOX 15_RED_SOX 15_RED\ SOX\ TUNE\ INS Graphics RS_T [more]
Dan Ebberts 5 years ago
Before doing anything with the project file, you can test if it exists: if (app.project.file == null){ Does that help Dan
Fabio Apelbaum 5 years ago
Thanks Dan! That worked! to much to learn but I am doing better!. Now, let me ask you.... I do have a collection of items required to run the script I am working on, so far with your help I am now abl [more]
Dan Ebberts 5 years ago
I would guess it would be like this: var myItem = null; for (var i = 1; i <= app.project.numItems; i++){ if ((app.project.item(i) instanceof FolderItem) && (app.project.item(i).name == "x"){ myItem [more]
Fabio Apelbaum 5 years ago
Thanks Dan!!! last question! Just noticed that each computer is trying to connect to the file through different paths, call it an ingeniering problem in our workplace... never the less some computers [more]
Dan Ebberts 5 years ago
I guess you try each path (maybe inside a try catch to trap any errors) and then use .exists to see if the file is there. Something like that. Dan
Fabio Apelbaum 5 years ago
Hi Dan, hope this message finds you well!! As always! thank you for all your help. I run into an new issue, I tried my best to make it easy to understand, could you please take a look?

https://forums.creativecow.net/thread/227/29570

Thanks a lot!

Fabio
Fabio Apelbaum 5 years ago
Hi Dan! First of all Im so please to meet you. You are an inspiration to everyone, certainly to me. I been following your responses to everyone and trying to learn as much as I can about scripting. I have to say I truly fall in love with it. Still a newbie with so much to learn.

In the meantime, if its not to much to ask, I would love if you can take a look to my latest question... I havent been able to find an answer on my own.

this is the post: https://forums.creativecow.net/thread/227/29492

Thank you in advance!

Fabio
Logan King 5 years ago
Hi Dan,
Wanted to message you here instead of creating a separate forum post.

I am creating a 2.5 D parallax scene controlled through a null object. Thanks to you now I am able to use that expression code you helped me understand for this project.
I would like to ask a separate question, its again pretty simple and could be very noobish.

Problem :
When I space out 3 or more layers in the Z axis (depth) the layer that is farthest from the camera appears to be slightly faded than the ones close to the camera.
I m sure this is a simple FOV / Depth issue which can be corrected, can you advice me what to do here ?
Alex Sparrow 5 years ago
Hello! A week ago, I created a theme which has placed a piece of me translated site. http://www.motionscript.com - your website. May I ask your opinion on account of publication?
Alex Sparrow 5 years ago
theme - http: forums.creativecow.net readpost 227 27572
Dan Ebberts 5 years ago
Hi Alex, That's nice work. However I'd really rather not have my content showing up on other web sites. Thanks. Dan
Alex Sparrow 5 years ago
Ok. Thank you. But I can give you translated materials
Dan Ebberts 5 years ago
That's a generous offer, but I don't know what I would do with it. I would have no way to maintain it and it would be strange to have only one translated version on my site.
Alex Sparrow 5 years ago
Thanks again. I just save this material.
have I been a bad boy ?
by Bob Zelin 7 years ago
My last two posts (without hysteria) are being "moderated". Did I do something wrong Bob Zelin
Re: have I been a bad boy ?
by Dan Ebberts 7 years ago
Well that probably explains why I'm also not getting notification of new threads any more. So the comcast server must think you guys are spammers. I don't know what to do about that. Dan
test
by Dan Ebberts 12 years ago

© 2019 CreativeCOW.net All Rights Reserved
[TOP]