Difference between revisions of "Doc:How Do I"

From Synfig Studio :: Documentation
Jump to: navigation, search
m
m (Make an existing animation run at half speed?)
Line 85: Line 85:
 
If you have an animation that runs from 0s to 10s and you want it to run at half speed from 0s to 20s, how can you do that?
 
If you have an animation that runs from 0s to 10s and you want it to run at half speed from 0s to 20s, how can you do that?
  
You encapsulate it, and use the 'time offset' parameter in the encapsulation layer to slow it down:
+
* Either: encapsulate it, and use the 'time offset' parameter in the encapsulation layer to slow it down:
 +
** Right-click 'time offset' in the encapsulation layer, convert>linear, rate -0.5 offset 0.  That means offset the time by -0.5 seconds per second - or in other words, run at half speed
 +
** Or, putting waypoints on the 'time offset' param would work too: 0 at 0s and -10 at 20s.  (The choice between using a linear convert and valuenodes is entirely up to you.  They both achieve the same result in this simple case).
  
* Right-click 'time offset' in the encapsulation layer, convert>linear, rate -0.5 offset 0.  That means offset the time by -0.5 seconds per second - or in other words, run at half speed
+
* Or: use a [[Time Loop Layer]]...
 
+
* Or, putting waypoints on the 'time offset' param would work too: 0 at 0s and -10 at 20s.
+
 
+
The choice between using a linear convert and valuenodes is entirely up to you. They both achieve the same result in this simple case.
+

Revision as of 12:11, 28 January 2008

Languages Language: 

English • español • français



Feel free to add your own questions here. Or put them on the Wiki Wish List.

Apply a gradient to an object instead of the entire canvas?

  1. Create the region you want to fill with a gradient, and the gradient layer, if you haven't already.
  2. Make sure that the gradient layer is above the region layer in the Layers Panel.
  3. Select both layers, right click, and select Encapsulate.
  4. Expand the new Inline Canvas layer if it's not already, and select your gradient layer.
  5. In the Params Panel select the Blend Method parameter, and choose Onto from the drop-down menu.

The gradient will clip to the visible area of the region below it inside the Inline Canvas. (and any other layers in that section).

Show or hide a layer, or fade the effect of a blur?

In the Params Panel, look for an option labeled Amount - this controls how much of the blended result of the layer is composited with the blend of the layers beneath it.

In other words, for a typical layer, this will 'fade it out'. For a Blur Layer set to "Straight", this will fade between the blurred version and the unblurred version of the canvas. If you want it to become less blurry, adjust the Blur Layer's 'size' parameter.

Fill an outline?

(Requested by Karlb)

There are several options:

  • The easiest way is to link a new region layer to the outline's shape.
    1. From the Layer Menu (either context-click on the Layers Panel or use the Canvas Menu Caret) create a new Region Layer
    2. Make sure that the Region Layer is above the Outline Layer in the Layers Panel - this affects which layer's shape remains after the link.
    3. Select both layers in the Layers Panel This will display only the parameters shared by both layers in the Params Panel.
    4. Context-click on the Vertices Parameter, and select Link.
    5. The Region Layer will snap to the shape of the Outline Layer.
  • Similar to the above, but using a different method:
    1. Select the outline you want to fill.
    2. In the Params Panel, right-click the Verticies parameter, select "Export", enter a name for the shape, and hit return. This will export the shape of the outline, making it visible in the Children dialog.
    3. In the Children dialog, open the ValueBase Nodes tree and select the name you just saved the shape as.
    4. Create a new region layer as above, and leave it selected.
    5. In the parameter dialog, right-click the Verticies parameter and click "Connect".
  • When you create an outline with the Bline Tool that you intend to be a filled area as well, make sure you select the Fill checkbox in the tool options dialog. Obviously, this doesn't help much if you realise later that you needed a fill here.
  • If you are using the draw tool, there is a button at the bottom of the tool options dialog labeled "Fill Last Stroke", which creates a new Region Layer and links its shape to the previously drawn outline. Unfortunately, it doesn't work as of Synfig Studio v0.61.04. It has been fixed in the current SVN version of the code.
  • Create a region with the same number of ducks, and manually link each duck. If you want a region that depends on multiple outline layers, this is really your only choice for now.
  • Use the draw tool, select only the outline to fill, draw a stroke roughly following the outline and make sure you're holding the Control key when you left go of the mouse button at the end of the stroke. This doesn't work 100% right at the moment.

Dock Together Windows?

  • To dock (join) separate windows into one you must drag the tab icons for each of the tools into another window.
  • You can create subdivisions inside the windows by dragging the icons into the side tabs (located around the edges, the look like rectangles).
  • Tool tabs inside the window can be arranged by dragging them on top of one another, therefore changing the order.

Use an external Bitmap?

  • In the image menu (>) choose file-->import. PNG with alpha channel works fine.
  • To animate it without accidental stretching, right-click on the layer and choose encapsulate. You can then animate the position of the new "Inline Canvas" layer instead of the bbox.

Close a bline?

  • Right click on the starting point and then click on loop bline.

Note: It doesn't work unless the initial point has a tangent - ie the first segment is curved. But you can hide tangent ducks (Alt+3, or "Caret Menu > View > Show/Hide Ducks > Show tangent ducks") and process as described. Don't forget to press (Alt+3) after that to show tangent ducks again.

How do I transform encapsulated objects?

  • Right click on the Encapsulated object in the Layer dialog and choose "select all child layers". Then you select the ducks you want to transform (usually just all of them, like for rotating the object), and the rotate or scale tool and do the work.

Make objects go behind each other, without moving layers?

You'll notice each layer you make has a number in the z depth column in the Layers Panel. Say you have 3 layers, they will be numbered 2 (lowest, e.g. a square) 1 (eg a circle) 0 (highest, the default, e.g. a line). In order to make layer 1, the circle, pass behind layer 2, the square, change its z depth to be 3 or more. The z depth of the circle needs to be greater than 2 in order to be behind the square. To make the square on top of everything, you'd change its z depth to -1 or less.

Positive numbers on the z axis go into the screen, and negative numbers go out of the screen, towards the viewer.

It is possible to animate this effect, but each layer is discrete. They seem to go from 0 to 0.9999.

In addition, objects in encapsulated layers can only go behind other objects in the same encapsulated layer. However an encapsulated layer can go behind another encapsulated layer.

Copy a complex convert combination between parameters of different layers?

For example: you want to copy a complicated conversion type that you have in one parameter from a layer, to other parameter (maybe not a root parameter, but a sub-parameter) of other layer. If you export the complicated conversion type from the original layer and then go to the other layer and select Connect (right click and the exported and the parameter both selected) then you have the parameter form the second layer to be exactly the same than the original one. But there is a drawback: if you modify one of the sub-parameters in the complicated conversion type (e.g. you change the value of one of them) then automatically the same sub-parameter of the other layer is changed.

How can you copy the conversion but allow modify the sub-parameters independently on each layer?

Once you have achieved the complex conversion type in the original layer, don't export the root parameter! if you have done yet unexport it. (Why?). You will understand it later. Now duplicate the original layer. Then you should obtain the same layer with the same conversion type placed at the same parameter (but not exported). NOW export the parameter from the duplicated layer. Then go to the (sub) parameter of the layer where you want to copy the complex conversion type and Connect it to the just exported parameter form the duplicated layer. Now delete the duplicated layer (!). Then the exported ValueNode still undeleted and the layer where you wanted to copy the complex convert type have a (sub) parameter connected to it. You can unexport the ValueNode or not. It is up to you. But notice that the conversion type is already copied into other (sub) parameter of other layer and they are independent as well as you can change one of them (by modifying the sub-parameters) and the other remains untouched.

Make an existing animation run at half speed?

If you have an animation that runs from 0s to 10s and you want it to run at half speed from 0s to 20s, how can you do that?

  • Either: encapsulate it, and use the 'time offset' parameter in the encapsulation layer to slow it down:
    • Right-click 'time offset' in the encapsulation layer, convert>linear, rate -0.5 offset 0. That means offset the time by -0.5 seconds per second - or in other words, run at half speed
    • Or, putting waypoints on the 'time offset' param would work too: 0 at 0s and -10 at 20s. (The choice between using a linear convert and valuenodes is entirely up to you. They both achieve the same result in this simple case).


Languages Language: 

English • español • français