How to replace all guides from mesh by curves

 
 
 
Posted by:yasinh
Data created:5 July 2018

I'm probably missing something here but what's the way to replace all mesh guides by custom curves without having to generate hair from curves first? 

Hi,

You could try

Guides from Mesh>Root Distribution> Count : Turn this to the minimum

Edit Guides>Import Curves>Import Multiple

Then you can select the original guides and delete them. (Delete Selected Strands)

What Spiderman suggests is a good idea. Please give it a try.

Jeordanis Figuereo (Product Designer. EPHERE Inc.)

In a test scene similar to that (attached), when i do "Import Multiple" I get this error below, however right after saving the scene it stopped erroring! 

// Error: Ornatrix: Assert failed (9): nurbsCurveFn.getPointAtParam( evalParam, point ): (kInvalidParameter): Cannot find item of required type

Regardless, after deleting mesh guides, it *somewhat* followed the custom curves to some extent, yet after changing distribution type on GuidesFromMesh, not only it reset the groom, but also was I not able to repeat the import/delete process anymore and it gives me this error after doing "Import Multiple". 

// Error: Ornatrix: Assert failed (5): result >= 0

"Delete Selected Strands" stops deleting mesh guides in this case too!

Scene attached. 

 


Attached Files:

>import_bug.ma (264431 bytes),

Were you able to repro this problem? 

Sorry, I didn't get notified of a response.

Once you import the new guides you cannot change the distribution type. That has to do with setting new guides. It is designed to replace anything that existed.

If the guides are not following the imported curves it may have to do with the CV count on the new guides. If you increase the CV count they should follow better.

Yesinh,

Sorry, I forgot this thread.

The error you get when importing curves have ben fixed. About changing GuidesFromMesh distribution type, Peter Parker is right: When you replace the guides created in GuidesFromMesh with external curves, you should not change values in GuidesFromMesh because the new curves don't depent on that operator anymore. Remember that Ornatrix is parametric, if you change settings in a operator at the bottom, the operators of top of it will re-evaluate to reflec those changes.

Jeordanis Figuereo (Product Designer. EPHERE Inc.)