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

Discussion in 'Tools' started by fughettaboutit, Aug 30, 2020.

  1. fughettaboutit

    fughettaboutit aka leBluem

    Joined:
    Jul 21, 2014
    Messages:
    1,117
    Likes Received:
    379
    Seanus and Won like this.
  2. GRLap

    GRLap Member

    Joined:
    Mar 15, 2021
    Messages:
    97
    Likes Received:
    1
    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
     
  3. fughettaboutit

    fughettaboutit aka leBluem

    Joined:
    Jul 21, 2014
    Messages:
    1,117
    Likes Received:
    379
    "Select only one object!'"
    only select the "fast_lane.ai"
    the addon cannot export borders at the same time
     
  4. GRLap

    GRLap Member

    Joined:
    Mar 15, 2021
    Messages:
    97
    Likes Received:
    1
    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.
     
  5. fughettaboutit

    fughettaboutit aka leBluem

    Joined:
    Jul 21, 2014
    Messages:
    1,117
    Likes Received:
    379
    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
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice