Article View: adobe.after.effects.scripting.render
Article #40Re: Opacity linking to camera location
From: spdorsey
Date: Sun, 11 Jan 2009 20:35
Date: Sun, 11 Jan 2009 20:35
14 lines
1054 bytes
1054 bytes
I figured it out!
There's hope for me yet!
I have to make sure that x y and z values for my null are computed separately by right-clicking on the null's position attribute and selecting "separate dimensions".
maxDist = thisComp.layer("nullName").transform.xposition;
minDist = 0;
maxOpacity = 100;
minOpacity = 0;
C = thisComp.activeCamera;
d = length(C.toWorld([0,0,0]),toWorld(anchorPoint));
linear(d,minDist,maxDist,minOpacity,maxOpacity)
Technical Details
Message-ID:
<59b77c40.2@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newshub.sdsu.edu!webcrossingReferences:
<59b77c40.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: 1efebe,f9710d06a591eb68 X-Google-Attributes: gid1efebe,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: spdorsey@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.after.effects.scripting.render Subject: Re: Opacity linking to camera location Message-ID: <59b77c40.2@webcrossing.la2eafNXanI> Date: Sun, 11 Jan 2009 12:35:59 -0800 References: <59b77c40.-1@webcrossing.la2eafNXanI> Lines: 16 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit