-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Seed + config #54
Comments
@peteashworth I'm not the maintainer but you should be able to generate a config w/ only the details that you know, and the rest should be randomized.
Edit: I missed the point about the seed, though. My apologies. |
If I'm not mistaken you should be able to do something like this: const initialConfig = genConfig("[email protected]")
const config = genConfig({ ...initialConfig, sex: "woman" }) |
Thank you @jzombie ; that worked perfectly. |
Almost; ran it through some tests and found out there is more to selecting the sex as it drives some of the other styling props such as hair style. Which is the need to be able to set some of the props before generating the seed. Short term; ill manually adjust but just a feature idea.
|
Thank you @jzombie and @peteashworth |
Can you drop in your manual config for female + seed? |
quick question, can we make an avatar config save in the database for us to keep that for a user ? |
@swapnil-sudhir Yes the config object returned by getConfig can be saved to a database and retrieved later to be passed to the Avatar component |
Is there currently a solution to pass in sex + seed. I want to create an avatar off a unique seed but I know the sex. That way the avatar will be sex proper (as I have that info) but then use unique id to generate the other appearance props.
The text was updated successfully, but these errors were encountered: