Synfig Project Forum

Forums for Synfig Project
It is currently Sat May 18, 2013 5:03 pm

All times are UTC - 4 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Tue May 15, 2012 2:03 am 
Offline

Joined: Mon Apr 16, 2012 6:33 pm
Posts: 50
In Flash, you can scale a "symbol" (like exported canvas) by pulling handles on the sides of a bounding box. It looks like the closest thing to that is the Warp Layer, so is there a way to automatically fit the Warp Layer's source rectangle around an object?

Sorry for your time :). I know there is a Stretch layer, but I like to be able to see the bounds of the object.


Top
 Profile  
 
PostPosted: Tue May 15, 2012 3:06 am 
Offline
Site Admin
User avatar

Joined: Sat Dec 01, 2007 6:26 am
Posts: 4119
Location: Spain
Quote:
so is there a way to automatically fit the Warp Layer's source rectangle around an object?

Not possible. Warp layer works in a raster world. It means that it looks the layers below once they have been rendered. If it needs more precision it asks for a deep pixel subsampling but it doesn't know nothing about the geometry of the layers below.

...

Wait, there is one information that might be used somehow. There is one value used to render a boundary box around the selected layers I think it can be used for other layers to fit on the warp rectangle. It has one problem. If the layers below the warp layer changes its bounding rectangle (i.e. they get wider) then the warp layer would modify its render result if the warp rectangle follows this bounding rectangle.

In any case, currently there is not API to do that connection between the Warp layer and its context layers boundaries. It has to be coded in any case.
-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  [ 2 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:  
Powered by phpBB® Forum Software © phpBB Group