sketchucation logo sketchucation
    • Login
    ⚠️ Attention | Having issues with Sketchucation Tools 5? Report Here

    .txt/.obj Exporter plugin for sketchup - uses c++ exe

    Scheduled Pinned Locked Moved Plugins
    2 Posts 2 Posters 1.5k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A Offline
      akemp
      last edited by

      Hey all,
      I’ve made an exporter for sketchup which first exports the textured faces of a model as a text file, then a binary which reads those faces and exports them as an .obj file. The difference between this exporter and others is that it culls any default or color materials, so that only textured faces are exported. This means you do not have to worry about flipping the backfaces of your model, or about exporting unnecessary geometry. This is very useful for rendering, video games, etc.
      The readme is essentially pasted on my site, so you can read through the steps and see if it interests you before you install the program. I just released it, btw, so there may be bugs in the export. If there are, please message me or post them here, preferably with instructions on how to replicate it. One known issue is that faces must be triangulated with a utility beforehand or else complex faces may come out with missing triangles. For the triangulation, I recommend using this plugin by TIG.
      It should not change the behavior of Sketchup in any way other than adding an option to the "plugin" menu.
      Anyway, I've released this under the BSD license, but I would appreciate it if you linked back to my site and left the license intact if you use this utility in any of your projects.


      Newest version, neatly places the functions in a submenu and adds the "Normalize UVs" option to export perfectly square and proportional UVs. Source and binary included for c++ poriton.

      1 Reply Last reply Reply Quote 0
      • D Offline
        driven
        last edited by

        Hi,

        on a mac, I got this
        Error: #<Errno::EACCES: Permission denied - VELUX_VSE_INSTALLED.txt>
        (eval):59:in initialize' (eval):59:in open'
        (eval):59:in `RunScript'
        (eval):199
        Error: #<Errno::EACCES: Permission denied - VELUX_VSE_INSTALLED.txt>
        so I changed

        <span class="syntaxdefault"></span><span class="syntaxcomment"># name = name.tr(".skp", "") + ".txt"<br /></span><span class="syntaxdefault">name </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> path </span><span class="syntaxkeyword">+</span><span class="syntaxdefault"> </span><span class="syntaxstring">".txt"</span><span class="syntaxdefault"> </span>
        

        and it produce a text file.

        however, it has the 'full_path/to/texture.jpg' from the originating computer, i.e. not mine,
        Would have to make all the texture files or could they be extracted by the plugin?

        john

        learn from the mistakes of others, you may not live long enough to make them all yourself...

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        Buy SketchPlus
        Buy SUbD
        Buy WrapR
        Buy eBook
        Buy Modelur
        Buy Vertex Tools
        Buy SketchCuisine
        Buy FormFonts

        Advertisement