Generate Guide Data - Using Channel Data in Expression

 
 
 
Posted by:fexman
Data created:10 August 2019

Hi,

I use Guide Data to drive Hair density. Right now I'm using the Length to generate that Data in the "Generate Guide Data" modifier.
This lets me place more Hairs on extremely short haired regions.

As I'm also using a mask texture to make certain regions furless I'll need to multiply this grey map with already generated Guide Data.

Reading the documentation this should be as easy as "sc_MyChannel1 * texture($u, $v, 0)"
https://ephere.com/plugins/autodesk/max/ornatrix/docs/6/Generate_Guide_Data_Modifier.html

I have to assume the variable name from the names listed in the Channel Selection (see below) as the Expression Editor refuses to open in both Max2014 and Max2017 (according to documentation it should at least open in Max2017) And I appear to have no option of entering Channel names for new Channels.

 

Unfortunately the expression "sc_MyChannel1" fails to retrieve the data. I was able to verify that entering any other expression into the expression field works as expected.

  • entering "texture($u, $v, 0)" results in the same output as using the Texture Map directly (as expected)
  • entering "texture($u, $v, 0) * 0.1" scales the output of the Texture Map by (as expected)
  • entering "texture($u, $v, 0) * sc_MyChannel1" seems to result in the same output as entering "1.0"
    which I assume is a default when the expression  is invalid.
  • entering "sc_MyChannel1" does not result in the same output as using "My Channel1" either
    again the output appears to be the same as 1.0

This leads me to believe that sc_MyChannel1 is not a valid way to refer to the Channel in question. I have tried a few variations on this but fail to get any results.

If I could get a tip on how to reference Channel "Root (2): My Channel1" inside the expression that would awesome.