measure

pieter's Avatar

pieter

04 Jul, 2013 12:01 AM

Hello,

i need to measure the width of a textpath.
i found a way to create a rectangle with the exact dimensions of the text (with Fit to node)
bud i still can't figure out how to get the dimensions of that rectangle.

end goal.
i want to create a rectangle around the text that has a preset margin around the text.

thx anyone for helping out

  1. Support Staff 1 Posted by lievenmenschaer... on 05 Jul, 2013 12:31 PM

    lievenmenschaert's Avatar

    Hello,

    You can send the rect node to a lookup node and call for bounds OR bounds.x, bounds.y, bounds.width and bounds.height.

    I've included an example on your end goal by using bounds. I think it might be easier to use a scale node instead but there is more than one solution for your problem.

    regards
    lieven

  2. 2 Posted by Rafael Santos on 09 Jul, 2013 02:42 PM

    Rafael Santos's Avatar

    Hey, lievenmenschaert

    I'm looking for the API reference where I could find all kinds of cool attributes like the one you used in this solution, can you point me to it?

    Thanks

  3. Frederik De Bleser closed this discussion on 20 Aug, 2013 07:02 PM.

  4. lievenmenschaert re-opened this discussion on 05 Feb, 2014 07:53 PM

  5. Support Staff 3 Posted by lievenmenschaer... on 05 Feb, 2014 07:53 PM

    lievenmenschaert's Avatar

    hi rafael,

    I will change the documentation page for the lookup node this week.
    In advance: lookup can be used to call for a few things:

    1. to call for a header key in a csv file
    2. to call for x,y in a point
    3. to call for bounds (bounds.x, bounds.y, bounds.width, bounds.height) of
    a path or geometry
    4. to call for fill, stroke or contours in a path or geometry.
    5. to call for hue, saturation, brightness in a color
    6. to call for red, green, blue in a color

    regards,

    lieven

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

22 Feb, 2024 05:51 AM
22 Feb, 2024 01:11 AM
21 Feb, 2024 05:27 PM
21 Feb, 2024 04:49 PM
16 Feb, 2024 05:24 PM

 

06 Feb, 2024 04:45 AM
19 Jan, 2024 09:50 AM
13 Jan, 2024 03:47 AM
05 Jan, 2024 05:10 PM
05 Jan, 2024 04:54 PM
04 Jan, 2024 11:49 PM