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

Bake car steering and rotation not working on 3.1 #63

Closed
Alemandarino opened this issue Mar 12, 2022 · 6 comments
Closed

Bake car steering and rotation not working on 3.1 #63

Alemandarino opened this issue Mar 12, 2022 · 6 comments
Assignees
Labels

Comments

@Alemandarino
Copy link

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
Copy link

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

@gridsquat
Copy link

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
Copy link

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
Copy link

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
Copy link
Member

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

@spoonless spoonless added the bug label Mar 27, 2022
@spoonless spoonless self-assigned this Mar 27, 2022
@BRO408
Copy link

BRO408 commented Sep 12, 2022

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......

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants