Difference between revisions of "Reuse Exported ValueNodes"
From Synfig Studio :: Documentation
m (Text replace - '{{l|Category:' to '{{Category|') |
m (Add data linking category) |
||
(6 intermediate revisions by 4 users not shown) | |||
Line 3: | Line 3: | ||
{{Category|Tutorials}} | {{Category|Tutorials}} | ||
{{Category|Tutorials Advanced}} | {{Category|Tutorials Advanced}} | ||
+ | {{Category|Exporting}} | ||
+ | {{Category|Data Linking}} | ||
+ | {{NewTerminology}} | ||
<!-- Page info end --> | <!-- Page info end --> | ||
==Introduction== | ==Introduction== | ||
− | {{l|Export}} | + | {{l|Export|Exporting}} and {{l|Convert|converting}} a {{l|ValueNode}} are among the most interesting features of Synfig. A combination of them allows the user to organize complex animations modifying just a few parameters. See the tutorial {{l|Doc:Following_a_Spline}} for an example. |
Sometimes you would like to do the same combination of exported values and convert types. And it is so tedious to repeat each time. | Sometimes you would like to do the same combination of exported values and convert types. And it is so tedious to repeat each time. | ||
Line 13: | Line 16: | ||
There is a way to avoid this and reuse the exported and converted values. | There is a way to avoid this and reuse the exported and converted values. | ||
− | Imagine that you have a situation where you have a cool conversion combination and want to use it into another already done animation. You | + | Imagine that you have a situation where you have a cool conversion combination and want to use it into another already done animation. You can do the following: |
− | # | + | # In the animation file that has the cool conversion do: |
− | ## Export all the values that want to control. For example if parameter 'a' is a=b+c then you should export three parameters: 'a', 'b' and 'c'. The exported parameter 'a' will be an | + | ## Export all the values that you want to control. For example if parameter '''a''' is a=b+c then you should export three parameters: '''a''', '''b''' and '''c'''. The exported parameter '''a''' will be an {{l|Convert#Add|Add}} parameter and will be calculated based on the '''b''' and '''c''' exported parameters. |
## Delete all the layers (you don't need them at all, because you only need the cool conversion combination). Save the file with other name ("master.sifz"). This will be the main file. | ## Delete all the layers (you don't need them at all, because you only need the cool conversion combination). Save the file with other name ("master.sifz"). This will be the main file. | ||
− | # | + | # Go to {{l|Canvas Menu Caret}} {{c|<File>|<Import>|}} and select the file that have the current done animation where on you want to use the cool exported valuenodes combination. |
− | # Then select the imported | + | # Then select the imported {{l|Group Layer}} and go to its {{l|Group Layer#Canvas parameter|Canvas parameter}} and {{l|Export}} it. Set a meaningful name. Save the "master" file and close it. |
− | #Open the "master" file again and you'll see that the imported animation file (already an exported canvas) | + | #Open the "master" file again and you'll see that the imported animation file (already an exported canvas) has an expand triangle that allows to select the layers that are inside of it. |
− | # Select the parameter of the layer of the imported canvas that you want and link the parameter to any of the "master" canvas exported values that are accessible to the | + | # Select the parameter of the layer of the imported canvas that you want and link the parameter to any of the "master" canvas exported values that are accessible to the {{l|Library Panel}} parameters, using the right click mouse button. |
That's all folks! ;-) | That's all folks! ;-) |
Latest revision as of 10:16, 27 January 2015
Introduction
Exporting and converting a ValueNode are among the most interesting features of Synfig. A combination of them allows the user to organize complex animations modifying just a few parameters. See the tutorial Following a Spline for an example.
Sometimes you would like to do the same combination of exported values and convert types. And it is so tedious to repeat each time.
There is a way to avoid this and reuse the exported and converted values.
Imagine that you have a situation where you have a cool conversion combination and want to use it into another already done animation. You can do the following:
- In the animation file that has the cool conversion do:
- Export all the values that you want to control. For example if parameter a is a=b+c then you should export three parameters: a, b and c. The exported parameter a will be an Add parameter and will be calculated based on the b and c exported parameters.
- Delete all the layers (you don't need them at all, because you only need the cool conversion combination). Save the file with other name ("master.sifz"). This will be the main file.
- Go to Canvas Menu Caret "<File> → <Import>" and select the file that have the current done animation where on you want to use the cool exported valuenodes combination.
- Then select the imported Group Layer and go to its Canvas parameter and Export it. Set a meaningful name. Save the "master" file and close it.
- Open the "master" file again and you'll see that the imported animation file (already an exported canvas) has an expand triangle that allows to select the layers that are inside of it.
- Select the parameter of the layer of the imported canvas that you want and link the parameter to any of the "master" canvas exported values that are accessible to the Library Panel parameters, using the right click mouse button.
That's all folks! ;-)