Community
Arnold General Rendering Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Access individual channels on an image texture node

2 REPLIES 2
Reply
Message 1 of 3
AaronWPowell
181 Views, 2 Replies

Access individual channels on an image texture node

Is there an easy way to access individual channels in an AiImage node? For example, I'd like to be able to individually grab r, g, b, or a channels to use in other nodes, similar to selecting the "single channel" checkbox in the UI. I have a feeling I'd have to use the AtTexture API to do this but I can't find a good example to pull from. Any tips would be appreciated!

Tags (2)
Labels (2)
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: AaronWPowell

You have Start Channel in aiImage Node
0 = default, then you can put (1 or 2 or 3) to extract any channel
another way is to use aiShuffle Node
attrstartchannel.jpgstartchannel1.jpg

Message 3 of 3
AaronWPowell
in reply to: Anonymous

This is pretty straightforward. Thanks! Is something like the AiShuffle node the recommended way to extract channels when using the API directly with C++ or Python?

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report