- made importing AI lines more robust and much faster, only 1st vertex selected per mesh is back
- found some more speaking names for the detaildata, thx to x4fab's ai line editor (see new CSP AppShelf!)
- added exporting borders directly into AI line:
* three meshes must be selected for that
* the strings 'left' and 'right' must be contained in the name of the border meshes (case is ignored)
> select both border meshes
> then ideal line mesh, so its active selected and yellow
> then use export -> AC ai line, as usual, no idx selected
> it will write ideal/borderleft/right
- fixed distance value per point not being saved in ai line export
- minor fixes when exporting to cameras.ini with names like CAMERA_0.001
sample Blender-console output:
- added AI line export into new/empty ai-line, afterwards
you MUST
--either load it into "ksEditor" and save from there again or
--use shift on AC start with "side_l/r.csv" in place
EDIT: might be NEW ai line export is too short? consider that __bugged__
EDIT2: see standalone py-script approach
-hopefully fixed not installing correctly
If you have problems, remove those folders and install again:
c:\Blender\3.1\scripts\addons\io_import_accsv\
c:\Users\yourUser\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\io_import_accsv\
(replace 3.1 and yourUser accordingly)
-fixed INI import/export (camera and overlay.ini), added option to import as mesh instead of empties; ....001/...02 will be recognized/ignored on export
-fixed stupid version check preventing it to work on Blender 3.0
-added option when exporting to CSV to skip PoT value
-added importing/exporting from/to camera.ini files (plain axis empties, camera.inis must exist for export, POSITION= is used)
GitHub - leBluem/io_import_accsv: Blender addon to import AssettoCorsa CSV or AI files
Blender addon to import AssettoCorsa CSV or AI files - GitHub - leBluem/io_import_accsv: Blender addon to import AssettoCorsa CSV or AI filesgithub.com
-fixed last point on CSV export
-added option for CSV/AI import to skip connection from last2first vertex (for a2b tracks)
re-added missing Convert2Curve (and back) funtions for CSV-export
fixed some error introduced by not cleanly packing up new version
Note: while using/making it, i encountered this: with CSP enabled, please disable those two options, or CSP will generate ai-line borders based on valid surfaces from "data\surfaces.ini", which makes importing new csv-borders impossible:
-added option for CSV export to sort vertices of borders, using convert to curve and back to mesh
-now its easier to make borders from road-mesh, you still have to take care of vertex 0 to be in the right place: at start.
edit: actually when testing i have seen, you only need to have border-coordinates in correct order, but you dont need to take care, where it starts, ac does automatically figure out where to put 0: where AC_TIME_0 gates are. So screw that last part above.
-fixed ai-line export for idx!=5 (not ai-line itself, this was fine)
-added multiplier of 100 for certain ai-line-details (if enabled on ai-line import), for both import+export, to make it more visible/usefull
-fixed first time importing out of place
-fixed importing another ai-line after first time import
-added optional import/export for the other 18 data points inside the ai-line, plain values along the normal ai-line, idk if its helpfull in any way; also dont ask me about their meanings, i dont know, only detail-data 1 and 5 seem to have any meaning at normal scale, actually no 5 is scaled down by 100 on import (it would be scaled up 100 on export)
-added some more output to blender system console
-idk if this is needed at all, i think it does not really matter, in which order the list of border-vertices is, but i did it anyway
-added "reverse" option for CSV export
-added "shiftCount" option for CSV export, so you can change which index in list of vertices is taken first, use negative values like "-151" to let it start at index "0 minus 151"
-added (VERRRY slow) option "doDoubleCheck" to check for double vertices on CSV import, can fix broken borders from side_l/r.csv
-fixed ai line export, it was still too closely based on original one, now takes distance btw points in account too like csv export
-added export of fast_lane to ".ai" files
-file must already exist, it will be overwritten, import one first from "Import->AC fast_lane.ai"
-safety check ensures you only overwrite ai line with same number of points
-export is without borders, best to load borders again after this operation
-only xyz values in original ideal-line will be changed