Resource icon

Misc Blender ksanim/knh exporter 0.3

No permission to download

Stereo

3000RPM
Dec 22, 2009
3,391
3,441
Stereo submitted a new resource:

Blender ksanim/knh exporter - direct Blender to AC format export

Compatibility with Blender 2.80 and 2.81, same functionality as before otherwise.

The main issue I know of is you can't use it on root level nodes, only objects with parents.

For exporting driver animations using the driver file I created, or just general-purpose ksanim exporting when you don't want to do it by exporting an animated fbx.
Read more about this resource...
 
  • Like
Reactions: Ghoults

Denny370

75RPM
Aug 11, 2015
90
8
43
hello, sorry for my ignorance, I can ask you how and where it is installed and what it is used for ...
i use blender and i have problems with animations, when i export everything is wrong
 

AccAkut

2000RPM
Premium
Mar 21, 2015
2,316
1,995
hello, sorry for my ignorance, I can ask you how and where it is installed and what it is used for ...
i use blender and i have problems with animations, when i export everything is wrong
it is installed the same way every Blender plugin is, put the zip file somewhere, in Blender 2.81 go into "Preferences...", Add-ons tab, then "Install". Choose the zip file and install.

Then in the viewport select all the Empties with keyframe data you want to export, choose ksanim as export option (it's bottom spot for me), select Use: "Selected Objects", choose fitting filename, voila.
5.jpg


4.jpg

(working in CM viewer. Car is ofc set up to use a ksanim for the rear wing)
 

Denny370

75RPM
Aug 11, 2015
90
8
43
The 3 boxes "reverse animation, fix driver: object, export driver_base_pos.knh" in the right menu what are they for?

In 2.80 it works, I have already tried, but in 2.79 it does not install and gives an error (I am more familiar with 2.79).

But once exported also with your plugin I continue to have a result that is not good, the counters, with content manager, when I open them disappear and I don't understand what I'm doing wrong, in animation the blender works all right.

curiosity, do you have the possibility to make a small animation video at the counter, export and export settings? it's something that i would really like to learn to complete my self and progress in my learning ..
 

Denny370

75RPM
Aug 11, 2015
90
8
43
correction translation:

The 3 boxes "reverse animation, fix driver: object, export driver_base_pos.knh" in the right menu what are they for?

In 2.80 it works, I have already tried, but in 2.79 it does not install and gives an error (I am more familiar with 2.79).

But once exported also with your plugin I keep having a result that is not good, the doors, with content manager, when I open them they disappear and I don't understand what I'm doing wrong, in blender the animation works all right.

curiosity, do you have the possibility to make a small animation video of the door, export and export settings? it's something that i would really like to learn to complete my self and progress in my learning ..
 

Stereo

3000RPM
Dec 22, 2009
3,391
3,441
The 3 boxes "reverse animation, fix driver: object, export driver_base_pos.knh" in the right menu what are they for?
Those are all related to exporting driver animations (steer and shift)

https://www.assettocorsa.net/forum/index.php?threads/bone-animation-rig-blender.34594/ There's more detail in that regard, and a version of the plugin that works in blender 2.79, on this page, but in summary:
Reverse animation - just exports frames in the reverse order in case that's useful instead of moving every keyframe around
Fix driver: object - Blender doesn't like the character ':' to be in object names and replaces it with _, the AC driver object names all contain "DRIVER:" so "DRIVER_" becomes "DRIVER:". Without correcting this it's impossible to make driver animations in blender.
export driver_base_pos.knh - exports the current frame into a knh file, this sets the default pose of the driver's skeleton (it's the name of a file in the car folder)

One major problem with the method I use is it doesn't work on root level objects, to animate something like a door you want
DOOR_R
+: DOOR_R_anim
| +: door_mesh
With the 2nd one animated.
 
  • Like
Reactions: AccAkut

x0t

1RPM
Dec 1, 2018
9
1
111
Hello Stereo, thanks for your work on this addon. :)
I have an issue exporting the driver_base_pose_knh
When you say "Go to frame 0 and export driver_base_pos with the entire armature selected."
Does this configuration seems viable to you ? Have I selected the good objects ? Should I be in pose mode ?
screen.PNG

You didn't specify what "boxes" should be checked in the exporter. Some are obvious but, should I export the bones ? The Objects ? Should I put the whole DRIVER_DRIVER in an empty because of the root items error ?
Currently, if I try to export the armature without a empty parent node, i get this error :

error.png


OR

If I children it to an empty, and the exported file is 0 octet.
I've managed to export the .knh ONCE (I tried maybe 30 times!) and the position wasn't what I expected, the driver was totally centered in the car, but had the bones relatively in the right places. (Still in the middle though)

I've also tried moving the driver pos using CM without success.

sniart.PNG


zoub.PNG


I also tried using the driver_base_pos from Kunos' car, and tweaking with CM and nothing really worked.
It spawned the driver in the floor of the car. Weird bugs on weird bugs.

TL;DR : Could you explain a bit more in detail what to select, in what mode, during the exporting process, Stereo ? (Specially the driver_base_pos.knh) That would make a world of change, I've been on this issue for four hours and going :p
 

Stereo

3000RPM
Dec 22, 2009
3,391
3,441
It's possible the Matrix Matrix bug is from Blender 2.80 changes, don't think I fully tested the export options cause I assumed blender would keep giving errors until the code was right. I'll have to open one of my files to figure out the other questions.
 
  • Like
Reactions: x0t

x0t

1RPM
Dec 1, 2018
9
1
111
What would you recommend the community to do until then ? (Except using 3DSMax, obviously, we're not savages!)