Difference between revisions of "Talk:Sif Format"

From Synfig Studio :: Documentation
Jump to: navigation, search
m (fix link)
(resolve discussion)
 
Line 6: Line 6:
 
: It's related to the file format version... very helpful comment is't it ???? ;-)  {{literal|canvas->get_version()}}.
 
: It's related to the file format version... very helpful comment is't it ???? ;-)  {{literal|canvas->get_version()}}.
 
: The sif specification have changed over time, this version number help to kept this change and accordingly load the file. Have a look to the code [https://github.com/synfig/synfig/blob/master/synfig-core/src/synfig/loadcanvas.cpp#L2101 here] for example. How the canvas number is created is very important to document i guess. [https://github.com/synfig/synfig/blob/master/synfig-core/src/synfig/savecanvas.cpp#L92 Here] is the actual code. ... --[[User:D.j.a.y|D.j.a.y]] ([[User talk:D.j.a.y|talk]]) 04:26, 14 January 2016 (EST)
 
: The sif specification have changed over time, this version number help to kept this change and accordingly load the file. Have a look to the code [https://github.com/synfig/synfig/blob/master/synfig-core/src/synfig/loadcanvas.cpp#L2101 here] for example. How the canvas number is created is very important to document i guess. [https://github.com/synfig/synfig/blob/master/synfig-core/src/synfig/savecanvas.cpp#L92 Here] is the actual code. ... --[[User:D.j.a.y|D.j.a.y]] ([[User talk:D.j.a.y|talk]]) 04:26, 14 January 2016 (EST)
:: Sorry, I meant the <layer>’s version. [https://github.com/synfig/synfig/blob/master/synfig-core/src/synfig/loadcanvas.cpp#L2792-L2800 Here] is the relevent code. I consulted layer.cpp and it appears that Layer::get_version() and Layer::set_version() don’t do anything useful. I’ll keep looking; maybe those methods are actually overloaded in specific layer types. --[[User:Rsg167|Rsg167]] ([[User talk:Rsg167|talk]]) 21:09, 18 January 2016 (EST)
+
:: <s>Sorry, I meant the &lt;layer&gt;’s version. Here is the relevent code. I consulted layer.cpp and it appears that Layer::get_version() and Layer::set_version() don’t do anything useful. I’ll keep looking; maybe those methods are actually overloaded in specific layer types. --Rsg167 (talk) 21:09, 18 January 2016 (EST)</s>
 +
:: It turns out that Layer::get_param() is overloaded by Layer subclasses. That explains it. &#x1F604; --[[User:Rsg167|Rsg167]] ([[User talk:Rsg167|talk]]) 12:15, 1 February 2016 (EST)

Latest revision as of 19:15, 1 February 2016

Great work you have started !!! you can found some infos : Unpacking_sifz-files and Fix_a_not_well_formed_document --D.j.a.y (talk) 05:22, 29 December 2015 (EST)

Thanks for the links! Useful info. Rsg167 (talk) 10:53, 5 January 2016 (EST)

What does a layer's "version" attribute do? I'm having trouble filling out the table. --Rsg167 (talk) 12:17, 13 January 2016 (EST)

It's related to the file format version... very helpful comment is't it ???? ;-) "canvas->get_version()".
The sif specification have changed over time, this version number help to kept this change and accordingly load the file. Have a look to the code here for example. How the canvas number is created is very important to document i guess. Here is the actual code. ... --D.j.a.y (talk) 04:26, 14 January 2016 (EST)
Sorry, I meant the <layer>’s version. Here is the relevent code. I consulted layer.cpp and it appears that Layer::get_version() and Layer::set_version() don’t do anything useful. I’ll keep looking; maybe those methods are actually overloaded in specific layer types. --Rsg167 (talk) 21:09, 18 January 2016 (EST)
It turns out that Layer::get_param() is overloaded by Layer subclasses. That explains it. 😄 --Rsg167 (talk) 12:15, 1 February 2016 (EST)