Forum Replies Created

Page 991 of 1081
  • Mmmm…mathematicians’ daughters. Don’t tell my wife. 🙂

    Dan friggen Ebberts

  • Mmmm…mathematicians’ daughters. Don’t tell my wife. 🙂

    Dan friggen Ebberts

  • Hmmm… now that I think about it, this is probably better:

    if(comp(“Comp 2”).layer(“Layer 3”).enabled) 90 else 100

    Dan

  • Hmmm… now that I think about it, this is probably better:

    if(comp(“Comp 2”).layer(“Layer 3”).enabled) 90 else 100

    Dan

  • This should work just fine:

    if(comp(“Comp 2”).layer(“Layer 3”).active) 90 else 100

    Dan

  • This should work just fine:

    if(comp(“Comp 2”).layer(“Layer 3”).active) 90 else 100

    Dan

  • Dan Ebberts

    December 14, 2006 at 4:28 pm in reply to: how to make names of footage show up over video?

    This expression (for a text layer’s source text) gives the name of the source of the current active layer (if it has no source it gives the layer name). Apply to a text layer at the top of the layer stack.

    txt = “”;
    for (j = 1; j <= thisComp.numLayers; j++){ if (j == index) continue; L = thisComp.layer(j); if (! (L.hasVideo && L.active)) continue; if (time >= L.inPoint && time < L.outPoint){ try{ txt = L.source.name; }catch(err1){ txt = L.name } break; } } txt Dan

  • Dan Ebberts

    December 14, 2006 at 4:28 pm in reply to: how to make names of footage show up over video?

    This expression (for a text layer’s source text) gives the name of the source of the current active layer (if it has no source it gives the layer name). Apply to a text layer at the top of the layer stack.

    txt = “”;
    for (j = 1; j <= thisComp.numLayers; j++){ if (j == index) continue; L = thisComp.layer(j); if (! (L.hasVideo && L.active)) continue; if (time >= L.inPoint && time < L.outPoint){ try{ txt = L.source.name; }catch(err1){ txt = L.name } break; } } txt Dan

  • Dan Ebberts

    December 14, 2006 at 12:53 am in reply to: Rubik’s Cube

    I think you could save yourself a lot of trouble if you set the cube up centered at [0,0,0] with the faces parallel to the xy,xz, and yz planes (you can position the camera off-axis later). Then you’re just dealing with equations for circular motion in two dimensions.So, in the xy plane you’d be dealing with something like:

    [Math.sin(angle)*radius, -Math.cos(angle)*radius, zOffset]

    where you supply the variables angle, radius, and zOffset. The other expressions would be similar.

    Dan

  • Dan Ebberts

    December 14, 2006 at 12:53 am in reply to: Rubik’s Cube

    I think you could save yourself a lot of trouble if you set the cube up centered at [0,0,0] with the faces parallel to the xy,xz, and yz planes (you can position the camera off-axis later). Then you’re just dealing with equations for circular motion in two dimensions.So, in the xy plane you’d be dealing with something like:

    [Math.sin(angle)*radius, -Math.cos(angle)*radius, zOffset]

    where you supply the variables angle, radius, and zOffset. The other expressions would be similar.

    Dan

Page 991 of 1081

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy