We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Running Verge3D exporter with Maxscript?

Home Forums Graphics / 3ds Max Running Verge3D exporter with Maxscript?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #37114
    Avatarpsedlacek
    Customer

    Hello,

    Essentially I am creating a script to export 100 GLTF files from 100 Max files at once and trying to automate this.

    I can call up the Verge3D exporter with the maxscript
    macros.run "Verge3D" "exportGLTF"

    I’d like to specify through code the output location and filename, and also prevent this dialog from opening. Since the GLTF format isn’t listed inside the normal File > Export settings and instead done in the Verge 3D menu, how can this be done?

    Pete

    #37224

    Hi,
    you need to execute python exporter method directly, e.g to export to your home directory:

    python.Execute "max_plugin.exportGLTFPath('c:\\\users\\\name\\\myexport.gltf')"

    Use \\\ instead of \ to escape your subdirectories.

    Co-founder and CTO at Soft8Soft
    FB | Twitter | VK

    #37358
    Avatarpsedlacek
    Customer

    Thank you, this is 100% exactly what I needed! :good:

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.