Announcement

Collapse
No announcement yet.

Phoenix Fluid settings overlayed in TyPreview - possible?

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

  • Phoenix Fluid settings overlayed in TyPreview - possible?

    Hi.
    I would like to overlay Phoenix fd liquid simulation settings in my tyPreview previews in order to keep track of my rnd versions, which probably can be done via maxscript string input box.
    I'd like to include scene scale, voxel size, stepr per frame, time scale, default viscosity, surface tension strenght, droplet formation, droplet radius.
    Possible? How would one go about doing it?

    Thanks!
    Last edited by pikok; 04-07-2024, 03:40 PM.

  • #2
    Hey,

    You can add some commands in the tyPreview's Maxscript string box and it will work.

    It can look something like this, where the last line just adds all of the variables together with some space between the strings:

    SN ="Simulator Name: " + $PhoenixFDLiquid001.name as string
    SS = "Scene Scale: " + $PhoenixFDLiquid001.scenescale as string
    VS = "Voxel Size: " + $PhoenixFDLiquid001.cellsz as string
    SN+" "+ SS + " "+ VS​


    You just need to substitute the name of the simulator PhoenixFDLiquid001 with the name of your Phoenix simulator and after the . add the maxscript name of the Phoenix parameter you want to show.

    The maxscript name of each function you're interested in can be found in the docs in the form of italic text right next to each option name here - https://docs.chaos.com/display/PHX4MAX/Liquid+Simulator

    For example here is an excerpt from the docs where I have bolded the maxscript name for the Default viscosity

    Default Viscosity | lqvisc – Determines the default viscosity of the liquid.

    In case you wish to add this to the example above it will be something like this

    DefVisosity = "Default Viscosity: " + ​PhoenixFDLiquid001​.lqvisc​ as string
    Georgi Zhekov
    Phoenix Product Manager
    Chaos

    Comment


    • #3
      That's perfect. I'll check this out ASAP! Thanks!

      Comment

      Working...
      X