How to get individual RGB channels from node with API?

How to get individual RGB channels from node with API?

AaronWPowell
Enthusiast Enthusiast
324 Views
1 Reply
Message 1 of 2

How to get individual RGB channels from node with API?

AaronWPowell
Enthusiast
Enthusiast

For example, if I have a curvature node, from what I can tell it only exports the RGB output when you link it to another node. But what if I want JUST the R channel (for convex data), or the G channel (for concave)? Do I need an `rgb_to_float` node, or is there another way to link the curvature node to the graph so I get the channel I want?

0 Likes
Accepted solutions (1)
325 Views
1 Reply
Reply (1)
Message 2 of 2

AaronWPowell
Enthusiast
Enthusiast
Accepted solution

Of course, I figured it out after I posted. I didn't realize this before, but I should use the `AiNodeLinkOutput()` command to specificy the channel I want. Will test to confirm later.

0 Likes