Welcome, Guest. Please Login
Tinderbox
  News:
IMPORTANT MESSAGE! This forum has now been replaced by a new forum at http://forum.eastgate.com and no further posting or member registration is allowed. The forum is still accessible via read-only access for reference purposes. If you wish to discuss content here, please use the new forum. N.B. - posting in the new forum requires a fresh registration in the new forum (sorry - member data can't be ported).
  HomeHelpSearchLogin  
 
Pages: 1
Send Topic Print
Resizing adornments & maintaining relative positio (Read 879 times)
Derek Van Ittersum
Full Member
*
Offline



Posts: 168

Resizing adornments & maintaining relative positio
Jul 29th, 2016, 10:41am
 
So I've been working on a map and now realized I've made the adornments too small. It's time to make all the adornments larger and I'm wondering if there's some automated way to select them all and make them 3 times as big while maintaining their relative positions to each other. Bonus points if this works with notes too (I have many notes that are overlapping two adornments and am looking to maintain their positions).

Clearly I can do this manually without too much fuss, but just curious if anyone has approached this programmatically yet. Would be useful for future cases.
Back to top
 
 
  IP Logged
Mark Anderson
YaBB Administrator
*
Offline

User - not staff!

Posts: 5689
Southsea, UK
Re: Resizing adornments & maintaining relative positio
Reply #1 - Jul 29th, 2016, 11:51am
 
Note that $Height and $Width so the seeming easy route - using a common prototype is hard. Plus, agents never match adornments (story for another day).  Best route is a stamp with the code:

$Height = ($Height * 3);
$Width = ($Width * 3);


Then select all the adornments/notes as required and apply the stamp.

For notes only, you could use an agent with a query finding all the desired notes and this action:

$Height(original) = ($Height(original) * 3);
$Width(original) = ($Width(original) * 3);


Back to top
 
 

--
Mark Anderson
TB user and Wiki Gardener
aTbRef v6
(TB consulting - email me)
WWW shoantel   IP Logged
Derek Van Ittersum
Full Member
*
Offline



Posts: 168

Re: Resizing adornments & maintaining relative positio
Reply #2 - Jul 29th, 2016, 12:45pm
 
This does work to enlarge them all at the same time, but they don't keep their relative positions--adornments that were bordering each other prior to the stamp overlap after the stamp. Which is what I expected. Was just curious if there was some way to use XPos
/YPos or similar to maintain relative positioning with regard to other adornments.
Back to top
 
 
  IP Logged
Mark Anderson
YaBB Administrator
*
Offline

User - not staff!

Posts: 5689
Southsea, UK
Re: Resizing adornments & maintaining relative positio
Reply #3 - Jul 29th, 2016, 1:34pm
 
I don't think there's a way to make items not overlap whilst resizing.  There isn't an overlap-aware operator AFAIK.
Back to top
 
 

--
Mark Anderson
TB user and Wiki Gardener
aTbRef v6
(TB consulting - email me)
WWW shoantel   IP Logged
Mark Bernstein
YaBB Administrator
*
Offline

designer of
Tinderbox

Posts: 2871
Eastgate Systems, Inc.
Re: Resizing adornments & maintaining relative positio
Reply #4 - Jul 31st, 2016, 7:38pm
 
If you have a way of finding the adjacent adornment -- if it's the elder sibling, perhaps -- your stamp could set

     $Xpos = $Xpos(previousSibling)+0.5;

Some better tools for this are coming (in part already available backstage).
Back to top
 
 
WWW   IP Logged
Pages: 1
Send Topic Print