MaxScript KML path import

Discussion in 'Track Modding' started by Mario Morais, Jan 22, 2012.

  1. Mario Morais

    Mario Morais Member

    Joined:
    Oct 26, 2010
    Messages:
    1,465
    Likes Received:
    169
    MaxScript KML import (Paths & images)

    Hi all

    I create a script to import KML files from GoogleEarth paths to 3ds MAX splines

    Install to <MAX folder>Scripts\Startup\importKML
    In max go MAXscript -> utilities

    How to use:
    Select KML in [...] button
    Select track zone number only
    Hemisphere is North always, south no work. but i think works to south
    Press [Import KML File] and KML load and center to origin.
    After first import Track center appears Copy/paste the X,Y,Z and save it for others KML for same track!

    v1.3
    - Can chose Close Spline
    - Vertex Type and Segment type


    V1.2
    - Now import KML from GoogleEarth and 3d route Builder
    - Can chose to close spline

    V1.1 Import images (kml) from SASPlanet.
    In SASPlanet when save stick images can save kml file with same name. The script try to load images with same name (DDS, TGA and PNG)

    [​IMG]

    [​IMG]

    good imports.



    The script was renamed to Import GEO
     
    Last edited by a moderator: Dec 30, 2012
    1 person likes this.
  2. roc-craven

    roc-craven Registered

    Joined:
    Oct 12, 2010
    Messages:
    24
    Likes Received:
    0
    Thanks.
     
  3. Simon Peace

    Simon Peace Registered

    Joined:
    Nov 10, 2011
    Messages:
    121
    Likes Received:
    0
    I was just trying to test this to check what the results would be like and I get some errors on import.

    View attachment 802
     
  4. Mario Morais

    Mario Morais Member

    Joined:
    Oct 26, 2010
    Messages:
    1,465
    Likes Received:
    169
    Your kml file is not right. Must be a PAth from GE.
     
  5. Mario Morais

    Mario Morais Member

    Joined:
    Oct 26, 2010
    Messages:
    1,465
    Likes Received:
    169
    New Version

    Now can import Stick images (from SASPlanet) to planes! :)
     
  6. AzDesertRat

    AzDesertRat Registered

    Joined:
    Jan 24, 2012
    Messages:
    6
    Likes Received:
    0
    Thanks Mario! Very nice script.


    Rat
     
  7. SmokinJo65

    SmokinJo65 Registered

    Joined:
    Jan 15, 2012
    Messages:
    87
    Likes Received:
    1
    Yeah Rat, you'll have to get Jeff doing this now since he loves working with elevations already made..lol, oh and get back to work. :p
     
  8. AzDesertRat

    AzDesertRat Registered

    Joined:
    Jan 24, 2012
    Messages:
    6
    Likes Received:
    0
    LOL, just wait til someone releases a decent off road mod. Might take him 6 months to learn the process but I bet he'd be releasing tracks weekly.

    Sure thing, glad I have GE installed on my work laptop:D.
     
  9. roc-craven

    roc-craven Registered

    Joined:
    Oct 12, 2010
    Messages:
    24
    Likes Received:
    0
    Cant seem to get it to work. Here is the error I get. The file is saved directly from GE.


    ---------------------------
    MAXScript Rollout Handler Exception
    ---------------------------
    -- Unknown property: "InnerXml" in undefined
    ---------------------------
    OK
    ---------------------------
     
  10. Simon Peace

    Simon Peace Registered

    Joined:
    Nov 10, 2011
    Messages:
    121
    Likes Received:
    0
    thats the same...

    error I got. and I think it is a bug in the script that needs fixing... do you have more than one path in your kml? I did and that was the only thing i could think of.
     
  11. Mario Morais

    Mario Morais Member

    Joined:
    Oct 26, 2010
    Messages:
    1,465
    Likes Received:
    169
    Strange post a link for your KML. to see were is the error
     
  12. Nodo

    Nodo Registered

    Joined:
    Oct 5, 2010
    Messages:
    25
    Likes Received:
    0
    very good :)
     
  13. elwood

    elwood Registered

    Joined:
    Oct 4, 2010
    Messages:
    44
    Likes Received:
    1
    Thanks Mario, i'll test soon as i can. Is a good news for a friend of mine, but not for me lol. (he bumps me to model some km of some roads near him, hillclimbs near Genova).
    And what about all those gps antennas, we have inside the phones.
    We can squeeze them to store coordinates if we can move to a track or even a normal road, used maybe, in hillclimbs.
    I don't know if Racechrono, a cheap telemetry applet for symbian, stores the coordinates. Polling rate is usually 1hz, factory i mean. Someone use a custom antenna for a better precision of the telemetry, 10hz i think. We can use them and create spline from those datas but i'm not inside this trackday stuff. What do you think?
    Cheers.
    el
     
  14. roc-craven

    roc-craven Registered

    Joined:
    Oct 12, 2010
    Messages:
    24
    Likes Received:
    0
    Here it is.
     
  15. Mario Morais

    Mario Morais Member

    Joined:
    Oct 26, 2010
    Messages:
    1,465
    Likes Received:
    169
    Thanks.. is a bug in script v1.1,

    3D Route Builder have two <Placemark> and GE have one.

    The script need to find the right Placemark for 3D Route Builder more XML handle.

    new version soon..
     
    Last edited by a moderator: Jan 25, 2012
  16. roc-craven

    roc-craven Registered

    Joined:
    Oct 12, 2010
    Messages:
    24
    Likes Received:
    0
    Thanks, I have 3d route builder also.
     
  17. Mario Morais

    Mario Morais Member

    Joined:
    Oct 26, 2010
    Messages:
    1,465
    Likes Received:
    169
    New version 1.2 try now.
     
  18. Foxtrot

    Foxtrot Registered

    Joined:
    Nov 2, 2011
    Messages:
    171
    Likes Received:
    3
    Hi.
    The 1.2 link downloads a file named "importKML_v1-1.zip" Is that the latest file or no?
     
  19. Mario Morais

    Mario Morais Member

    Joined:
    Oct 26, 2010
    Messages:
    1,465
    Likes Received:
    169
    Sorry Fix now!
     
    1 person likes this.
  20. Foxtrot

    Foxtrot Registered

    Joined:
    Nov 2, 2011
    Messages:
    171
    Likes Received:
    3
    No problem. Thank you for sharing the script :D
     

Share This Page