Community
3ds Max Programming
Welcome to Autodesk’s 3ds Max Forums. Share your knowledge, ask questions, and explore popular 3ds Max SDK, Maxscript and Python topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Wiring OSL output nodes

1 REPLY 1
SOLVED
Reply
Message 1 of 2
andres.hernandezB63FL
241 Views, 1 Reply

Wiring OSL output nodes

Hi everyone!
I'm very much stuck with this one so I was wondering if someone could give me a hand. 
I have created two OSL nodes:

idOSL.OSLpath = (getdir #maxroot) + "/OSL/" + "GetMtlID.osl"
mapOSL.OSLpath = (getdir #maxroot) + "/OSL/" + "Float1ofN.osl"

I need to connect to the mapOSL(Float1ofN) index input, the index output of the idOSL(GetMtlID), but I can't find a way to access to the specific out since the GetMtlID has 2 outputs (color and index)
I really appreciate any help. 
Thanks a lot

Labels (1)
1 REPLY 1
Message 2 of 2

I found the solution. If anyone is stuck with the same, you need to use the texture map "MultiOutputChannelTexmapToTexmap ".
So in my case it would be something like this:

outMap = MultiOutputChannelTexmapToTexmap sourceMap:idOSL outputChannelIndex:2
mapOSL.index_map = outMap 

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

Post to forums  

Autodesk Design & Make Report