Apple Shake 4 Tutorials Instrukcja Użytkownika Strona 232

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 260
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 231
232 Chapter 8 Working With Macros
4 Indicate what you want to spit out of the macro with the return line. This is the final
image (or float, int, string) that you want to extract out of the macro function.
Remember the semicolon at the end of the line—in this case, return Rotate2, as it has
the result you need.
Add the return line:
image RotateBlur(
image input,
float angle,
float blur
)
{
Rotate1 = Rotate(input, -Rotate2.angle, 1, width/2, height/2, 0, 0.5, 0);
Blur1 = Blur(Rotate1, blur, 0, 1, "gauss", xFilter, "rgba");
Rotate2 = Rotate(Blur1, angle, 1, width/2, height/2, 0, 0.5, 0);
return Rotate2;
}
5 The following is the final macro. As a final touch, you should add default values for any
parameter, so it launches without having to add values in the command line.
Add the default values:
Note: Take special care with the commas.
image RotateBlur(
image input,
float angle = 45,
float blur = 150
)
{
Rotate1 = Rotate(input, -Rotate2.angle, 1, width/2, height/2, 0, .5, 0);
Blur1 = Blur(Rotate1, blur, 0, 1, "gauss", xFilter, "rgba");
Rotate2 = Rotate(Blur1, angle, 1, width/2, height/2, 0, 0.5, 0);
return Rotate2;
}
Saving and Testing the Macro
When this is done, save the file in your startup directory. Make sure the file name has a
.h file extension. Some text editors automatically append an extension. This is bad.
There is no correlation between the file name and the macro name.
To save the macro:
m
Save the file in your $HOME/nreal/include/startup directory:
/Users/Me/nreal/include/startup/my_macro.h
Przeglądanie stron 231
1 2 ... 227 228 229 230 231 232 233 234 235 236 237 ... 259 260

Komentarze do niniejszej Instrukcji

Brak uwag

Ebm-papst S3G400-AN04-30 Handbücher

Bedienungsanleitungen und Benutzerhandbücher für Hardware Ebm-papst S3G400-AN04-30.
Wir stellen 2 PDF-Handbücher Ebm-papst S3G400-AN04-30 zum kostenlosen herunterladen nach Dokumenttypen zur Verfügung Bedienungsanleitung


Inhaltsverzeichnis

Inhaltsverzeichnis





Weitere Produkte und Handbücher für Hardware Ebm-papst

Modelle Dokumententyp
S3G400-AN04-32 Bedienungsanleitung   ebm-papst S3G400-AN04-32 User Manual, 10 Seiten
S3G400-AN04-50 Bedienungsanleitung   ebm-papst S3G400-AN04-50 User Manual, 11 Seiten
S3G400-AN04-52 Bedienungsanleitung   ebm-papst S3G400-AN04-52 User Manual, 11 Seiten
S3G400-LC22-51 Bedienungsanleitung   ebm-papst S3G400-LC22-51 User Manual, 11 Seiten
S3G400-LC22-59 Bedienungsanleitung   ebm-papst S3G400-LC22-59 User Manual, 12 Seiten
S3G450-AO02-30 Bedienungsanleitung   ebm-papst S3G450-AO02-30 User Manual, 10 Seiten
S3G450-AO02-50 Bedienungsanleitung   ebm-papst S3G450-AO02-50 User Manual, 11 Seiten
S3G450-AO02-52 Bedienungsanleitung   ebm-papst S3G450-AO02-52 User Manual, 10 Seiten
S3G450-LC28-51 Bedienungsanleitung   ebm-papst S3G450-LC28-51 User Manual, 12 Seiten
S3G450-LC28-59 Bedienungsanleitung   ebm-papst S3G450-LC28-59 User Manual, 12 Seiten
S3G500-AF48-51 Bedienungsanleitung   ebm-papst S3G500-AF48-51 User Manual, 11 Seiten
S3G500-AM56-21 Bedienungsanleitung   ebm-papst S3G500-AM56-21 User Manual, 12 Seiten
S3G500-AN33-01 Bedienungsanleitung   ebm-papst S3G500-AN33-01 User Manual, 12 Seiten
S3G500-AN33-02 Bedienungsanleitung   ebm-papst S3G500-AN33-02 User Manual, 12 Seiten
S3G560-AP68-21 Bedienungsanleitung   ebm-papst S3G560-AP68-21 User Manual, 12 Seiten
S3G560-AQ41-01 Bedienungsanleitung   ebm-papst S3G560-AQ41-01 User Manual, 12 Seiten
S3G630-AC52-51 Bedienungsanleitung   ebm-papst S3G630-AC52-51 User Manual, 11 Seiten
S3G630-AD03-A1 Bedienungsanleitung   ebm-papst S3G630-AD03-A1 User Manual, 12 Seiten
S3G630-AP70-21 Bedienungsanleitung   ebm-papst S3G630-AP70-21 User Manual, 12 Seiten
S3G630-AQ37-21 Bedienungsanleitung   ebm-papst S3G630-AQ37-21 User Manual, 11 Seiten