Difference between revisions of "Talk:Sif Format"

From Synfig Studio :: Documentation
Jump to: navigation, search
(clarify)
m (fix link)
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#L2693-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)
+
:: 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)

Revision as of 04:11, 19 January 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)