Giter VIP home page Giter VIP logo

Comments (7)

kfiraberman avatar kfiraberman commented on August 26, 2024 1

We provide a blender script for that operation here.
You can specify within the file the desired data_path (a directory that contains directories of fbx files), then simply run :
blender -b -P fbx2bvh.py
the resulting bvh will appear next to their source fbx files.

from deep-motion-editing.

chrisdukey avatar chrisdukey commented on August 26, 2024 1

Hello ! As I try to convert some fbx to bvh I end up with this error : bpy.ops.export_anim.bvh(filepath=dumppath, File "C:\Program Files\Blender Foundation\Blender 3.4\3.4\scripts\modules\bpy\ops.py", line 113, in __call__ ret = _op_call(self.idname_py(), None, kw) TypeError: Converting py args to operator properties: EXPORT_ANIM_OT_bvh.frame_start expected an int type, not float

Does someone have any idea on how to fix this ? Thanks !

@sammedhi This error is because EXPORT_ANIM_OT_bvh is expecting an integer for the starting frame. You just need to cast your frame_start and frame_end to an int

if action.frame_range[1] > frame_end: frame_end = int(action.frame_range[1]) if action.frame_range[0] < frame_start: frame_start = int(action.frame_range[0])

from deep-motion-editing.

HuntleyZ avatar HuntleyZ commented on August 26, 2024

MotionBuilder may solve your problem. @crissallan

from deep-motion-editing.

ANYMS-A avatar ANYMS-A commented on August 26, 2024

We provide a blender script for that operation here.
You can specify within the file the desired data_path (a directory that contains directories of fbx files), then simply run :
blender -b -P fbx2bvh.py
the resulting bvh will appear next to their source fbx files.

Thank you !

from deep-motion-editing.

chuangchuang-wang avatar chuangchuang-wang commented on August 26, 2024

Who can help me when run blender -b -P fbx2bvh.py caused memory leak

from deep-motion-editing.

sammedhi avatar sammedhi commented on August 26, 2024

Hello !
As I try to convert some fbx to bvh I end up with this error :
bpy.ops.export_anim.bvh(filepath=dumppath, File "C:\Program Files\Blender Foundation\Blender 3.4\3.4\scripts\modules\bpy\ops.py", line 113, in __call__ ret = _op_call(self.idname_py(), None, kw) TypeError: Converting py args to operator properties: EXPORT_ANIM_OT_bvh.frame_start expected an int type, not float

Does someone have any idea on how to fix this ?
Thanks !

from deep-motion-editing.

tshrjn avatar tshrjn commented on August 26, 2024

I think this fbx2bvh.py script only works for animated fbx objects and not for static ones ie as in T-Pose.
Since for static fbx, I get the following error:

Color management: using fallback mode for management
Color management: Error could not find role data role.
Blender 3.0.1
Color management: scene view "Filmic" not found, setting default "Standard".
FBX version: 7400
Traceback (most recent call last):
  File "/home/ubuntu/projects/text2motion/Retarget-Motion/deep-motion-editing/blender_rendering/utils/fbx2bvh.py", line 79, in <module>
    fbx2bvh(data_path, file)
  File "/home/ubuntu/projects/text2motion/Retarget-Motion/deep-motion-editing/blender_rendering/utils/fbx2bvh.py", line 55, in fbx2bvh
    action = bpy.data.actions[-1]
IndexError: bpy_prop_collection[-1]: out of range.

Blender quit

from deep-motion-editing.

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.