Resource icon

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

Login or Register an account to download this content
also available on: https://github.com/leBluem/io_import_accsv

Edit2 Jan 2024: If you have problems installing, remove those folders and try 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 with your version of course)

Edit1 May 2021: When recording AI line: with CSP enabled, please disable those two options, or CSP will generate ai-line borders based on valid surfaces in "data\surfaces.ini", which makes importing new csv-borders impossible:
1620425885704.png


Blender addon to Import and Export as mesh (vertices connected by edges) from:
"side_l/r.csv" (borders for ai to stay between) or
"groveline.csv" (helps making groove mesh) or
"fast_lane/pit_lane/ideal_line.ai" (contains fast-lane, borders and more)
"camera.ini" (positions only)

Works with Blender 2.8 and above. Does NOT work onBlender 2.79 or earlier.

Import is self explaining, filenames will be used for mesh names. Mini Tutorial on acmods.net

Export to "fast_lane/ideal_line/pitlane.ai":
-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
-only xyz values of ideal-line in original file will be changed, which results in slightly changed borders, as they are saved as distance from ai-line; after another holding SHIFT on session load to force reading "side_l/r.csv", it shoudl be at ground level and have correct borders again
-again: select and export only ONE mesh at a time!

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

Export to "side_l/r.csv":
-best to edit existing ones, if you import an existing "fast_lane.ai" you get them for "free"
-not recommended: if you make your own in Blender, you need to take care of the correct order of vertices before exporting (should start with first vertex at start/finish).
-select and export only ONE mesh at a time!

Note 0: consider importing ai-line with 0.01 scale!
Note 1: "side_l/r.csv" can be generated by Esotic's AI-Line helper, it can generate a "groveline.csv" since v1.7.
Note 2: "groveline.csv" not to be confused with "groove.ini" which is different file
Note 3: When speaking of walls, mostly whats meant really is "border"
Note 4: See also some notes in discussion thread
Note 5: Only move vertices in edit mode, don't move whole ai line in object mode, addon uses pure vertex coords, not world translated
Note 6: All that is meant for a "known-to-be-working" ai-line in ac, that you have loaded with the addon into blender.

How to install in Blender
-goto on Preferences/Addon page and use "Install" button to browse for downloaded zip
-or-
-unpack zip-content to "...\Blender29\2.90\scripts\addons"

After enabling here:
1597146972213.png


...you get three new entries in "Import"/"Export" (F4):
1690051702312.png


Import/Export options for .CSV files:
1601502016792.png

Import/Export options for .AI files:
1601502063828.png

Import/Export options for INI files:
1690051990410.png

Notes:
-"ailine IDX" has as default "none", thats the ai-line itself
-you should know what you are doing when using another index than "none"
-you cant export index 6 and 7, those are the borders, i did not figure out how to compute those values, so use the long way around by exporting them as "side_l/r.csv" and import them into the ai-line per holding shift on session load

Nordschleife ai line, karussel part, imported "fast_lane.ai" (~5 seconds loadtime), this is with the option to import all 18 datasets turned on, from a "fast_lane.ai":
edit: seems like detail2 is brake- and detail5 is throttle usage (or the other way around)
1604256600139.png

If you feel like donating something: https://www.patreon.com/leBluem
  • 1597147139888.png
    1597147139888.png
    170 KB · Views: 2,142
  • 1598752876627.png
    1598752876627.png
    37 KB · Views: 9,199
  • 1613839237002.png
    1613839237002.png
    13.3 KB · Views: 8,434

Latest updates

  1. v2.3 - 3 may 2024

    - made importing AI lines more robust and much faster, only 1st vertex selected per mesh is back...
  2. v2.2.0

    -fixed something on export
  3. v2.1.0 - 22 fec 2024

    -fixed AI-line export ignoring scaling

Latest reviews

This saved days of my life
Excellent tool, threw me at first but eventually got the hang of it, now when making the AI, this script is essential!
Really great tool. Saves a lot of time when designing tracks in blender. Doesn't work in 2.93 (the add-on crashes upon activation) but no issue on blender 3.4.1
You are the man. I'll give it a shot so I don't have to bother you. ;)
Great tool, used Esotics AI line helper to generate the groveline.csv and this allowed me to import it. Thanks again!
Great tool! Thanks a lot for your work and sharing it.
Thank you for adding the .CSV export! Saves the absolute PITA script and complex rotations I had to use previously to get the lines to import properly into AC. Big, big help!
Please Stop This
Please Stop This
i added a warning in descr and in update-text, maybe its not working right
No export ?
Please Stop This
Please Stop This
i tried to make reverse ai from normal ;) didn't work, missing some param-knowledge
edit: oh you mean side_...csv? mh, thats another thing
Haven't tried it yet, but this is going to be very useful. Thanks!

Latest News

Author
Please Stop This
Downloads
1,002
File size
17.9 KB
Views
31,812
First release
Last update
User rating
5.00 star(s) 8 ratings

More mods from Please Stop This

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