Announcement

Collapse
No announcement yet.

VrayColorToBump doesn't allow maxscript access

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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[i] != undefined then
    (
    if classof mat[i] == SubAnim then
    (
    if superclassof mat[i].object == textureMap then
    (
    if mat[i].object != undefined then append a mat[i].object
    )
    )
    append matsToProcess mat[i]
    )
    )
    )
    )
    )

    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

  • #2
    Thanks for the pointer; will fix it.

    Best regards,
    Vlado
    I only act like I know everything, Rogers.

    Comment


    • #3
      thanks Vlado!

      - Neil

      Comment


      • #4
        Any update on this? Thanks for any info.

        - Neil

        Comment


        • #5
          Originally posted by soulburn3d View Post
          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.
          Tashko Zashev | chaos.com
          Chaos Support Representative | contact us

          Comment


          • #6
            Thanks Tashko!

            - Neil

            Comment


            • #7
              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

              Comment


              • #8
                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
                Attached Files
                I only act like I know everything, Rogers.

                Comment


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

                  - Neil
                  Attached Files

                  Comment


                  • #10
                    Yes, the fix is not available in 3.20.03, it will be available in the next service pack.
                    Svetlozar Draganov | Senior Manager 3D Support | contact us
                    Chaos & Enscape & Cylindo are now one!

                    Comment


                    • #11
                      Originally posted by svetlozar.draganov View Post
                      Yes, the fix is not available in 3.20.03, it will be available in the next service pack.
                      Awesome, thanks!

                      - Neil

                      Comment


                      • #12
                        Fixed in 3.3. Thanks!

                        - Neil

                        Comment

                        Working...
                        X