Community
Maya Forum
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

XGen Expressions, referencing local variables from the same modifier in a different expression

0 REPLIES 0
Reply
Message 1 of 1
giandosopaolo
254 Views, 0 Replies

XGen Expressions, referencing local variables from the same modifier in a different expression

Hi all

I have a question on XGen expressions

I wanted to ask: let's say that I have a modifier, like Noise.

 

Let's  say I create an expression in one of the attributes, like Frequency, which generates, among other things, a widget slider from 0 to 100 called something like White Hair Percentage.

$whiteHairPercentage=25.0; #0.0,100.0

Can I now create a new different expression on another attribute of the same Noise Modifier, like Magnitude, which uses the value of White Hair Percentage in its calculations? 

Basically I want to create something similar to the stray() function which returns TRUE for a portion only of the hairs, but that works only inside the current modifier.

How can I do that?

Thanks

PS: @Michael_Todd if you have any wisdom to impart I'll be super grateful.

Labels (3)
0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report