VrayColorToBump doesn't allow maxscript access

Hey there. So I have a function that will take any max material and return all submaps associated with that material. See below…

fn sLibGetMapsFromMaxWrapperObject inputMat a =
    (
    matsToProcess = #(inputMat)
    for mat in matsToProcess do
        (
        if mat.numsubs != 0 then
            (
            for i = 1 to mat.numsubs do
                (
                if mat != undefined then
                    (
                    if classof mat == SubAnim then
                        (
                        if superclassof mat.object == textureMap then
                            (
                            if mat.object != undefined then append a mat.object
                            )
                        )
                    append matsToProcess mat
*                    )*
                )
            )
        )
    )

But now say I have a material, and I place a VrayColorToBump in the bump slot, and then place a noise in the map, when I run my script, I get only the VrayColorToBump map in return, not the submap as well. My function seems to work with all maps types except this one vray one. Does VrayColorToBump have full maxscript acess? or am I doing something wrong. Thanks for any help!

- Neil

Thanks for the pointer; will fix it.

Best regards,
Vlado

thanks Vlado!

- Neil

Any update on this? Thanks for any info.

- Neil

Hi,

I think it is not fixed yet, but let me check again the status of this case.

Thanks Tashko!

- Neil

Any new update on this? I’ve written a script to mass assign a node to all VrayTriPlanarTex maps, but it skips all tex maps inside of a vrayColorToBump since there’s no maxscript access to its map slot. Help!

- Neil

This works fine for me - created a VRayMtl material with VRayColor2Bump in the bump slot and Noise texture in it. Running your script correctly returns both the VRayColor2Bump texture and the Noise texture. Should I be using some other way to reproduce the issue?

Best regards,
Vlado

Mine still fails. Could it be a version issue? I’m using max 2016 SP1 and Vray 3.20.03.

- Neil

Yes, the fix is not available in 3.20.03, it will be available in the next service pack.

Awesome, thanks!

- Neil

Fixed in 3.3. Thanks!

- Neil