digicreatures / rigacar

Blender addon to generate rig for cars
GNU General Public License v3.0
421 stars 60 forks source link

Bake car steering and rotation not working on 3.1 #63

Closed Alemandarino closed 2 years ago

Alemandarino commented 2 years ago

Bake car steering and rotation are not working on new version 3.1 of blender,

Python: Traceback (most recent call last): File "C:\Users\Start\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\rigacar\bake_operators.py", line 163, in invoke self.frame_start, self.frame_end = action.frame_range File "C:\Program Files\Blender Foundation\Blender 3.1\3.1\scripts\modules\bpy_types.py", line 778, in setattr return setattr(properties, attr, value) TypeError: bpy_struct: item.attr = val: ANIM_OT_car_steering_bake.frame_start expected an int type, not float

location: :-1

Any solution? Thx

Reubencfernandes commented 2 years ago

im using blender version 3.1 and rigcar v7 and i get the same error image

gridsquat commented 2 years ago

I changed my copy of the code around line 163 in the bake_operators.py file to look like this and it seemed to fix the problem:-

    self.frame_start, self.frame_end = int(action.frame_range)

to

    self.frame_start = int(action.frame_range[0])
    self.frame_end = int(action.frame_range[1])

Sorry, I am new to GitHub so don't know how to properly submit a code change...

Reubencfernandes commented 2 years ago

I changed my copy of the code around line 163 in the bake_operators.py file to look like this and it seemed to fix the problem:-

    self.frame_start, self.frame_end = int(action.frame_range)

to

    self.frame_start = int(action.frame_range[0])
    self.frame_end = int(action.frame_range[1])

Sorry, I am new to GitHub so don't know how to properly submit a code change...

is that the only change needed or ?

Reubencfernandes commented 2 years ago

please note this is happening because the start frame and end frame are set to zero after changing the frame numbers it worked

image

spoonless commented 2 years ago

rigacar v7.1 is out to fix this issue. thanks guys for reporting it.

BRO408 commented 2 years ago

Bake car steering and rotation are not working on new version 3.1 of blender,

Python: Traceback (most recent call last): File "C:\Users\Start\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\rigacar\bake_operators.py", line 163, in invoke self.frame_start, self.frame_end = action.frame_range File "C:\Program Files\Blender Foundation\Blender 3.1\3.1\scripts\modules\bpy_types.py", line 778, in setattr return setattr(properties, attr, value) TypeError: bpy_struct: item.attr = val: ANIM_OT_car_steering_bake.frame_start expected an int type, not float

location: :-1

Any solution? Thx

Im also stuck by this problem i thought it was my mistake but I did it properly but still its not working......