sketchucation logo sketchucation
    • Login
    1. Home
    2. pyrvs
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    🫛 Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download
    P
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 2
    • Groups 1

    pyrvs

    @pyrvs

    0
    Reputation
    1
    Profile views
    2
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    pyrvs Unfollow Follow
    registered-users

    Latest posts made by pyrvs

    • RE: Ruby plugin - Export from skp to Quake .map file

      Ok, i've been playing around with the ruby console in sketchup and some of those tutorials (Thanks for the links!) and at least I wrote some commands I liked:

      
      Dir.chdir("/Temp")
      File.new("newfile.map",  "w+")
      
      

      And that creates a new .map file in the Temp folder for me to write into. Does anyone know how to make a "select folder" popup, or save the file in the same folder as the .skp?

      posted in Developers' Forum
      P
      pyrvs
    • Ruby plugin - Export from skp to Quake .map file

      Hi! I'm a noob at ruby scripts and I'd like to make a ruby plugin for converting sketchup models to GTK Radiant editor (Quake III Arena) .map files.
      The .map file is basically a .txt file structured as follows:

      **```
      //entity 0
      {
      "classname" "worldspawn"
      // brush 0
      {
      ( 126 -344 92 ) ( 130 -344 92 ) ( 130 -352 96 ) common/caulk 0 0 90 0.25 0.25 0 0 0
      ( 126 -336 128 ) ( 126 -352 128 ) ( 126 -336 0 ) gothic_ceiling/woodceiling1a 0 0 90 0.25 0.25 0 0 0
      ( 130 -344 92 ) ( 126 -344 92 ) ( 130 -344 0 ) gothic_ceiling/woodceiling1a 0 0 90 0.25 0.25 0 0 0
      ( 130 -352 0 ) ( 130 -336 0 ) ( 122 -352 0 ) common/caulk 0 0 90 0.25 0.25 0 0 0
      ( 130 -352 0 ) ( 130 -352 128 ) ( 130 -336 0 ) gothic_ceiling/woodceiling1a 0 0 90 0.25 0.25 0 0 0
      ( 130 -352 0 ) ( 122 -352 0 ) ( 130 -352 128 ) gothic_ceiling/woodceiling1a 0 0 90 0.25 0.25 0 0 0
      }
      }

      
      where, in a brush (a block), each line represents a plane whith its texture. Each plane is represented by 3 coordinates (a triangle). Planes can only define convex brushes (blocks); no concavities allowed
      
      **```
      //entity 0
      {
      "classname" "worldspawn"
      // brush 0
      {
      ( x y z ) ( x y z ) ( x y z ) texturefolder/texture sShift tShift rotation sScale tScale |detail|structural| 0 0
      ( x y z ) ( x y z ) ( x y z ) texturefolder/texture sShift tShift rotation sScale tScale |detail|structural| 0 0
      ( x y z ) ( x y z ) ( x y z ) texturefolder/texture sShift tShift rotation sScale tScale |detail|structural| 0 0
      ( x y z ) ( x y z ) ( x y z ) texturefolder/texture sShift tShift rotation sScale tScale |detail|structural| 0 0
      ( x y z ) ( x y z ) ( x y z ) texturefolder/texture sShift tShift rotation sScale tScale |detail|structural| 0 0
      ( x y z ) ( x y z ) ( x y z ) texturefolder/texture sShift tShift rotation sScale tScale |detail|structural| 0 0
      }
      }
      
      ```**
      I think what I'm trying to script is at least conceptually quite easy, but I don't know how to start..
      The main question I ask is how to make sketchup creat a txt or map file to input converted data into?
      posted in Developers' Forum
      P
      pyrvs