module inscription newsletter haut de page forum mobile

Rejeter la notice

ateliers live resolve avec forest

Ateliers Live Resolve - Formez-vous en ligne tous les mois avec Forest !
Faites rapidement évoluer la qualité de vos étalonnage avec nos ateliers mensuels de 3h.
Toutes les infos

Ateliers et Formations

Script : animation texte basé sur "mot"

Discussion dans 'Adobe After Effects' créé par B0gs, 7 Décembre 2005.

Tags:
  1. B0gs

    Points Repaire:
    100
    Recos reçues:
    0
    Messages:
    8
    Appréciations:
    +0 / 0 / -0
    Bonjour,

    Je souhaiterai modifier l'option "basé sur" d'une animation de texte afin de le définir sur "mot" dans un script.
    Or je n'ai pas pu trouver comment faire.

    Voici une partie du script :

    Merci pour votre aide.
     
  2. nab17connection

    Points Repaire:
    1 900
    Recos reçues:
    1
    Messages:
    1 051
    Appréciations:
    +0 / 0 / -0
    Text Animator

    salut :)

    le Scripting Guide est bien dans l ensemble mais plusieurs choses ne sont pas documentées....comme ce que tu recherches par exemple (le guide n en dit pas un mot).

    essaie de rajouter mes lignes en bleues, ca devrait fonctionner (ca va te choisir 'Mot' au lieu de 'Caracteres' pour la propriété "Basé sur ")
    Code:
    // SET UP ANIMATORS AND SELECTORS
    var theAnimators = theTextProperties.property("ADBE Text Animators");
    
    // add a Text Animator property to control the highlight style
    var highlightAnimator = theAnimators.addProperty("ADBE Text Animator");
    
    var highlightSelectors = highlightAnimator.property("ADBE Text Selectors");
    
    // add a Range Selector property to control the highlight timing
    var highlightSelector = highlightSelectors.addProperty("ADBE Text Selector");
    
    // define the range selector's Advanced (7) property group
    var advancedSelector = highlightSelector.property("ADBE Text Range Advanced");
    
    // define the Advanced property group's Unit (1) property and set to Index (percentage = 1, index = 2)
    var unitsProperty = advancedSelector.property("ADBE Text Range Units");
    unitsProperty.setValue(2);
    [COLOR=blue]
    // base sur mot
    var basedOnProperty = advancedSelector.property("ADBE Text Range Type2");
    basedOnProperty.setValue(3);[/COLOR] 
    
    // define the range selector's Start (4) and End (5) properties and set both to zero
    var rangeStartProp = highlightSelector.property("ADBE Text Index Start");
    var rangeEndProp = highlightSelector.property("ADBE Text Index End");
    rangeStartProp.setValue(0);
    rangeEndProp.setValue(0);
    
     
  3. B0gs

    Points Repaire:
    100
    Recos reçues:
    0
    Messages:
    8
    Appréciations:
    +0 / 0 / -0
    Merci, c'est ce qu'il me fallait.
     
Chargement...

Partager cette page