Apply Color Node

john's Avatar

john

22 Nov, 2022 09:55 AM

Attached is the latest addition to my node library: apply_color.

Apply_color simply takes a path or shape and recolors it using the properties of a reference object. Those properties are:

  • Fill Color
  • Stroke Color
  • Stroke Width

The node compensates for Nodebox bugs that can fail to lookup colors under certain conditions. If no reference object is supplied, it will assign a black stroke of width one and make the interior transparent (alpha 0).

The primary use for this node is to restore the original color of objects which have been transformed by other nodes (e.g. compound). I found myself needing to do this again and again, so finally made a node to do it for me.

A simple node, but, I hope, a useful one.

Enjoy! Apply_color will be included in Cartan Node Library 3.1 - which will be released mere moments from now!

John

Reply to this discussion

Internal reply

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

Attaching KB article:

»

Already uploaded files

  • apply_color_screenshot.png 302 KB
  • apply_color_node_demo.ndbx.zip 3.39 KB

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

10 Sep, 2024 03:41 AM
09 Sep, 2024 02:15 PM
07 Sep, 2024 05:16 AM
05 Sep, 2024 02:21 AM
04 Sep, 2024 05:01 AM

 

03 Sep, 2024 10:07 AM
02 Sep, 2024 05:56 AM
31 Aug, 2024 11:07 PM
27 Aug, 2024 12:08 AM
26 Aug, 2024 01:02 PM
26 Aug, 2024 07:18 AM