Hi there! First of all, thanks for your time!
I am having some trouble ramdomly choosing a texture procedurally. If I do it the efficient way, via OSL, sampling it inside, or just generating the texture names ramdomly, the render takes around 60 - 100x more, no joking. (even pre-generating tx files).
If I do it via aiSwitch, it renders normally, but my shader tree grows exponentially and is super hard to manage, changing textures, adding or removing and what not (hypershade does not make this easy by a long shot).
Using aiSwitch the render takes around 10 seconds, but sampling it inside the osl, or just generating the names in OSL and outputing it to the fileName of aiImage, the render takes around 21 minutes.
Tried the frame number, but I guess that is passed during translation time not render time, so I cant randomize the textures.
Thanks a lot!