TIPS CG

2/13/17

AFTER EFFECTS // text layer display name of current visible layer

http://www.motionscript.com/design-guide/source-name.html

txt = "";
for (i = 1; i <= thisComp.numLayers; i++){
  if (i == index) continue;
  L = thisComp.layer(i);
  if (! (L.hasVideo && L.active)) continue;
  try{
    txt = L.source.name;
  }catch(err){
    txt = L.name
  }
  break;
}

No comments: Libellés : after effects
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)
some cg related tips about maya, nuke, v-ray, scripting ...
  • LINKS

Labels

  • after effects (10)
  • alpha (1)
  • avid (2)
  • camera mapping (2)
  • chrome (1)
  • divers (1)
  • effect (1)
  • exr (2)
  • houdini (1)
  • jiggle (1)
  • light (1)
  • linear workflow (1)
  • links (1)
  • maya (46)
  • mel (6)
  • motion path (2)
  • multiple shape (1)
  • nhair (1)
  • nuke (14)
  • particle (3)
  • python (6)
  • rendering (1)
  • rigging (8)
  • script (1)
  • SOup (1)
  • unpremult (2)
  • vray (11)
  • warp (1)
  • windows (1)

Archive

  • ►  2020 (2)
    • ►  May (2)
  • ►  2019 (7)
    • ►  Aug (2)
    • ►  Apr (4)
    • ►  Mar (1)
  • ►  2018 (4)
    • ►  Apr (1)
    • ►  Mar (2)
    • ►  Feb (1)
  • ▼  2017 (11)
    • ►  Sep (1)
    • ►  Aug (1)
    • ►  Jul (4)
    • ►  Jun (1)
    • ►  May (1)
    • ►  Apr (2)
    • ▼  Feb (1)
      • AFTER EFFECTS // text layer display name of curren...
  • ►  2016 (15)
    • ►  Nov (1)
    • ►  Oct (1)
    • ►  Jul (1)
    • ►  May (3)
    • ►  Mar (2)
    • ►  Feb (1)
    • ►  Jan (6)
  • ►  2015 (19)
    • ►  Oct (1)
    • ►  Aug (1)
    • ►  Jul (1)
    • ►  Jun (5)
    • ►  May (3)
    • ►  Apr (3)
    • ►  Mar (3)
    • ►  Jan (2)
  • ►  2014 (18)
    • ►  Dec (4)
    • ►  Nov (7)
    • ►  Oct (2)
    • ►  Sep (5)
Powered by Blogger.