I'm checking ROP GLTF Character Output [www.sidefx.com] and I'm not so sure if I get it. It looks like has only one clip (Clip Range parameter). But I'm pretty sure GLTF supports multiple clips in a file. For example that's how Godot engine imports its character animations.
So how to export multiple clips from Houdini?
How to export multiple animation clips to a glTF?
2717 6 4- raincole
- Member
- 539 posts
- Joined: Aug. 2019
- Offline
- Doff-st
- Member
- 2 posts
- Joined: Aug. 2018
- Offline
- mestela
- Member
- 1803 posts
- Joined: May 2006
- Offline
- joshmotion
- Member
- 2 posts
- Joined: May 2019
- Offline
- tachbek
- Member
- 46 posts
- Joined: Feb. 2017
- Offline
Houdini has growing but pretty limited and sometimes bugged support for complex GLTF files.
For now, as for me, most stable solution is to use Houdini + Blender.
You can export your scene as a several GLTF (GLB) files from Houdini, then import, clean up (duplicated tex etc.) and export from Blender (Blender preserves GLTF specific information). Or use dedup GLTF python libs.
For example, I can export all files from TOPnet and call "shell" node to run background Blender instance + python script.
Folder, fps, frame range and other parameters passed as arguments (argv = sys.argv staff).
I mean Blender even don't show up on the screen.
I don't work in Blender and this maybe not good instruction
1."ROP GLTF Output" has "Animation Name" field. Save each animation in separate file.
2.Import in Blender.
3.Animation layout, left screen border near middle where "dope sheet", click and find "Nonlinear Animation" (NLA Editor)
4.You need to copy (add - add action strip or Shift A) animation track (You can search How to copy an action strip from one object to another)
5.Delete all object, don't touch only the chosen one
6.Export
I just now tried this and it works. I guess You can convert this to python script by browsing Blender python documentation.
For now, as for me, most stable solution is to use Houdini + Blender.
You can export your scene as a several GLTF (GLB) files from Houdini, then import, clean up (duplicated tex etc.) and export from Blender (Blender preserves GLTF specific information). Or use dedup GLTF python libs.
For example, I can export all files from TOPnet and call "shell" node to run background Blender instance + python script.
Folder, fps, frame range and other parameters passed as arguments (argv = sys.argv staff).
I mean Blender even don't show up on the screen.
I don't work in Blender and this maybe not good instruction
1."ROP GLTF Output" has "Animation Name" field. Save each animation in separate file.
2.Import in Blender.
3.Animation layout, left screen border near middle where "dope sheet", click and find "Nonlinear Animation" (NLA Editor)
4.You need to copy (add - add action strip or Shift A) animation track (You can search How to copy an action strip from one object to another)
5.Delete all object, don't touch only the chosen one
6.Export
I just now tried this and it works. I guess You can convert this to python script by browsing Blender python documentation.
Edited by tachbek - April 25, 2023 10:02:47
- kodra
- Member
- 373 posts
- Joined: June 2023
- Offline
- edward
- Member
- 7899 posts
- Joined: July 2005
- Offline
-
- Quick Links