Is there a way to know the source guide curve index for each strand after applying "Multiplier" operator?

 
 
 
Posted by:2kgnovIS
Data created:10 December

We are trying to find a way to consistantly store per strand data about the index / id of the source guide curve (in other word, the closest guide curve to the each hair strand)

So far, we tried to use stand group, and the pymel command "OxGetGuideDependency" from the following page:

https://ephere.com/plugins/autodesk/maya/ornatrix/docs/4/MEL_and_PyMEL_Reference.html#Per-Strand-Functions

 

The problem is, neither of them is able to deal with the hair generated from "Multiplier" operator, the hair from "Multiplier" would be added to one single strand group instead. (In screenshot1 shows the desired strand group using "HairFromGuides", the screenshot2 shows the false strand group using "Multiplier")

Does anyone know is there a built-in method to store the source guide curve index in each downstream strand curve in general?

 

Thank you


Attached Files:

>strand_group.PNG (72153 bytes), >strand_hair_multiplier.PNG (89051 bytes),

Do you want the duplicated strands to belong to the same strand group as the original guide? 
I think what you see in image "strand_hair_multiplier.PNG" happens because the Multiplier node will output the duplicated guides or strands to the strand group defined in the "Output Strand Group" parameter.
We may need to add a new option to allow inheriting the strand groups of the source guides. Is that what you need?

Jeordanis Figuereo (Product Designer. EPHERE Inc.)

Hi Jeordanis, Thanks for your reply,

"Allow inheriting the strand groups for multiplier operator" sounds like a great feature to have!

Though at the same time, since what we hope to achieve is to track the source guide curve id for each hair strand. we wonder does Ornatrix directly store that information for each strand? (that would be a more direct method for us than setting up the "strand group")

So, for every duplicate, you want the ID of its source guide?

Ornatrix does not have this feature but maybe I can offer an alternative.

How are you planning to use this data? 

Jeordanis Figuereo (Product Designer. EPHERE Inc.)

I see, generally what we hope to achieve is a more direct way to look for the closest source guide curve index for each strand with the help of Ormatrix built-in features. (otherwise we need to compare distance between each coordinate of hair strand which is more time consuming)

The pymel command "OxGetGuideDependency" is almost perfect for our use, but it will crash Maya when the final hair is merely generated from "multiplier" operator.

The solution you mentioned above: <span>"Allow inheriting the strand groups for multiplier operator" could also be a great help for our use.</span>

<span>Hope that make sense so you could evaluate which approach is easier to develop?</span>

<span>Very appreciate for your help!</span>

Got it. The request to add the new feature to inherit the strand groups is already approve.

We will discuss the best way to implement something to help with this specific case. 

 

Jeordanis Figuereo (Product Designer. EPHERE Inc.)

Thank you! would be excited for the updates!

Hi Jeordanis, can we know do you have an estimate about when this feature would be added?