Code Monkey home page Code Monkey logo

Comments (4)

Mwni avatar Mwni commented on August 14, 2024

Perhaps a simple type cast would suffice:

bpy.ops.nla.bake(

bpy.ops.nla.bake(
	frame_start=int(min(keyframes)),
	frame_end=int(max(keyframes)),
	step=s.bake_step,
	visual_keying=True,
	use_current_action=True,
	bake_types={'POSE'},
	only_selected=False
)

from blender-animation-retargeting.

Andrej730 avatar Andrej730 commented on August 14, 2024

Met the same issue at 3.1 - keyframe id is float and we need to cast it to int to make it work.
Not sure if it's actually float like "1.1" or just "1.0" and if it's important.

from blender-animation-retargeting.

Mwni avatar Mwni commented on August 14, 2024

I did not have time to dig into this, but it appears there was some code change from blender 3.0 to 3.1 that made this bake method stricter. I pushed a small fix to this repo: 042d633

from blender-animation-retargeting.

GlitchyPSIX avatar GlitchyPSIX commented on August 14, 2024

You missed one!

from blender-animation-retargeting.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.