HairCardGenerator plugin has deprecated/old numpy calls

Greetings,

when using the HairCardGenerator, it requires an older, nowadays obsolete version of numpy - the corrected one uses NumPy 2.2.6.

For now the oirignal uses datatypes like bool8 and api calls like np.product instead of np.prod. I have managed to replace these in files base_txt_atlas.py and variable_txt_atlas.py. The algorithm then looks like working, it just seems like a good idea to replace them in the future versions of UE. I have put the code into the attachment of this request.

It would be awesome if anyone could recheck this plugin and test if it works correctly - for our case, it did.

Updated datatypes and functions:

bool8 -> bool_

np.product -> np.prod

updated_code.zip(4.67 KB)

Steps to Reproduce
Turn on HairCardGenerator plugin

Open up a groom -> go to window -> open cards window

In cards window, add a card asset and click generate hair cards

Select a suitable resolution for testing.

Hi,

Sorry for the late reply. The engineer who is in charged of that part has checked in an update in CL 52062413 if you can see changes in our mainline.

I hope this helps.

/Charles.