Snowflake with the Duplicate Layer

From Synfig Studio :: Documentation
< Doc:Snowflake with the Duplicate Layer
Revision as of 12:21, 27 April 2012 by Ed62 (Talk | contribs) (Prima ramura a fulgului de nea)

Jump to: navigation, search
Languages Language: 

English • français • română

Warning!

This page contains outdated information.

The release of Synfig Studio 0.64.0 introduced new terminology and this translated page needs to be updated according to original English text.

You can help updating this page - see instructions here. Thank you!

warning end


Aceasta lectie va da un exemplu simplu de folosire a stratului duplicat - Duplicate Layer, pentru a crea un fulg de nea.

Prima ramura a fulgului de nea

Prima parte este foarte simpla: vom realiza o ramura a fulgului de nea folosind instrumentul BLine Tool/ro (sau Polygon Tool).
Selectati instrumentul Bline si asigurati-va ca in optiunile instrumentelor este selectat doar Create Region Bline. (Daca folositi instrumentul polygon, selectati fie Create Polygon Layer, fie Create Region Layer, dupa cum doriti).

Desenati ramura in partea de mijloc-sus a imaginii. Dupa desenare, selectati noul strat creat (aici il vom numi "stratul Ramura") si asigurati-va ca partea de jos a ramurii se afla aproximativ in acelasi loc cu punctul verde care indica centrul imaginii. Puteti muta ramura prin selectarea tuturor punctelor (Ctrl-A) si folosind instrumentul Normal Tool.

snow_step1.png

Adding the Rotate and Duplicate Layers

To make a whole 6-branches snowflake, we need to make several copies of the branch, and rotate them.
First, we need a Rotation layer. Right click on the image and select Layer > New Layer > Transform > Rotate. You should now have a Rotate Layer on top of the Branch layer.

Then, we'll use the Duplicate Layer. Right click on the image and select Layer > New Layer > Other > Duplicate.

So far, no change is visible on our image, it's normal :). In the Layers Panel, make sure that the layers are in the following order : Duplicate on top, Rotate in the middle, and the "Branch" layer on the bottom.

snow_step2.png


Connecting everything together

Select the Duplicate layer and look at the Params Panel/ro. There's an "Index" value that is automaticaly exported. Its name is "Index 1". (It looks like "Index(Index 1)" in the panel).
This value is made of 3 subparameters : From, To and Step. Those parameters tells how many times an object is duplicated. We need 6 branches so set the To parameter to 6 (keep From and Step to 1).

snow_step3.png

Now move to the Children Panel, and select our "Index 1" value. (Unfold the ValueBase Node if necessary).

In order to have 6 rotated branches, we need to link the duplication and the rotation together.

Select the Rotate layer, and go back to the Params panel.
The Rotate layer has just 2 parameters: Origin and Amount. The important one here is Amount, it tells the angle of the rotation.

Right click on Amount and select Convert > Scale.
Now Amount is made of 2 subparameters, Link (an angle) and Scalar (a real), the whole rotation being equal to Link * Scalar.

Set the Link subparameter to 60 (that's the angle between the snowflake branches).

Right click on the Scalar parameter and select Connect. It will connect the previously selected "Index 1" value (in the Children panel) to the Scalar parameter.

How it looks after the connection:
snow_step4.png


You should now have a complete snowflake, yay!

snow_step5.png


What happened?

We linked the "Scalar" value of the rotation to the duplicate layer:
Thanks to the Duplicate, the Scalar parameter was set to values between 1 and 6 (From and To), by steps of 1 - instead of being set to a single value.
So we had 5 rotations in addition to the original branche : One of 60° (Scalar * Link = 1 * 60°), another of 120° ( 2 * 60°), another of 180°, etc. And all of these rotations were displayed together.

You can think of the Duplicate Layer as something allowing you to have a list of values, that you can link to a (real) parameter in the same way you could link a single value to a parameter.


Languages Language: 

English • français • română