Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

official testing code failed ... #56

Open
pterusgithub opened this issue Sep 2, 2024 · 4 comments
Open

official testing code failed ... #56

pterusgithub opened this issue Sep 2, 2024 · 4 comments

Comments

@pterusgithub
Copy link

Hello,
Wanting to try geometry-script, I started following the documentation. No problems during installation. No worries either for the first demo code.
On the other hand, here is the error message that I get with the following script...
script

from geometry_script import *

@tree("Cube Tree")
def cube_tree():
    return cube(), 5

output

Python: Traceback (most recent call last):
  File "/test.py", line 3, in <module>
  File "/pathto/.config/blender/4.2/scripts/addons/geometry-script-main/api/tree.py", line 152, in build_tree
    result = Type(value=result)
             ^^^^^^^^^^^^^^^^^^
  File "/pathto/.config/blender/4.2/scripts/addons/geometry-script-main/api/types.py", line 57, in __init__
    raise Exception(f"'{value}' cannot be expressed as a node.")
Exception: '{'mesh': <geometry-script-main.api.types.Type object at 0x7e00479e7550>, 'uv_map': <geometry-script-main.api.types.Type object at 0x7e00479ee090>}' cannot be expressed as a node.

Could you direct me to the origin of the problem?
I'm taking this opportunity to find out if you plan to maintain the project in the long term (since blender evolves very quickly...), thank you for your feedback

@pterusgithub
Copy link
Author

pterusgithub commented Sep 2, 2024

resolved !

from geometry_script import *
@tree("Cube Tree")
def cube_tree(size: Vector):
    return cube(size=size).mesh, 5

PS: my second question remains ;-) = Do you plan to maintain the project in the long term (since blender evolves very quickly...)?
thank you for your feedback

@carson-katri
Copy link
Owner

Yeah, it should be fairly low-maintenance since it generates all of the functions from the nodes available in the Blender installation.

@pterusgithub
Copy link
Author

thanks for the feedback,

Do you know if there are other sources to learn how to use it? (discussion forums, sites where you can find script examples???)
I found a few sources including a youtube video but not much more...
Thanks !

@carson-katri
Copy link
Owner

There are guides here: https://carson-katri.github.io/geometry-script/

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants