Search found 3 matches

by chris dC
July 25th, 2007, 3:02 pm
Forum: Expression Discussion
Topic: distance from camera expression issues...
Replies: 9
Views: 23682

in the original expression (the one using toWorld) the effect was inversed against the scale of the object. as in if i increased the scale (grow) of the object it would cause the same effect if i had moved the object further back in z-space away from the camera. if i decreased the scale (shrink) the...
by chris dC
July 25th, 2007, 1:52 pm
Forum: Expression Discussion
Topic: distance from camera expression issues...
Replies: 9
Views: 23682

Okay, it looks like it's working. wow. thank you. here's the code Q=thisComp.layer("atmopheric master control"); startFade = Q.effect("Start Close Up")("Slider"); endFade = Q.effect("End Close Up")("Slider"); d = Math.abs(thisComp.activeCamera.toWorl...
by chris dC
July 25th, 2007, 12:17 pm
Forum: Expression Discussion
Topic: distance from camera expression issues...
Replies: 9
Views: 23682

distance from camera expression issues...

i posted this originaly on creative cow. i'm trying to measure z space distance between the camera and an object layer, converting that distance into a percentage, then applying that percentage to an effect. first method i used was toWorld and linear; C = thisComp.activeCamera.toWorld([0,0,0]); // C...