Community Forum
ANVEL Licensing Options

Internal command to create path



  • Is there an internal command counterpart to the CreatePath() external API command?



  • @rr,

    To make a path using the Built-in python, you set the path points using AddPathPoint.

    # Create path
    Anvel.World.AddPathPoint([2,2,0])
    Anvel.World.AddPathPoint([18,8,0])
    Anvel.World.AddPathPoint([22,20,0])
    Anvel.World.AddPathPoint([37,42,0])
    Anvel.World.AddPathPoint([37,62,0])
    Anvel.World.AddPathPoint([27,82,0])
    Anvel.World.AddPathPoint([17,102,0])
    
    # Get path id
    pathID = Anvel.World.GetPathID("CreatedPath0")