Skip to content
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

Add random number generator to any arbitrary parameter. #29

Open
dpm316 opened this issue Jan 6, 2025 · 1 comment
Open

Add random number generator to any arbitrary parameter. #29

dpm316 opened this issue Jan 6, 2025 · 1 comment
Labels
enhancement New feature or request Feature Request A feature that you want added

Comments

@dpm316
Copy link

dpm316 commented Jan 6, 2025

More of a question. I'm trying to add the randomize feature (where it shows a six-sided die next to the parameter) to the RandomNoise parameter in my workflow. I see a "show_randomise_toggle": true in the default workflow example, but my converted workflows don't have this same format, so I'm not sure how to tag a parameter as random. Thanks!

snippets from my workflow:

  {
    "node_id": "25",
    "input_name_in_node": "noise_seed",
    "title": "noise_seed"
  },

"25": {
"inputs": {
"noise_seed": "4592387562394"
},
"class_type": "RandomNoise",
"_meta": {
"title": "RandomNoise"
}
},

@dpm316 dpm316 added enhancement New feature or request Feature Request A feature that you want added labels Jan 6, 2025
@dpm316
Copy link
Author

dpm316 commented Jan 13, 2025

FYI, I made a simple change to my local copy to get this working for now:

const showRandomiseToggle = inputOptions.input_name_in_node === 'seed';

const showRandomiseToggle = inputOptions.input_name_in_node === 'seed' || inputOptions.input_name_in_node === 'noise_seed';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Feature Request A feature that you want added
Projects
None yet
Development

No branches or pull requests

1 participant