Synfig Project Forum

Forums for Synfig Project
It is currently Wed Jun 19, 2013 8:05 am

All times are UTC - 4 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Thu Aug 18, 2011 9:58 pm 
Offline
User avatar

Joined: Thu Aug 18, 2011 8:09 pm
Posts: 13
First, I'm absolutely new. Just been poking at Synfig for 2 days.

The situation I'm at is easily overcome by a simple redraw, but I'm more interested in the answer for future, more complex situations. I've got a simple head. The hair was drawn as three seperate BLine outline layers. I've linked the origins and the endpoints so it basically edits as a single stroke, but how would I go about actually joining those segments into a single BLine?

Here's the image...
Attachment:
File comment: Image from above.
JoinBLines.png
JoinBLines.png [ 18.1 KiB | Viewed 541 times ]


Here, as a learning exercise, I looped the outlines and sewed them together as shown in the wiki...
Attachment:
File comment: Sewn image from above.
JoinBLinesSewn.png
JoinBLinesSewn.png [ 20.15 KiB | Viewed 541 times ]


How can I get a single outline that encompasses that area? If there is no simple answer, what's a more complex angle of attack? Can I get an editable file output that could be manually manipulated? Are there plans for an API that would allow a script to walk around that region? Discuss?


Top
 Profile  
 
PostPosted: Fri Aug 19, 2011 2:01 am 
Offline
User avatar

Joined: Thu Aug 18, 2011 8:09 pm
Posts: 13
OK, I didn't know about saving as an .sif. That gives the XML formated file for editing.

I exported the vertices of the three BLines using unique ValueBase Node names(Hr1, Hr2 and Hr3), then disconnected the BLines from the exported values.

Next I saved as an .sif file and opened it for editing in gedit.

I found the exported vertice lists near the top of the file and simply removed the lines...
Code:
    </bline>
    <bline type="bline_point" loop="false" id="Hr2" guid="31CD4192935E1481B07DCD0A2B3000AA">
and
    </bline>
    <bline type="bline_point" loop="false" id="Hr3" guid="D3B13BC02976E62F52DD5F0D60A40D4E">

... that collected the sections all under id="Hr1".

When I reloaded the file its only exported value was a BLine list named Hr1.

When I connected a new BLine to the exported list this is what I got... (tweaked to show out of order connections)
Attachment:
File comment: First joined bline.
JoinBLineTest.png
JoinBLineTest.png [ 10.77 KiB | Viewed 533 times ]


That shows me it's doable. When I figure out the exact sequence to achieve the expected results I'll post it. Unless someone has got something simpler.


Top
 Profile  
 
PostPosted: Fri Aug 19, 2011 5:25 am 
Offline
Site Admin
User avatar

Joined: Sat Dec 01, 2007 6:26 am
Posts: 4191
Location: Spain
Hi BentFX!
In fact there is some part of the code that adds two blines. When you use the Draw Tool, there is one option to "Extend Bline" which means that if it detects a bline end or start when you draw a stroke, it will add the stroke result to the previous existing bline and result in only one bline.

The reason of having the bline twisted is because the bline has a order of the bline points. It just need to reverse that order to have he opposite bline and a good connection.

There is none working on that area at the moment. It would be great to have it!
-G

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


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 2 guests


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:  
cron
Powered by phpBB® Forum Software © phpBB Group