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

how to use the generated_surface_scripts.py? #103

Closed
chongxian opened this issue Jul 14, 2023 · 1 comment
Closed

how to use the generated_surface_scripts.py? #103

chongxian opened this issue Jul 14, 2023 · 1 comment

Comments

@chongxian
Copy link

Hello, I have an problem about the node_transpiler,when I create a blend file only include geometry node, and I use the dev_script.py to convert node-graphs to python code, but noly get the generated_surface_scripts.py file. how to use the generated_surface_scripts.py and get some information like Figure.3 in your paper(eg. has some parameters like desinty?), could your kindly to teach me?
image
image

@araistrick
Copy link
Contributor

Hello,

To get randomized values included in the Python code, you can give any Value node an annotated name like 'Density ~ U(5,20)' and a corresponding np.random call should appear in the Python. It won't be quite the format shown - the code in the figure is somewhat compacted and illustrative.

If you want to run the genwrated_surface_script.py, just open it up in the blender scripting panel, select some object (like the default cube etc) to apply the geonodes ontop of, then click play to run the script in the UI. Or, you can look at some of our code examples like flower.py or simple_greenery.py to see what it looks like running headless

araistrick added a commit that referenced this issue Apr 25, 2024
* Full Scene Exporter

* Regex Tweaks for Integration Testing

* Refactor and optimize export

* Move exporting README to docs/ folder and add more caveats

* Path handling tweaks for exporter

* Move export to infinigen.tools.export

* Tweak docs

* Add slurm scheduling to generate_individual_assets

* Tweak generate_individual_assets

* Small Refactor

* Glass Export and other features

Glass, Individual object, .obj vertex col export and fixes UV overrwrite

* Add --export option to generate_individual_assets, use a slurm job array per factory not for the whole set

* Add docs on generating & exporting individual assets

* Export Optimizations and Bugfixes

* Remove Unused Args

* Typo / import fixes

* Add --export option to generate_individual_assets, use a slurm job array per factory not for the whole set

* Fix kwargs

---------

Co-authored-by: Alexander Raistrick <[email protected]>
araistrick added a commit that referenced this issue May 25, 2024
* Full Scene Exporter

* Regex Tweaks for Integration Testing

* Refactor and optimize export

* Move exporting README to docs/ folder and add more caveats

* Path handling tweaks for exporter

* Move export to infinigen.tools.export

* Tweak docs

* Add slurm scheduling to generate_individual_assets

* Tweak generate_individual_assets

* Small Refactor

* Glass Export and other features

Glass, Individual object, .obj vertex col export and fixes UV overrwrite

* Add --export option to generate_individual_assets, use a slurm job array per factory not for the whole set

* Add docs on generating & exporting individual assets

* Export Optimizations and Bugfixes

* Remove Unused Args

* Typo / import fixes

* Add --export option to generate_individual_assets, use a slurm job array per factory not for the whole set

* Fix kwargs

---------

Co-authored-by: Alexander Raistrick <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants