Skip to content

unic8 Studios

Dokumentationen Anleitungen FAQs Links Erweiterte Suche
EnglishGerman
Advertisement
You are here: Home arrow Dokumentationen arrow Scaena - Dokumentation arrow 3. Zeitleisten Skript
3. Zeitleisten Skript
Wednesday, 12. September 2007

Zeitleiste

Das Zeitleisten Skript enthält mehrere Sektionen mit Daten:

Jede von diesen ist erforderlich um die verfügbaren Funktionen von Scaena zu befüllen.

Sektionen

resources

Liste mit URLs von betitelten Bildern/Folien welche separat Dauer haben können und einen Link zu einem benannten Frame oder Effekt.

Attribute 

Name Typ Erforderlich Beschreibung Beispiele
path String true Basispfad der Bilder pics/
../pics/
http://www.mydomain.com/pics/

image

Bild-Ressource für ein ScaenaSlide-Objekt.

Attribute 

Name Typ Erforderlich Beschreibung Beispiele
title String false Title of the slide
Welcome
frame
String
false
Associated frame intro
effect
String
false
Associated effect
cube
time
Number
false
Display time in milliseconds (overrides the global duration time and the time of the associated frame or effect)
3000
(=3 sec.)
url
String
true
Path of the external image (only JPGs are currently supported)
welcome.jpg

Example

<resources path="pics/">
  <image title="Welcome" frame="intro" time="2000" url="welcome.jpg"/>
  <image title="Features" frame="intro" url="features.jpg"/>
  <image title="FX: Blend" effect="blend" url="blend.jpg"/>
</resource>

setup

All meta data for Scaena to setup the slideshow. 

Attributes

(Not available)

scene

Setup information for the 3D scene. 

Attributes 

Name Typ Erforderlich Beschreibung Beispiele
width Number true Width of the 3D scene 2500
height Number true Height of the 3D scene 2000

container

Position of the container which hosts Scaena. 

Attributes 

Name Typ Erforderlich Beschreibung Beispiele
x Number true X position of the container [scene.@width]/10
y Number true Y position of the container [scene.@height]/10

camera

Position of the container which hosts Scaena. 

Attributes 

Name Typ Erforderlich Beschreibung Beispiele
x Number false X position of the camera 0
y Number false Y position of the camera 0
z
Number
false
Z position of the camera
-4900
zoom
Number
false
Zoom factor of the camera's perspective
10
sort
Boolean
false
Use z-sorting of 3D objects while rendering
false

bitmap

Defines the dimensions of the images/slides. 

Attributes 

Name Typ Erforderlich Beschreibung Beispiele
width Number true Width of the images/slides
500
height Number true Height of the images/slides 400

movie

Sets slideshow specific parameters. 

Attributes 

Name Typ Erforderlich Beschreibung Beispiele
autoplay Boolean false Automatically play slideshow after loading all resources true
loop Boolean false Play slideshow from beginning after last image/slide
true

image

Defines image/slide parameters. Some of them could be overwritten locally.

Attributes 

Name Typ Erforderlich Beschreibung Beispiele
time Number true Display time of each image/slide in milliseconds 5000
(=5 sec.)
sizing String false Images/slides sizing type
(empty)
stretch
fit
crop
smoothing
Boolean
true
Allow anti-aliasing when stretching images/slides true
color
Hex
false
Images/slides fill color when sizing has no exact ratio
0x000000 (black)
0x0000FF (blue)

wireframe

Sets the parameters for the debug grid which is diplayed when no images where loaded.

Attributes 

Name Typ Erforderlich Beschreibung Beispiele
horizontal Number true Amount of horizontal segments for a fullsized plane 8
vertical Number true Amount of vertical segments for a fullsized plane 6
color
Hex
true
Wireframe grid color
0xFF0000 (red)
0xFFFFFF (white)
alpha
Number
true Alpha value of the grid
1 (100%)
0.5 (50%)

reflection

Defines the parameters for the optional reflection of images/slides.

Attributes 

Name Typ Erforderlich Beschreibung Beispiele
height Number true Height of the reflection
[scene.@height]/2
rectangle Rectangle true Rectangle which is reflected from the images/slides 0,0,[scene.@width],[scene.@height]
(left, top, right, bottom)
offset
Number
true
Offset of the reflection in percent
0.75 (75%)
alpha
Array
true Alpha value of the reflectio from top to bottom 60,0
(top =60%, bottom =0%)
<setup>
  <scene width="2500" height="2000"/>
  <container x="[scene.@width]/10" y="[scene.@height]/10"/>
  <camera zoom="10" z="-4900" sort="false"/>
  <bitmap width="500" height="400"/>
  <movie autoplay="true" loop="true"/>
  <image time="1000" sizing="" smoothing="true" color="0x000000"/>
  <wireframe horizontal="8" vertical="6" color="0xFF0000" alpha="1"/>
  <reflection height="[scene.@height]/2" rectangle="0,0,[scene.@width],[scene.@height]" offset="0.75" alpha="60,0" />
</setup>

keyframes

List of named frames which can have seperate duration and are linked with an effect and it's parameters.

Attributes

(Not available)

frame

Keyframe with unique name which defines an effect with it's parameters.

Name Typ Erforderlich Beschreibung Beispiele
name String true Name of the frame introduction
effect String true Name of the associated effect cube
time
Number
true
Display time of the associated image/slide in milliseconds 4000
(=4 sec.)

Custom effect parameters

Each effect of the effects script can have several custom parameters which can be set via child nodes at the listed keyframe. Below you can see our list of used parameters in each effect.

Name Typ Erforderlich Beschreibung Beispiele
duration Number true Animation time of the effect introduction
easing String true Name of the associated easing transition
linear
easeInOutQuad
easeOutBounce
<keyframes>
  <frame name="intro" time="5000" effect="list">
    <duration value="2"/>
    <easing value="easeInOutQuad"/>
  </frame>
  <frame effect="blend">
    <duration value="1.5"/>
    <easing value="easeOutBounce"/>
  </frame>
</keyframes>
 
< zurück   weiter >

Support us

Through our partner cafepress.com we sell several clothes and more with our brand so called U8 web wear. With each purchase you get a unique product and support our work. Thanks!


Support This Site