# The locations of the Synfig layer parameter names, value lists, and convert lists in the Synfig source code

**URL:** https://forums.synfig.org/t/the-locations-of-the-synfig-layer-parameter-names-value-lists-and-convert-lists-in-the-synfig-source-code/3841
**Category:** Plugins
**Created:** [April 2, 2016, 4:25pm UTC](https://forums.synfig.org/t/the-locations-of-the-synfig-layer-parameter-names-value-lists-and-convert-lists-in-the-synfig-source-code/3841 "2016-04-02T16:25:52Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![SynfigFan](https://forums.synfig.org/letter_avatar_proxy/v4/letter/s/ec9cab/32.png) [@SynfigFan](https://forums.synfig.org/u/SynfigFan)
#### Post date: [April 2, 2016, 4:25pm UTC](https://forums.synfig.org/t/the-locations-of-the-synfig-layer-parameter-names-value-lists-and-convert-lists-in-the-synfig-source-code/3841/1 "2016-04-02T16:25:52Z")

</div>

I’m working on developing a Synfig Studio plugin that requires a list of all the Synfig layer parameter names, parameter value lists, and parameter convert lists, for automatically adding certain types of animation to a Synfig project file.

The parameter names of a Synfig layer is shown in the ‘Parameters’ panel when a Synfig layer is selected in the ‘Layers’ panel.

A Synfig layer parameter value list is shown in the ‘Parameters’ panel for some Synfig layer parameters, such as ‘Type’ parameter of the Blur layer.

A convert list of a Synfig layer parameter can be brought up by right clicking on a Synfig layer parameter and selecting ‘Convert’ in the pop-up menu.

Instead of building a list of all the Synfig layer parameter names, value lists, and convert lists manually by transcribing what shows up on the Synfig Studio GUI, I’m thinking about writing a Python script that processes the Synfig source code and automatically extracts everything I need.

Where are the Synfig layer parameter names, value lists, and convert lists, in the Synfig source code? Specific file paths, please.

UPDATE:  
I have been rummaging through the Synfig source code, and I’ve found that the following directories contain the Synfig layer parameter definitions and initializations. I still don’t know where the convert lists are either defined, created, or both.

\synfig-1.0.x\synfig-core\src\synfig\layers  
\synfig-1.0.x\synfig-core\src\modules\mod\_filter  
\synfig-1.0.x\synfig-core\src\modules\mod\_geometry  
\synfig-1.0.x\synfig-core\src\modules\mod\_gradient

---

<div class="post-metadata">

### Author: ![BobSynfig](https://forums.synfig.org/user_avatar/forums.synfig.org/bobsynfig/32/175_2.png) [@BobSynfig](https://forums.synfig.org/u/BobSynfig)
#### Post date: [April 2, 2016, 9:08pm UTC](https://forums.synfig.org/t/the-locations-of-the-synfig-layer-parameter-names-value-lists-and-convert-lists-in-the-synfig-source-code/3841/2 "2016-04-02T21:08:58Z")

</div>

convert list of a Synfig layer parameter: check synfig/valuenodes directory and valuenode.h  
parameter names of a Synfig layer: see EXPORT\_VALUE in layers files  
synfig layer parameter value list: see “.add\_enum\_value” in get\_param\_vocab() in layer files

Everything is about “vocab”, dynamically created in c++ code, so you can’t access directly such lists due to the current (very basic) implementation of python plugin system.  
So…It works directly manipulating closed sif files and nothing from the program code in memory.  
Good luck 😛

---

<div class="post-metadata">

### Author: ![SynfigFan](https://forums.synfig.org/letter_avatar_proxy/v4/letter/s/ec9cab/32.png) [@SynfigFan](https://forums.synfig.org/u/SynfigFan)
#### Post date: [April 2, 2016, 10:00pm UTC](https://forums.synfig.org/t/the-locations-of-the-synfig-layer-parameter-names-value-lists-and-convert-lists-in-the-synfig-source-code/3841/3 "2016-04-02T22:00:05Z")

</div>

@BobSynfig

Ok, I see where the convert lists are created now: in the ValueNode\_Add() functions of the valuenode\_\*.cpp files.

Now I can write a separate Python script (not a Synfig Studio plugin script) that processes the relevant Synfig source code files and automatically builds convert lists for different Synfig layer parameter value types.

Thanks a bunch!
