Resource icon

Blender addon: Import/Export .ai/.csv/.ini files 2.3

Login or Register an account to download this content
- 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
1714737129964.png
  • Like
Reactions: GEKA1012
-fixed something on export
-fixed AI-line export ignoring scaling
  • Like
Reactions: Rodger Davies
- 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:
1689677814049.png




- 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

1689679187924.png
  • Like
Reactions: EttieApple
-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 CSV import
  • Like
Reactions: Sulphurous
-fixed error when importing same named stuff more than once
  • Like
Reactions: Esotic
-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)

1638711600937.png

  • Like
Reactions: GzeroD
-fixed last point on CSV export
-added option for CSV/AI import to skip connection from last2first vertex (for a2b tracks)
1630324041473.png
re-added missing Convert2Curve (and back) funtions for CSV-export
  • Like
Reactions: DBLN8483
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:
1620429249110.png
  • Like
Reactions: DBLN8483
-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.

1613853205129.png
-fixed ai-line export for idx!=5 (not ai-line itself, this was fine)
  • Like
Reactions: DBLN8483
-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
1601642403882.png
  • Like
Reactions: GzeroD and DBLN8483
-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
1601416240142.png
;)
  • Like
Reactions: NightEye87
by accident i uploaded v0.7 again as broken 0.8
I am very sorry!
-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
  • Like
Reactions: Prototype_
-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

Latest News

Do you prefer licensed hardware?

  • Yes for me it is vital

  • Yes, but only if it's a manufacturer I like

  • Yes, but only if the price is right

  • No, a generic wheel is fine

  • No, I would be ok with a replica


Results are only viewable after voting.
Back
Top