• Dear visitors,

    The email issue has been finally solved.
    Thank you for your patience and happy browsing.

    Team ACM.

TOOL Blender addon for Import/Export .CSV and .AI files

fughettaboutit

aka leBluem

GRLap

Member
I installed blender fast lane.ai add-on (above)
When i import fast lane ai to blender, i have three objects in the layer: fast_lane.ai, fast_lane.ai_border_left and fast_lane.ai_border_right

I edited the fast_lane.ai curve using "move" and "proportional editing"
However, I can't figure out to export this new fast_lane.ai.
I get an error if I try to export the layer with three objects:

bpy.context.space_data.params.filename = "fast_lane_candidate.ai"
Python: RuntimeError: class EXPORT_AI_OT_write, function execute: incompatible return value , : 'Select only one object!' not found in ('RUNNING_MODAL', 'CANCELLED', 'FINISHED', 'PASS_THROUGH', 'INTERFACE')
location: <unknown location>:-1

And I get an error if I select the object fast_lane.ai and try to export that:

Python: Traceback (most recent call last):
File "C:\Users\admin\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\io_import_accsv\__init__.py", line 328, in execute
return export_ai.save(context, self.properties.filepath, self.shiftCount, self.lineIDX)
File "C:\Users\admin\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\io_import_accsv\..\io_import_accsv\export_ai.py", line 32, in save
filesize = os.stat(filepath).st_size
FileNotFoundError: [WinError 2] The system cannot find the file specified: 'C:\\Program Files (x86)\\Steam\\steamapps\\common\\assettocorsa\\content\\tracks\\bryar_motorsport_park\\ai\\fast_lane_candidate.ai'
location: <unknown location>:-1
 

GRLap

Member
When I select fast lane.ai and export that selected item I get the second error I posted; apologies for not making it clear. I tried exporting the entire file (three objects) and also just the one object, fat Lane.ai, and I get errors both ways.
 

fughettaboutit

aka leBluem
you have imported one first? the addon does not export a complete ai line itself, it needs an existing one where it just changes values

1. import "fast_lane.ai"
2. change vertives around in edit mode
3. save again "into" an existing file "fast_lane.ai" (from which you imported)

Sim_Misg @ Racedepartement did it, but i had no urge to build that in
your best bet is to do a shitty AI line yourself, then use that...

https://assettocorsamods.net/threads/how-can-i-make-ai-path.234/
https://assettocorsamods.net/threads/red-line-track.1806/#post-13007
 
Top