sketchucation logo sketchucation
    • Login
    1. Home
    2. alexpacio2013
    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!
    ⚠️ Important | Libfredo 15.6b introduces important bugfixes for Fredo's Extensions Update
    Offline
    • Profile
    • Following 1
    • Followers 0
    • Topics 13
    • Posts 128
    • Groups 1

    alexpacio2013

    @alexpacio2013

    28
    Reputation
    30
    Profile views
    128
    Posts
    0
    Followers
    1
    Following
    Joined
    Last Online
    Age 61
    SketchUp version 2025
    Operating System Windows
    Knowledge of SketchUp Advanced
    What do you use Sketchup for? interior design
    Location Italy

    alexpacio2013 Unfollow Follow
    registered-users

    Best posts made by alexpacio2013

    • RE: SubD examples and models

      I'm not as skilled as my master @panixia, but I can still create some items with SubD.
      SketchUp_HE8eGrpfkd.png

      posted in SUbD
      alexpacio2013A
      alexpacio2013
    • thanks Thom..

      Re: SubD examples and models

      car3.jpg car3c.jpg car3h.jpg car3f.jpg

      posted in SUbD
      alexpacio2013A
      alexpacio2013
    • RE: Many projects

      Su 2024 + vray 7 . Italian kitchen.
      aa.jpg

      cc.jpg

      DD.jpg

      E.jpg

      6..jpg

      7.jpg

      8.jpg

      posted in Gallery
      alexpacio2013A
      alexpacio2013
    • RE: thanks Thom..

      gym1.png gym2.png gym3.png spin4.png gym5.png

      posted in SUbD
      alexpacio2013A
      alexpacio2013
    • RE: ViewportBuster - my first SketchUp Plugin

      @HornOxx Thank you, you've been extremely helpful. I practically discovered that if I don't save the parameters, even if I go and change them manually and then export the image, it doesn't save the image with the correct parameters. If I save the parameters instead, it works. Anyway, I want to compliment you again because the utility is small but very, very useful, at least for me.

      posted in Extensions & Applications Discussions
      alexpacio2013A
      alexpacio2013
    • RE: SketchUp 2025. The styles toolbar disappears every time I close it.

      Thanks I solved it, I didn't understand why only that bar didn't work, anyway with the repair as administrator it solved it

      posted in SketchUp Discussions
      alexpacio2013A
      alexpacio2013
    • RE: SubD examples and models

      @panixia yes, vray decals👋

      posted in SUbD
      alexpacio2013A
      alexpacio2013
    • SketchUp 2025. The styles toolbar disappears every time I close it.

      I have a problem with SketchUp 2025 that I can’t solve. Basically, every time I open SketchUp 2025, it doesn’t display the styles toolbar. I always have to open it every time, and once I’ve completed a task, I close, save, and reopen SketchUp, and it’s always the same issue. What can I do?![alt text]SketchUp_0K4TOKjQE2.png

      posted in SketchUp Discussions
      alexpacio2013A
      alexpacio2013
    • RE: SubD examples and models

      @panixia it's the n°1

      posted in SUbD
      alexpacio2013A
      alexpacio2013
    • I love all the Fredo products

      I love all the Fredo products when I use Fredo scale, but I have a problem. I would like to have the ability to scale an object by resizing just one or a single axis. This is possible with the standard scale disk by holding down the shift key and setting the measurement to which the entire object should scale. It would be nice to have something similar also on the cold skate.

      posted in SketchUp Discussions
      alexpacio2013A
      alexpacio2013

    Latest posts made by alexpacio2013

    • RE: [Plugin] FredoBatch - v1.5a - 18 Dec 25

      @fredo6
      This plugin is fantastic and very useful but not well known, which is why I would like to write an article about it for an Italian group, but I have a problem. Being disabled, when I open the Freddo Batch windows, they open at the top, above and outside the limits of the open SketchUp window, and due to my inability to use a normal mouse, I use a virtual mouse (eviacam). It's difficult for me to move the window because the top bar is used by eviacam but is not editable. It's only my problem, but this is the only plugin I have this issue with. Is it possible to have the windows open inside the SketchUp window?
      YljDE2xlc5.png

      posted in Plugins
      alexpacio2013A
      alexpacio2013
    • RE: Is there a way to "define the scale" of a group of objects in SketchUp?

      @panixia In certain situations, I am willing to lose the instances. This is particularly true when I am building external component libraries: every component within is stripped of all scale and instance definitions. I accept this compromise.
      Buon anno, Marcello. 🖐

      posted in Extensions & Applications Discussions
      alexpacio2013A
      alexpacio2013
    • RE: Is there a way to "define the scale" of a group of objects in SketchUp?

      @TIG @thomthom
      The created Ruby script works with practically all objects and components, except for those not converted to SubD and QuadFace. Furthermore, these types of objects do not work even when handled individually with standard scale commands.

      posted in Extensions & Applications Discussions
      alexpacio2013A
      alexpacio2013
    • RE: Is there a way to "define the scale" of a group of objects in SketchUp?

      @tig
      I have included a final status message and a count for the modified objects.

      require 'sketchup.rb'
      
      module Visual_Scale_Applier
        def self.apply_scale_to_selection
          model = Sketchup.active_model
          selection = model.selection
      
          if selection.empty?
            UI.messagebox("Seleziona gli oggetti a cui vuoi 'definire' la scala.")
            return
          end
      
          @count = 0
          model.start_operation('Definisci Scala Corrente', true)
      
          selection.each do |entity|
            self.process_entity(entity)
          end
      
          model.commit_operation
          
          # Messaggio di successo richiesto
          UI.messagebox("Scale definition of all objects/components successfully completed.\nElementi elaborati: #{@count}")
        end
      
        def self.process_entity(entity)
          return unless entity.is_a?(Sketchup::ComponentInstance) || entity.is_a?(Sketchup::Group)
      
          # Rende unico il componente se necessario per non influenzare copie non selezionate
          entity.make_unique if entity.is_a?(Sketchup::ComponentInstance)
      
          t = entity.transformation
          
          # Calcolo dei fattori di scala correnti
          scale_x = Math.sqrt(t.to_a[0]**2 + t.to_a[1]**2 + t.to_a[2]**2)
          scale_y = Math.sqrt(t.to_a[4]**2 + t.to_a[5]**2 + t.to_a[6]**2)
          scale_z = Math.sqrt(t.to_a[8]**2 + t.to_a[9]**2 + t.to_a[10]**2)
      
          # Applica la trasformazione interna se la scala non è già 1.0
          unless (scale_x - 1.0).abs < 0.001 && (scale_y - 1.0).abs < 0.001 && (scale_z - 1.0).abs < 0.001
            internal_scaling = Geom::Transformation.scaling(scale_x, scale_y, scale_z)
            entity.definition.entities.transform_entities(internal_scaling, entity.definition.entities.to_a)
      
            # Resetta il contenitore esterno a scala 1.0
            new_transformation = Geom::Transformation.axes(
              t.origin, 
              t.xaxis.normalize, 
              t.yaxis.normalize, 
              t.zaxis.normalize
            )
            entity.transformation = new_transformation
            @count += 1
          end
      
          # Processo ricorsivo per elementi nidificati
          entity.definition.entities.each do |child|
            self.process_entity(child)
          end
        end
      end
      
      # Esecuzione
      Visual_Scale_Applier.apply_scale_to_selection
      
      posted in Extensions & Applications Discussions
      alexpacio2013A
      alexpacio2013
    • RE: Is there a way to "define the scale" of a group of objects in SketchUp?

      @TIG I think I found it. Gemini gave me this solution and it works logically. The components will become unique, but it does exactly what I wanted. Since you're the expert, could you check if it works well?

      require 'sketchup.rb'

      module Visual_Scale_Applier
      def self.apply_scale_to_selection
      model = Sketchup.active_model
      selection = model.selection

      if selection.empty?
        UI.messagebox("Seleziona gli oggetti a cui vuoi 'fissare' la scala.")
        return
      end
      
      model.start_operation('Fissa Scala Corrente', true)
      
      selection.each do |entity|
        self.process_entity(entity)
      end
      
      model.commit_operation
      puts "Scala 'fissata' a 1.0 per la selezione e tutti i contenuti nidificati."
      

      end

      def self.process_entity(entity)
      return unless entity.is_a?(Sketchup::ComponentInstance) || entity.is_a?(Sketchup::Group)

      # 1. Se è un componente con più copie, lo rendiamo unico per non rovinare il resto del modello
      entity.make_unique if entity.is_a?(Sketchup::ComponentInstance)
      
      t = entity.transformation
      
      # Estrarre i fattori di scala correnti
      scale_x = Math.sqrt(t.to_a[0]**2 + t.to_a[1]**2 + t.to_a[2]**2)
      scale_y = Math.sqrt(t.to_a[4]**2 + t.to_a[5]**2 + t.to_a[6]**2)
      scale_z = Math.sqrt(t.to_a[8]**2 + t.to_a[9]**2 + t.to_a[10]**2)
      
      # Se la scala è già 1.0, non facciamo nulla su questo livello
      unless (scale_x - 1.0).abs < 0.001 && (scale_y - 1.0).abs < 0.001 && (scale_z - 1.0).abs < 0.001
        # 2. Creiamo una trasformazione di scala per la geometria interna
        internal_scaling = Geom::Transformation.scaling(scale_x, scale_y, scale_z)
        
        # 3. Trasformiamo la geometria interna (bordi, facce, etc.)
        entity.definition.entities.transform_entities(internal_scaling, entity.definition.entities.to_a)
      
        # 4. Resettiamo la scala del contenitore esterno a 1.0 mantenendo posizione e rotazione
        new_transformation = Geom::Transformation.axes(
          t.origin, 
          t.xaxis.normalize, 
          t.yaxis.normalize, 
          t.zaxis.normalize
        )
        entity.transformation = new_transformation
      end
      
      # 5. Entra ricorsivamente nei gruppi/componenti nidificati
      entity.definition.entities.each do |child|
        self.process_entity(child)
      end
      

      end
      end

      Esegui

      Visual_Scale_Applier.apply_scale_to_selection

      posted in Extensions & Applications Discussions
      alexpacio2013A
      alexpacio2013
    • RE: Is there a way to "define the scale" of a group of objects in SketchUp?

      @TIG
      Is it necessary to repeat this operation for every single object? I need a single command to set the scale for all selected elements (including nested components and groups) with just one click. Otherwise, it would be faster to do it manually

      posted in Extensions & Applications Discussions
      alexpacio2013A
      alexpacio2013
    • RE: Is there a way to "define the scale" of a group of objects in SketchUp?

      @TIG I've tried but it doesn't work. I'm attaching an image as an example where I've modified the scale of each cube and also the scale of a group that contains three cubes. In practice, I would like that once all objects are selected, I can define the scale for all of them, even those nested inside the group.
      SketchUp_UHigTqTTSx.png

      posted in Extensions & Applications Discussions
      alexpacio2013A
      alexpacio2013
    • RE: Is there a way to "define the scale" of a group of objects in SketchUp?

      @TIG I didn't manage to do it. In your opinion it's not a useful function. I would need it. there is a solution

      posted in Extensions & Applications Discussions
      alexpacio2013A
      alexpacio2013
    • RE: Is there a way to "define the scale" of a group of objects in SketchUp?

      I’m not a programmer, and I don’t know Ruby. I tried using artificial intelligence to create a plugin, and it works, but only on main objects and components, not on nested ones.

      posted in Extensions & Applications Discussions
      alexpacio2013A
      alexpacio2013
    • Is there a way to "define the scale" of a group of objects in SketchUp?

      Is there a way to "define the scale" of a group of objects or multiple selected components simultaneously, with the option to also scale nested objects and components? For me, it’s a useful command, but I haven’t found a solution.

      posted in Extensions & Applications Discussions
      alexpacio2013A
      alexpacio2013