Announcement

Collapse
No announcement yet.

VRayVolumeGrid load preset, change chan mapping with maxscript

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

  • VRayVolumeGrid load preset, change chan mapping with maxscript

    Hi,

    Is it possible to load a VRayVolumeGrid render preset through maxscript? And change the 3P channel mapping? I want to create a grid from scratch and load it with a preset.

    Thanks!
    Rens
    Rens Heeren
    Generalist
    WEBSITE - IMDB - LINKEDIN - OSL SHADERS

  • #2
    Hello Rens,

    Currently there's no way to load render presets form a file using MAXScript, we can surely add it!
    I'll post here when we have it in the nightly builds.

    About the mappings:
    ll the mappings are specified by a single string.This string is just s sequence of <channel-number-in-phoenix>,<channel-name-form-cache-file>;
    For example if you have a VDB file with "density", and "temp" channels and you want to map them to Smoke, and Temperature respectively the mapping string would be:
    "1,temp;2,density;" (The order doesn't matter.)

    The channel numbers are:

    Temperature - 1
    Smoke - 2
    Velocity X - 4
    Velocity Y - 5
    Velocity Z - 7
    Color R - 8
    Color G - 9
    Color B - 10
    Fuel - 11

    You can check how we compose them by printing the "$.usrchmap" parameter.

    If you have any questions don't hesitate to ask

    Cheers,
    Kostadin

    Comment


    • #3
      Thank you Kostadin! This helps, I'll look into it, and yes it would be great if it could be added.
      Can I write to .usrchmap as well?
      You earned yourself a Like! Haha
      Rens Heeren
      Generalist
      WEBSITE - IMDB - LINKEDIN - OSL SHADERS

      Comment


      • #4
        HI Kostadin

        Can we please implement option to load/save color/opacity gradients from file/preset in the volumetric render settings? Recenly i did a battlefield scene with 50 or so volumegrids and it`s a nightmare to manage. In current form the render presets will load gradients but they will also change the render settings(step% etc) which most of the time you don`t want to. So having option just for gradients separately will improve the situation.

        Thank you
        Noemotion.net - www.noemotion.net

        Peter Sanitra - www.psanitra.com

        Noemotionhdrs.net - www.noemotionhdrs.net

        Comment


        • #5
          "Can I write to .usrchmap as well?"
          Yes, just follow the 'scheme.

          "Can we please implement option to load/save color/opacity gradients from file/preset in the volumetric render settings? "
          We have something on our minds about this, we probably should bump it's priority.

          Comment


          • #6
            Hello,

            The MAXScript function should be in the latest nightlies

            You can call it like so:

            A_LoadRenderPreset (getnodebyname "PhoenixFDFire001") "D:\\myPreset.tpr"
            A_LoadRenderPreset (getnodebyname "PhoenixFDFire001") "$(dir)\\myPreset.tpr" where "$(dir)" is the current scene directory.

            Hope that will do the job ^_^

            Comment


            • #7
              Awesome, thank you! : )
              Rens Heeren
              Generalist
              WEBSITE - IMDB - LINKEDIN - OSL SHADERS

              Comment

              Working...
              X