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

Smooth tool not working on blender 3.1. #52

Open
PaulsonH opened this issue Mar 10, 2022 · 10 comments
Open

Smooth tool not working on blender 3.1. #52

PaulsonH opened this issue Mar 10, 2022 · 10 comments

Comments

@PaulsonH
Copy link

location: :-1
Error: Python: Traceback (most recent call last):
File "C:\Users\74091\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\PolyQuilt\pq_operator.py", line 172, in modal
raise e
File "C:\Users\74091\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\PolyQuilt\pq_operator.py", line 168, in modal
val = self.update( context, event)
File "C:\Users\74091\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\PolyQuilt\pq_operator.py", line 205, in update
ret = self.currentSubTool.Update(context, event)
File "C:\Users\74091\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\PolyQuilt\subtools\subtool.py", line 97, in Update
ret = subTool.Update(context , event)
File "C:\Users\74091\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\PolyQuilt\subtools\subtool.py", line 116, in Update
ret = self.OnUpdate(context,event)
File "C:\Users\74091\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\PolyQuilt\subtools\subtool_brush_relax.py", line 58, in OnUpdate
self.DoRelax( context ,self.mouse_pos )
File "C:\Users\74091\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\PolyQuilt\subtools\subtool_brush_relax.py", line 147, in DoRelax
coords = self.CollectVerts( context, coord )
File "C:\Users\74091\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\PolyQuilt\subtools\subtool_brush_relax.py", line 93, in CollectVerts
bpy.ops.view3d.select_circle( x = coord.x , y = coord.y , radius = radius , wait_for_input=False, mode='SET' )
File "I:\Program Files\Blender Foundation\Blender 3.1\3.1\scripts\modules\bpy\ops.py", line 132, in call
ret = _op_call(self.idname_py(), None, kw)
TypeError: Converting py args to operator properties: VIEW3D_OT_select_circle.x expected an int type, not float

location: :-1

@PhantomFighter
Copy link

Confirming, it is broken for me in Blender 3.1

@Zodiac98177
Copy link

Not working in my case as well in 3.1

@robotkurva
Copy link

me to(

@arynickson
Copy link

Same here :(

@abychan
Copy link

abychan commented Apr 9, 2022

For anyone else with this problem, Blender 3.1 updated python from 3.9 to 3.10, which removed implicit conversion of floats to ints. For a quick fix for the relaxation tool go to PolyQuilt\Subtools\subtool_brush_relax.py and change line 93 from
bpy.ops.view3d.select_circle( x = coord.x , y = coord.y , radius = radius , wait_for_input=False, mode='SET' )
to
bpy.ops.view3d.select_circle( x = int(coord.x), y = int(coord.y) , radius = int(radius) , wait_for_input=False, mode='SET' )
and restart blender. That fixed it for me.

@robotkurva
Copy link

For anyone else with this problem, Blender 3.1 updated python from 3.9 to 3.10, which removed implicit conversion of floats to ints. For a quick fix for the relaxation tool go to PolyQuilt\Subtools\subtool_brush_relax.py and change line 93 from bpy.ops.view3d.select_circle( x = coord.x , y = coord.y , radius = radius , wait_for_input=False, mode='SET' ) to bpy.ops.view3d.select_circle( x = int(coord.x), y = int(coord.y) , radius = int(radius) , wait_for_input=False, mode='SET' ) and restart blender. That fixed it for me.

Meeeeeen)) you are a god!

@PhantomFighter
Copy link

PhantomFighter commented Apr 10, 2022

For anyone else with this problem, Blender 3.1 updated python from 3.9 to 3.10, which removed implicit conversion of floats to ints. For a quick fix...

Cheers, that did it.

@renight0
Copy link

For anyone else with this problem, Blender 3.1 updated python from 3.9 to 3.10, which removed implicit conversion of floats to ints. For a quick fix for the relaxation tool go to PolyQuilt\Subtools\subtool_brush_relax.py and change line 93 from bpy.ops.view3d.select_circle( x = coord.x , y = coord.y , radius = radius , wait_for_input=False, mode='SET' ) to bpy.ops.view3d.select_circle( x = int(coord.x), y = int(coord.y) , radius = int(radius) , wait_for_input=False, mode='SET' ) and restart blender. That fixed it for me.

This worked!! thank you so much!

@mayalhc
Copy link

mayalhc commented Aug 24, 2022

wow...thank you...

@yasu44key
Copy link

For anyone else with this problem, Blender 3.1 updated python from 3.9 to 3.10, which removed implicit conversion of floats to ints. For a quick fix for the relaxation tool go to PolyQuilt\Subtools\subtool_brush_relax.py and change line 93 from bpy.ops.view3d.select_circle( x = coord.x , y = coord.y , radius = radius , wait_for_input=False, mode='SET' ) to bpy.ops.view3d.select_circle( x = int(coord.x), y = int(coord.y) , radius = int(radius) , wait_for_input=False, mode='SET' ) and restart blender. That fixed it for me.

Thank you. By correcting the following as you pointed out, we were able to handle brush resizing.
---\PolyQuilt\subtools\subtool_brush_size.py
line 58
bpy.context.window.cursor_warp( self.PressPrevPos.x , self.PressPrevPos.y ) to
bpy.context.window.cursor_warp( int(self.PressPrevPos.x) , int(self.PressPrevPos.y) )

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

9 participants