sketchucation logo sketchucation
    • Login
    1. Home
    2. thierry_st_malo
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
    T
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 6
    • Posts 12
    • Groups 1

    thierry_st_malo

    @thierry_st_malo

    10
    Reputation
    1
    Profile views
    12
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    thierry_st_malo Unfollow Follow
    registered-users

    Latest posts made by thierry_st_malo

    • Select faces with back color

      Hi, all!
      I need to import AC3D models into Sketchup. I use a 3-step (AC3D-3DS-Sketchup) procedure that works quite well. Problem: some 2-sided AC3D faces result in some backfaces being visible in Sketchup. Selecting and flipping them manually is easy but boring.
      Is it possible to write a script to select at once every visible backface in a group? I have looked in the API's doc but don't see how to do it.
      Thanks in advance,
      Thierry

      P.S: on my system at least, the right-click menu doesn't work for that.

      posted in Developers' Forum
      T
      thierry_st_malo
    • RE: V3DTools

      Thanks, Thomthom 👍 . I'll follow your advice.

      posted in Developers' Forum
      T
      thierry_st_malo
    • V3DTools

      I have produced a very basic and simple plugin that attempts to reproduce some of AC3D's most basic features. Its functions: "Move To", "Size To", "Rotate" and "Faces from Edges". If you're interested you will find the thing in the new "Sketchup" section of my (free, of course) site http://www.tvi-sarl.com.
      Beware, this is a bi-lingual site.

      Thierry

      posted in Developers' Forum
      T
      thierry_st_malo
    • I must be dumb

      As a matter of fact, I am dumb.
      I have written this piece of code to rotate a group or component around its bounding box's center. It works for the red and the green axis, but not for the blue one. Ridiculously, I can't see why. Probably I've spent too much time on this one. Can you help?
      Thanks a lot,
      Thierry

      
      class Rotate
      
         def Rotate;;move
            if checkselection(true)
              obj = nil
              obj = Sketchup.active_model.selection[0]
              box = obj.bounds
              p = Geom;;Point3d.new(box.center)
              values = 0.0, 0.0, 0.0
              results = inputbox ["X (Red)","Y (Green)", "Z (Blue)"], values, "Rotation"
              return if not results
              x, y, z = results
              count = 0
              if x != 0.0
                count = count + 1
              end
              if y != 0.0
                count = count + 1
              end
              if z != 0.0
                count = count + 1
              end
              puts x
              puts y
              puts z
              if count == 0
                UI.messagebox "Nothing to process!"
                return nil
              end
              if count > 1
                UI.messagebox "Only one rotation at a time, please!"
                return nil
              end
              if x != 0.0
                rv = Geom;;Vector3d.new(1.0, 0.0, 0.0)
                ra = x.degrees
              end
              if y != 0.0
                rv = Geom;;Vector3d.new(0.0, 1.0, 0.0)
                ra = y.degrees
              end
              if z != 0.0
                rv = Geom;;Vector3d.new(0.0, 0.0, 1.0)
                ra = z.degrees
              end
              trans = Geom;;Transformation.new(p, rv, ra)
              obj.transform!(trans)
            else
              UI.messagebox "Only Groups and Components can be rotated!"
            end
            Sketchup.active_model().active_view().invalidate
         end
      
         def Rotate;;checkselection(lock_check)
         
            sel_obj = Sketchup.active_model.selection[0]
            if sel_obj
               case sel_obj.typename
                  when "Group","ComponentInstance"
                     return nil if (Sketchup.active_model.selection[0].locked? & lock_check)
                     return true
               end
            end
            return nil
            
         end
      
      end
      
      
      
      posted in Developers' Forum
      T
      thierry_st_malo
    • RE: Curves and plugins

      It was a kind of smoothing that I was looking for. Well, let's drop the idea for now.
      Thanks to you all, anyway.
      Thierry

      posted in Plugins
      T
      thierry_st_malo
    • RE: Curves and plugins

      Essai.zip@TIG and Brookfox
      Here you are. The thing is simple enough : a curve made of 5 segments, with a total length of 4.719 m.
      I want to reshape it with 7 segments, all with the same length. With the plugin, le last segment is shorter than the others.
      Thanks for your help,
      Thierry

      P.S : One obvious use for this is to help in putting the railing stanchions on such models, wheelhouse windows and the like.

      posted in Plugins
      T
      thierry_st_malo
    • RE: Curves and plugins

      I made a number of attempts, and I could have sworn that these segments were joint. What happened ? Well, I'll try again and find out, I guess. Sketchup can get touchy at times.
      The plugin is excellent, of course, but what disturbs me is that the last segment is not the same length as the others. However it seems that moving the N-1 th vertex to the previous coordinates of the last one ( if you see what I mean ) solves the problem, even tough the "common" length varies slightly. The last segment is then redundant and can be deleted. Is this correct ?
      Anyway, many thanks to both of you 😄 .
      Thierry

      posted in Plugins
      T
      thierry_st_malo
    • Curves and plugins

      Hi, all !
      I have two problems with curves and plugins. They are very basic, so please excuse me.
      1 - If I select a number of joint segments and use "Weld" to create a curve, everything looks all right. But afterwards, it seems that I can't select the whole curve in itself. I can just select one of the segments that were used to make it up. So, what's the use of "Weld" ?
      2 - Problem #1 being supposed solved, does any of you know of a plugin that can ( could ? ) fragment the curve in a number of equal-length segments ?
      Thanks,
      Thierry

      posted in Plugins
      T
      thierry_st_malo
    • RE: SU2POV et .png

      Rectification, désolé 😒 ce n'est pas une erreur systématique.
      Il y en a une autre qui n'est pas systématique non plus, avec le rendu de scènes visualisées dans Sketchup en projection orthogonale.
      Thierry*

      posted in Plugins
      T
      thierry_st_malo
    • SU2POV et .png

      Bonjour,
      J'utilise SU2POV 3.5 ( bravo, d'ailleurs ) mais beaucoup de mes textures sont au format .png. Dans ces cas-là POV-Ray ( lancé par SU2POV ) plante au premier .png avec un "Fatal parse error" signalant que la texture n'est pas au format .jpg. Faut-il réellement que je convertisse au moins la moitié des matériaux de tous mes modèles ?
      Thierry

      posted in Plugins
      T
      thierry_st_malo