-
Light falloff and parented objects
decay = .005; noFalloff = 200; L = thisComp.layer("Light 1"); d = length(L.transform.position,transform.position); if (d < noFalloff){ value; }else{ value/Math.exp((d - noFalloff)*decay); }This may have been answered before, but my best googling and searching revealed nothing, so I thought I'd ask here. I've been using Dan Ebbert's light falloff expression, but the object I'm lighting is a series of clips rotating around the origin of the 3D space. I've got all the clips parented to a null object that rotates, thus creating the rotation around the fixed point. Anyway, the expression I have is based on the objects location info, but since all the objects are parented to the null, the info doesn't update and thusly neither does the lighting. Has anyone got any suggestions or workarounds for this problem?