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

22 Nov, 2022 03:21 PM
22 Nov, 2022 10:40 AM
22 Nov, 2022 09:55 AM
20 Nov, 2022 12:06 PM
08 Nov, 2022 10:44 PM

 

05 Nov, 2022 08:40 AM
03 Nov, 2022 09:38 PM
24 Oct, 2022 11:32 AM
06 Oct, 2022 09:07 AM
05 Oct, 2022 02:22 AM
30 Sep, 2022 11:36 PM