Difference between revisions of "Linking"

From Synfig Studio :: Documentation
Jump to: navigation, search
m (Which Duck Moves and Which Stays Still?)
m (Which Duck Moves and Which Stays Still?)
Line 11: Line 11:
 
So you've selected a bunch of ducks, right clicked to bring up the menu and clicked 'link'.  Which of the ducks' positions is used as the new shared position?
 
So you've selected a bunch of ducks, right clicked to bring up the menu and clicked 'link'.  Which of the ducks' positions is used as the new shared position?
  
It works like this:
+
It works like this; a five-tiered decision process:
  
* If any of the ducks are an exported value:
+
=== Tier 1 ===
** If all the ducks which are an exported value are the same exported value, then that value is used.
+
If any of the ducks are an exported value:
** Otherwise it's an error; linking isn't allowed to change an exported value.
+
* If all the ducks which are an exported value are the same exported value, then that value is used.
* Otherwise, none of the ducks are an exported value.  If any of the ducks are referenced more than the others, then one of those is used.  What does 'referenced' mean?  It's a count of how many times the value is used.  If 2 ducks are linked together, that value will be referenced twice.  Notice that if you draw an outline and region at once using the bline tool, the points in the created layers will each have a reference count of one, since the points themselves aren't linked to each other.  Rather, it is the blines (the lists of blinepoints) that are linked.  On the other hand, if you draw an outline and a region separately and link their vertices individually, then each vertex will have a reference count of 2.
+
* Otherwise it's an error; linking isn't allowed to change an exported value.
* If it's still not decided which one to use, and some of the ducks are animated and others are constant values, then one of the animated ones will be used.
+
=== Tier 2 ===
* After that, if two or more ducks are animated, the one with the most waypoints gets priority.
+
Otherwise, none of the ducks are an exported value.  If any of the ducks are referenced more than the others, then one of those is used.  What does 'referenced' mean?  It's a count of how many times the value is used.  If 2 ducks are linked together, that value will be referenced twice.  Notice that if you draw an outline and region at once using the bline tool, the points in the created layers will each have a reference count of one, since the points themselves aren't linked to each other.  Rather, it is the blines (the lists of blinepoints) that are linked.  On the other hand, if you draw an outline and a region separately and link their vertices individually, then each vertex will have a reference count of 2.
* If it's still not decided, then the one which was least recently modified will get priority.  So if all other things are equal, you can decide which duck gets moved by nudging the one you want to move a little just before linking.
+
=== Tier 3 ===
 +
If it's still not decided which one to use, and some of the ducks are animated and others are constant values, then one of the animated ones will be used.
 +
=== Tier 4 ===
 +
After that, if two or more ducks are animated, the one with the most waypoints gets priority.
 +
=== Tier 5 ===
 +
If it's still not decided, then the one which was least recently modified will get priority.  So if all other things are equal, you can decide which duck gets moved by nudging the one you want to move a little just before linking.

Revision as of 20:29, 3 February 2008

Languages Language: 

English • română


Introduction

It's possible to link two ducks together so that when one moves, the other moves with it. This is done automatically when you create an outline and region at the same time in the bline tool; a single bline is created, and is linked to the vertices parameter of both the outline and the region. This allows you to move the outline around and have the region it surrounds automatically move with it.

To link some ducks together, select them by selecting their layer(s) and dragging a box around them, or by holding the control key and toggling individual ducks on, then right-click on one of the selected ducks and select 'link' from the context menu.

All of the selected ducks must be of the same basic type. You can't link a real value to a vector value. You can usually link a vertex to a tangent if you like, because they are both vector values. I'm not sure it makes much sense to do so, however.

Which Duck Moves and Which Stays Still?

So you've selected a bunch of ducks, right clicked to bring up the menu and clicked 'link'. Which of the ducks' positions is used as the new shared position?

It works like this; a five-tiered decision process:

Tier 1

If any of the ducks are an exported value:

  • If all the ducks which are an exported value are the same exported value, then that value is used.
  • Otherwise it's an error; linking isn't allowed to change an exported value.

Tier 2

Otherwise, none of the ducks are an exported value. If any of the ducks are referenced more than the others, then one of those is used. What does 'referenced' mean? It's a count of how many times the value is used. If 2 ducks are linked together, that value will be referenced twice. Notice that if you draw an outline and region at once using the bline tool, the points in the created layers will each have a reference count of one, since the points themselves aren't linked to each other. Rather, it is the blines (the lists of blinepoints) that are linked. On the other hand, if you draw an outline and a region separately and link their vertices individually, then each vertex will have a reference count of 2.

Tier 3

If it's still not decided which one to use, and some of the ducks are animated and others are constant values, then one of the animated ones will be used.

Tier 4

After that, if two or more ducks are animated, the one with the most waypoints gets priority.

Tier 5

If it's still not decided, then the one which was least recently modified will get priority. So if all other things are equal, you can decide which duck gets moved by nudging the one you want to move a little just before linking.


Languages Language: 

English • română