Apple Shake 4 Tutorials Instrukcja Użytkownika Strona 230

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 260
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 229
230 Chapter 8 Working With Macros
The text in your editor is raw script, meaning it is not formatted as a macro. If you paste
it back in, you get three more nodes. You need to format the text as a single function—
a macro.
7 Delete the layout information—that is, everything in the text editor window including
and below the “User interface settings” line.
These lines tell Shake where to place the nodes if you paste them back in again. You do
not need the lines, so remove them.
You are left with this:
Rotate1 = Rotate(0, -Rotate2.angle, 1, width/2, height/2, 0, 0.5, 0);
Blur1 = Blur(Rotate1, 200, 0, 1, "gauss", xFilter, "rgba");
Rotate2 = Rotate(Blur1, -36.9218, 1, width/2, height/2, 0, 0.5, 0);
The left side of the argument supplies a variable name. In the above example, there are
three variables: Rotate1, Blur1, and Rotate2. These are assigned to Shake functions, the
Rotate and the Blur functions. (Inside the Shake interface, these are referred to as
“nodes.” Inside a script, they are referred to as “functions,” as you can have other types
of functions.) Next are the values for the functions. The first argument is generally the
incoming image, so you can see that the incoming image for Blur1 is the result of the
first Rotate function, Rotate1. Rotate1 has a value of 0 as the incoming image—there is
no expected input. If you look these functions up in the documentation, you find the
scripting format for each function.
If you change the variable names Rotate1, Blur1, and Rotate2, you must modify every
reference to them.
The following is used as an example only (it is not a step in the tutorial):
Marshall = Rotate(0, -Holly.angle,1, width/2, height/2, 0, .5, 0);
Will = Blur(Marshall, 200, 0, 1, "gauss", xFilter, "rgba");
Holly = Rotate(Will, 42.61728, 1, width/2, height/2, 0, 0.5, 0);
Notice how the strings gauss” and “rgba are in quotation marks because they are
strings, meaning letter data rather than numeric data. Compare these to what you see in
the interface parameters tab to get an idea of how Shake saves its parameters in a script.
Starting the Macro Format
Next, add some formatting. You must declare the type of the macro—if the macro spits
out an image, an integer (int), a number with decimal place (float), or a word (string).
Because this macro modifies an image, it needs to return an image. After that, add the
macro name. In this case, name the macro RotateBlur, capitalizing each word for
consistency.
Also, include two sets of parentheses. Incoming variables are placed in the first set, and
the second set {the braces} surrounds the body of the macro.
Przeglądanie stron 229
1 2 ... 225 226 227 228 229 230 231 232 233 234 235 ... 259 260

Komentarze do niniejszej Instrukcji

Brak uwag

LG 86UH955V manuali

Manuali dei proprietari e guide per l'utente per no LG 86UH955V.
We fornisce 1 manuali pdf LG 86UH955V per scaricare gratuitamente in base al tipo di documento: Manuale Utente


Lg 86UH955V Manuale Utente (53 pagine)


Marchio: Lg | Categoria: No info | Dimensione: 14.71 MB |

  




Più prodotti e manuali per no LG

Modelli Tipo di Documento
TD-C70043E Manuale Utente   LG TD-C70043E Εγχειρίδιο Χρήσης [en] , 28 pagine
V-CB211HTU Manuale Utente LG V-CB211HTU 使用手冊, 6 pagine
MS-1940V Manuale Utente LG MS-1940V Instruktionsbogen, 27 pagine
DWD-1280FD Manuale Utente LG DWD-1280FD Instruktionsbogen, 27 pagine
L2000CP-BF Manuale Utente   LG L2000CP-BF 产品说明书, 22 pagine
43UH619V Manuale Utente    LG 43UH610V,49UH610V,43UH619V Інструкція користувача [en] , 50 pagine
NC1000-BAAB Manuale Utente   LG NC1000-BAAB Руководство пользователя [en] , 117 pagine
MP500-BEBF Manuale Utente   LG MP500-BEBF 使用手冊, 41 pagine
NB2020A Manuale Utente LG NB2020A Εγχειρίδιο Χρήσης, 18 pagine
43LJ550T Manuale Utente   LG 43LJ550T,49LJ550T 使用手冊, 37 pagine
ARNU05GTRC4.ENWBLEU Manuale Utente LG ARNU05GTRC4.ENWBLEU,ARNU18GTQC4.ENWBLEU,ARNU36GTNC4.ENWBLEU Instruktionsbogen, 13 pagine
LGT505 Manuale Utente   LG LGT505 Owner's manual [it] , 2 pagine
GR-T382SV Manuale Utente LG GR-T382SV Owner’s Manual, 13 pagine
LAM-N760 Manuale Utente   LG LAM-N760 Руководство пользователя, 24 pagine
RN29Q12IP Manuale Utente LG RN29Q12IP Instruktionsbogen, 26 pagine
C12LH.NB1 Manuale Utente LG C09LH,C12LH,C09LH.NB1,C12LH.NB1 Brukermanual, 25 pagine
SJ3 Manuale Utente LG SJ3 Οδηγός Χρήσης, 4 pagine
ND5430 Manuale Utente LG ND5430 Εγχειρίδιο Χρήσης, 24 pagine
52LG50FR Manuale Utente   LG 52LG50FR 产品说明书, 106 pagine
HVW6442AG Manuale Utente   LG HVW6442AG Руководство пользователя, 28 pagine