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

importing to blender 4.0 seems to just give the dots, like it did without the addon. In cycles. #12

Open
Koningsbruggen opened this issue Nov 16, 2023 · 5 comments

Comments

@Koningsbruggen
Copy link

image

@phreax
Copy link

phreax commented Nov 17, 2023

It does not seem to be compatible with some of the API changes in blender 4.0.

I tried to fix it, though some issues I couldn't fix due to poor documentation. Here is my diff with comments so far:

239c239
<         principled_node.inputs["Specular"].default_value = 0
---
>         principled_node.inputs["Specular IOR Level"].default_value = 0
775c775
<             principled_node.inputs["Emission"]
---
>             principled_node.inputs["Emission Color"]
837,839c837,838
<         
<         geo_tree.inputs.new('NodeSocketGeometry', "Geometry")
<         geo_tree.outputs.new('NodeSocketGeometry', "Geometry")
---
>         # geo_tree.inputs.new('NodeSocketGeometry', "Geometry")    # inputs and outputs attributes do not seem to exist anymore. No idea how to create them
>         # geo_tree.outputs.new('NodeSocketGeometry', "Geometry")
850c849,850
<         random_value_node.inputs["Probability"].default_value = min(RECOMMENDED_MAX_GAUSSIANS / N, 1)
---
>         random_value_node.inputs[6].default_value = min(RECOMMENDED_MAX_GAUSSIANS / N, 1)  # Workaround. access via Probability key is not working, even though it exists. Probably a bug
>         # random_value_node.inputs["Probability"].default_value = min(RECOMMENDED_MAX_GAUSSIANS / N, 1)

@jkl3848
Copy link

jkl3848 commented Nov 29, 2023

I ran into this same issue. Hoping it gets resolved soon cause I would really love to use this.

@Wladefant
Copy link

yeah me too, see the pull requests too, but there are still some issues, if someone got it running please create a pull request

@Dehaoq
Copy link

Dehaoq commented Dec 8, 2023

Guys, you can change to the old version of Blender; just donot use 4.0
https://download.blender.org/release/Blender3.3/

@Wladefant
Copy link

it should work now, blender 4.0 support was added

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

5 participants