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

The addon don't work with Blender 4.0 #34

Open
lynecourtois opened this issue Nov 21, 2023 · 17 comments
Open

The addon don't work with Blender 4.0 #34

lynecourtois opened this issue Nov 21, 2023 · 17 comments

Comments

@lynecourtois
Copy link

Hello !
I have changed my blender version to 4.0 and it doesn't work any more. It gives me this error :
Capture d'écran 2023-11-21 094321

Thanks in advance for your help!

@ryankingart
Copy link

Hello. This is happening to me as well. The addon doesn't work in Blender 4.0. If this can be fixed, I'd really appreciate it. Thanks!

@catafest
Copy link

nothing, tested and not work on version 4.1 ...
maybe he should archive this project and switch it to discontinued ...

Python: Traceback (most recent call last): File "C:\Users\catafest\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\shortcut_VUr-master\scv_op.py", line 54, in invoke self.draw_util.create_batches(context, self.mouse_input) File "C:\Users\catafest\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\shortcut_VUr-master\scv_draw_util.py", line 44, in create_batches self.shader = gpu.shader.from_builtin('2D_UNIFORM_COLOR') ValueError: expected a string in ('FLAT_COLOR', 'IMAGE', 'IMAGE_COLOR', 'SMOOTH_COLOR', 'UNIFORM_COLOR', 'POLYLINE_FLAT_COLOR', 'POLYLINE_SMOOTH_COLOR', 'POLYLINE_UNIFORM_COLOR'), got '2D_UNIFORM_COLOR'

@gchriz
Copy link

gchriz commented Jan 1, 2024

I fixed it to work in Blender 4.0.
Please see my pull request: #35

Until it's merged in here you might want to try my fork: https://github.com/gchriz/shortcut_VUr

@BlenderInferno
Copy link

Thank you gchriz!

@joaozaguini
Copy link

I fixed it to work in Blender 4.0. Please see my pull request: #35

Until it's merged in here you might want to try my fork: https://github.com/gchriz/shortcut_VUr

For some reason, i install and give me an error.
image

@gchriz
Copy link

gchriz commented Jan 26, 2024 via email

@joaozaguini
Copy link

But I downloaded your version and I still have this problem, because this version of yours was made on the 1st of this month. As shown in the screenshots below:
image
image
And it still kept generating errors :(

@gchriz
Copy link

gchriz commented Jan 26, 2024

Yes, the files in your screenshot seem to be the right ones. Which exact version of Blender are you using?

@joaozaguini
Copy link

joaozaguini commented Jan 26, 2024

Okay, now it works. Basically I threw the files inside it into the addons folder in scripts instead of installing the .zip directly from the Blender panel. For some reason this worked...

@gchriz
Copy link

gchriz commented Jan 26, 2024

It seems one need to restart Blender after installing the fixed version over the original one.
Otherwise the old version remains in Blenders memory and still fails.

Worth reading: https://blender.stackexchange.com/questions/2691/is-there-a-way-to-restart-a-modified-addon#2692

@hopezh
Copy link

hopezh commented Feb 15, 2024

I tried to add the unzipped folder directly into C:\Users\USER\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons, but it still produces the following error:

2024-02-15 13 49 20

@gchriz
Copy link

gchriz commented Feb 15, 2024

Did you really use the fixed version (https://github.com/gchriz/shortcut_VUr)?
And did you restart Blender after installing it?

@hopezh
Copy link

hopezh commented Feb 15, 2024

Did you really use the fixed version (https://github.com/gchriz/shortcut_VUr)? And did you restart Blender after installing it?

Yes, the fixed version works well after installing from add-ons. Thanks.

@Rus-Abd
Copy link

Rus-Abd commented Feb 20, 2024

Did you really use the fixed version (https://github.com/gchriz/shortcut_VUr)? And did you restart Blender after installing it?

This worked for me,

@christian66-gif
Copy link

christian66-gif commented Mar 26, 2024

Hello... Works correctly in Blender 4.2.0 and in UpBGE 0.42.0 ... with the correction of gchriz .

  • also works with Blender 4.3.0
    many thanks ;)

@rickygai
Copy link

Blender 4.1.1
Shortcut VUr by Jayanam 0.9.2.0

It is confirmed after installed the fixed version, you have to restart Blender then there is no Python error messages anymore.

Thanks again.

@Elucidation
Copy link

Thanks @gchriz your fork works for me with the current Blender 4.0

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