animaide icon indicating copy to clipboard operation
animaide copied to clipboard

this error is happening when i try to shoot the mask option

Open LeozinhoO12 opened this issue 1 year ago • 1 comments

Python: Traceback (most recent call last): File "C:\Users\megag\AppData\Roaming\Blender Foundation\Blender\3.2\scripts\addons\animaide-master\anim_offset\ops.py", line 311, in modal scene.frame_current = (end + start)/2 TypeError: bpy_struct: item.attr = val: Scene.frame_current expected an int type, not float

LeozinhoO12 avatar Sep 04 '22 20:09 LeozinhoO12

Hi,

The issue is caused because, as of blender 3.1, Python was upgraded to 3.10, in which this version no longer allows implicit conversion between floats and ints. More info here

The way to solve this issue is instead explicitly converting the ints and floats yourself, luckily the fix is very simple;

Go to %AppData%\Roaming\Blender Foundation\Blender\3.2\scripts\addons\animaide-master\anim_offset\ops.py Then in line 311, find this:

scene.frame_current = (end + start)/2

and change it to this:

scene.frame_current = int((end + start)/2)

Hopefully this helps

abrasic avatar Sep 11 '22 18:09 abrasic