Synfig Project Forum

Forums for Synfig Project
It is currently Fri May 24, 2013 7:46 am

All times are UTC - 4 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Tue Mar 16, 2010 3:57 pm 
Offline
User avatar

Joined: Fri Aug 01, 2008 5:17 pm
Posts: 13
Location: Brazil - Rio de Janeiro
Hi,
I have working in Synfig to create tamplates for simulating smoke, explosion, magic sparkles, etc
But I think to myself: why not create an script or plugin?
So, this question generate many others :( :

The synfig scene description is an xml, but a diferent xml, right?
I have some knowledgement in Java, so my ideia is programing with it. I think: I must to create an synfig's xml library that java can read e generate the synfig scene. Right? Where can I find the synfig's xml reference doc?
I think it can be simple. An external plugin writing in java to generating .sif . And of course the .sif can be manipulated in Synfig Studio
What you think about? would be hard to create the library? JDON (http://www.jdom.org/index.html)
Could help it?

_________________
Quadrochave produções - Produced freely and with free software
http://www.quadrochave.com


Top
 Profile  
 
PostPosted: Tue Mar 16, 2010 6:55 pm 
Offline
Site Admin
User avatar

Joined: Sat Dec 01, 2007 6:26 am
Posts: 4135
Location: Spain
Hi hbarone,
hbarone wrote:
I have working in Synfig to create tamplates for simulating smoke, explosion, magic sparkles, etc
It would be cool if you share them with the community :D
Quote:
But I think to myself: why not create an script or plugin?
That would be awesome!
Quote:
The synfig scene description is an xml, but a diferent xml, right?
Yes it is but cannot be sure of it is different from any other xml.
Quote:
I have some knowledgement in Java, so my ideia is programing with it. I think: I must to create an synfig's xml library that java can read e generate the synfig scene. Right? Where can I find the synfig's xml reference doc?
Unfortunately nobody has written Synfig's file xml format specification yet. All information is in the source code. Check loadcanvas.cpp and savecanvas.cpp in the source code.
Quote:
I think it can be simple. An external plugin writing in java to generating .sif . And of course the .sif can be manipulated in Synfig Studio
What you think about? would be hard to create the library? Could help it?
I have zero experience on xml library syntax so I don't know if it would be hard or not.
it would be very useful for non expert users. Specially if it is generated using some sort of wizard that ask the user some properties and it generates the pre-made particle file.
I only can say that the syntax of synfig in the xml file does not explicitly needs all the values of each layer because when it is not found it uses the default one from the defined in the source code or in case of the canvases it uses the parent canvas value if the child canvas doesn't define the parameter.
Good luck and count with my encouragement :)

-G

_________________
Synfig needs your help!
Developers, packagers, bug testers, translators, artists, web developers, wiki writers... you can contribute! :D


Top
 Profile  
 
PostPosted: Mon Mar 22, 2010 9:29 pm 
Offline
User avatar

Joined: Fri Aug 01, 2008 5:17 pm
Posts: 13
Location: Brazil - Rio de Janeiro
Well, I decided to do something simpler. I'm writing a Java class that print text output to generate an xml file that will open automatically the Synfig Studio after configured. Soon I'll be building a library of objects in a parent class to be reused.
Of course the license is GPL, always! :D

_________________
Quadrochave produções - Produced freely and with free software
http://www.quadrochave.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 4 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group