ImagePaste icon indicating copy to clipboard operation
ImagePaste copied to clipboard

BUG: Trying to paste a image and it prints error

Open KandalintsevGames opened this issue 1 year ago • 4 comments

Describe the bug

I am trying to paste a image in blender and it gives out error, on the older computer it worked perfectly and now it gives out error

Step to reproduce

  1. copy a image in browser
  2. try to paste it
  3. it prints error
  4. press on the error where it´s colored red

Relevant log output

Python: Traceback (most recent call last):
  File "/home/kqndy_6349/.config/blender/4.3/scripts/addons/ImagePaste-main/imagepaste/operators.py", line 188, in execute
    bpy.ops.object.load_reference_image(filepath=image.filepath)
  File "/home/kqndy_6349/Downloads/blender-4.3 (2).1-linux-x64/4.3/scripts/modules/bpy/ops.py", line 109, in __call__
AttributeError: Calling operator "bpy.ops.object.load_reference_image" error, could not be found

Expected behavior

Normally it should just paste image.

Platform

Linux

Platform version

41

Blender version

Other

ImagePaste Version

#53

KandalintsevGames avatar Dec 17 '24 09:12 KandalintsevGames

Looks like you're using Blender 4.3

The operators are renamed so they no longer work (more details https://github.com/b-init/ImagePaste/issues/56#issuecomment-2240921526)

Try using this, it should work for 4.2+ : https://github.com/b-init/ImagePaste/releases/tag/v1.8.2b

williamchange avatar Dec 19 '24 13:12 williamchange

Looks like you're using Blender 4.3

The operators are renamed so they no longer work (more details #56 (comment))

Try using this, it should work for 4.2+ : https://github.com/b-init/ImagePaste/releases/tag/v1.8.2b

Thanks for clarifying, I was running into the same issue. Any idea on when the operator names will be fixed an a new imagepaste will be released? Is it something we can fix ourselves in a few lines/rewrites of the code? Id be willing to theory craft a way of maybe using regex on the entire codebase to do in-place replacement of the code? Let me know if you are interested!

FIREBAT-66 avatar Feb 28 '25 22:02 FIREBAT-66

Looks like you're using Blender 4.3 The operators are renamed so they no longer work (more details #56 (comment)) Try using this, it should work for 4.2+ : https://github.com/b-init/ImagePaste/releases/tag/v1.8.2b

Thanks for clarifying, I was running into the same issue. Any idea on when the operator names will be fixed an a new imagepaste will be released? Is it something we can fix ourselves in a few lines/rewrites of the code? Id be willing to theory craft a way of maybe using regex on the entire codebase to do in-place replacement of the code? Let me know if you are interested!

The latest release / or the file linked in here: #56 should already have the renamed operators (it's just a couple lines so I renamed those manually) so it should work on 4.3:

https://github.com/user-attachments/assets/2fbb4023-c8ab-4524-9ff5-76be699fd07c

williamchange avatar Mar 01 '25 06:03 williamchange

Looks like you're using Blender 4.3 The operators are renamed so they no longer work (more details #56 (comment)) Try using this, it should work for 4.2+ : https://github.com/b-init/ImagePaste/releases/tag/v1.8.2b

Thanks for clarifying, I was running into the same issue. Any idea on when the operator names will be fixed an a new imagepaste will be released? Is it something we can fix ourselves in a few lines/rewrites of the code? Id be willing to theory craft a way of maybe using regex on the entire codebase to do in-place replacement of the code? Let me know if you are interested!

The latest release / or the file linked in here: #56 should already have the renamed operators (it's just a couple lines so I renamed those manually) so it should work on 4.3: test.mp4

Thanks @williamchange, have the changes in thenew file been merged with the main branch of the ImagePaste add on?

FIREBAT-66 avatar Mar 24 '25 21:03 FIREBAT-66