patmo141 / object_alignment

picked points and ICP alignment addon for Blender
GNU General Public License v3.0
63 stars 24 forks source link

Picking points for alignment #22

Open Anna486 opened 4 years ago

Anna486 commented 4 years ago

Hello I've got a problem when I try to pick points for aligment. When I select both the base object an the align object and click on "Align: Picked Points" Button I get this error:

Traceback (most recent call last): File "/home/anna/.config/blender/2.80/scripts/addons/object_alignment-b_280/operators/align_pick_points.py", line 320, in invoke bpy.ops.screen.region_toggle(ctx, region_type='UI') File "/home/anna/Pulpit/blender 2.8/blender-2.80-linux-glibc217-x86_64/2.80/scripts/modules/bpy/ops.py", line 199, in call ret = op_call(self.idname_py(), C_dict, kw, C_exec, C_undo) AttributeError: Calling operator "bpy.ops.screen.region_toggle" error, could not be found

location: :-1 Alignment version 0.2.0, branch 2.80

patmo141 commented 4 years ago

Hi Anna,

Can you confirm which versions of blender you are using with each of these. Also let's split this up into two issues (b_280 branch and 2.79 branch). Please post info from splash screen on your blender version. Thanks!

patmo141 commented 4 years ago

For the blender 2.8x error, region_toggle definitely exists. I think this may be an API blender version issue.

https://docs.blender.org/api/current/bpy.ops.screen.html?highlight=region_toggle#bpy.ops.screen.region_toggle

patmo141 commented 4 years ago

However in version 2.80 of Blender, region_toggle was not in the API yet. https://docs.blender.org/api/2.80/bpy.ops.screen.html?highlight=bpy%20ops%20screen#module-bpy.ops.screen

Can you test out with Blender 2.81 or 2.82. I just put this update in to keep up with the current version of blender API.

Anna486 commented 4 years ago

Hi Patmo, Following your suggestion I've installed Blender 2.82a and the addon works. This is splash screen of 2.80. I used version b_280 branch. Interesting, now I see that I lose base object after clicking "Align:Picked Points"

Zrzut ekranu z 2020-03-25 21-06-38 Zrzut ekranu z 2020-03-25 21-25-00 Zrzut ekranu z 2020-03-25 21-16-38 Zrzut ekranu z 2020-03-25 21-17-34

I'm curious if I do somethig wrong? Anyway, thanks for your answer! Regards, Anna

darkfibre-nl commented 4 years ago

Hello Patrick!

Here's an additional 'bug' report. I've tried using this add-on on the following versions of blender 2.8x:

(v2.81a) - 2.81 (sub 16), branch: master, commit date: 2019-12-04 11:32, hash: rBf1aa4d18d49d (v2.82a) - 2.82 (sub 7), branch: master, commit date: 2020-03-12 05:06, hash: rB375c7dc4caf4 (v2.83 alpha) - 2.83 (sub 11), branch: master, commit date: 2020-03-24 23:23, hash: rB188ccfb0dd67

All return an error when clicking Align: Picked points, so I haven't been able to use it. Is this an user error, or is something amiss in the add-on?

I can't seem to find documentation to help me along, some instructions, however brief, would be greatly appreciated.

v2.81a image

v2.82a image

v2.83 alpha image

patmo141 commented 4 years ago

You are using the wrong branch of the add-on! Make sure you download the b_280 branch

On Fri, Mar 27, 2020, 5:47 AM darkfibre-nl notifications@github.com wrote:

Hello Patrick!

Here's an additional 'bug' report. I've tried using this plug-add-on on the following versions of blender 2.8x:

(v2.81a) - 2.81 (sub 16), branch: master, commit date: 2019-12-04 11:32, hash: rBf1aa4d18d49d (v2.82a) - 2.82 (sub 7), branch: master, commit date: 2020-03-12 05:06, hash: rB375c7dc4caf4 (v2.83 alpha) - 2.83 (sub 11), branch: master, commit date: 2020-03-24 23:23, hash: rB188ccfb0dd67

All return an error when clicking Align: Picked points, so I haven't been able to use it. Is this an user error, or is something amiss in the add-on? I can't seem to find documentation to help me along, some instructions, however brief, would be greatly appreciated.

v2.81a [image: image] https://user-images.githubusercontent.com/8095682/77743174-f24e5500-7017-11ea-9600-27aaf15c9c81.png

v2.82a [image: image] https://user-images.githubusercontent.com/8095682/77743082-d34fc300-7017-11ea-9c2e-3e8cbcd1c193.png

v2.83 alpha [image: image] https://user-images.githubusercontent.com/8095682/77742996-ad2a2300-7017-11ea-863a-06b5973bbe15.png

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/patmo141/object_alignment/issues/22#issuecomment-604909600, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAWIK3ZTNPIJWSNUDFEZI6LRJRY43ANCNFSM4LRIE7OQ .

darkfibre-nl commented 4 years ago

Thanks! Works now!...

(btw: do you accept (new)issues here for feature requests?)

patmo141 commented 4 years ago

Yes just start a new issue

On Fri, Mar 27, 2020, 3:08 PM darkfibre-nl notifications@github.com wrote:

Thanks! Works now!...

(btw: do you accept (new)issues here for feature requests?)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/patmo141/object_alignment/issues/22#issuecomment-605217671, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAWIK33EKXQRART6EFFENR3RJT2S3ANCNFSM4LRIE7OQ .

CADMAN1 commented 3 years ago

Hi Patrick, I can't get the tool to work on any of the versions you have recommended. It always gives me an error. What could I do to fix it? Object aligtment