Difference between revisions of "Talk:Sif Format"

From Synfig Studio :: Documentation
Jump to: navigation, search
(ask about layer version)
m (canvas version> answer)
Line 4: Line 4:
  
 
What does a layer's "version" attribute do? I'm having trouble filling out [[Sif Format#.3Clayer.3E|the table]]. --[[User:Rsg167|Rsg167]] ([[User talk:Rsg167|talk]]) 12:17, 13 January 2016 (EST)
 
What does a layer's "version" attribute do? I'm having trouble filling out [[Sif Format#.3Clayer.3E|the table]]. --[[User:Rsg167|Rsg167]] ([[User talk:Rsg167|talk]]) 12:17, 13 January 2016 (EST)
 +
: 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)

Revision as of 11:26, 14 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)