sketchucation logo sketchucation
    • Login
    1. Home
    2. alexpacio2013
    3. Posts
    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.8b introduces important bugfixes for Fredo's Extensions Update
    Offline
    • Profile
    • Following 1
    • Followers 0
    • Topics 13
    • Posts 130
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: Why is the green section under my custom toolbars no longer visible in the Lord of the Toolbar menu?

      @Rich-O-Brien
      Thanks, I solved the problem with the script.

      posted in Plugins
      alexpacio2013A
      alexpacio2013
    • RE: Why is the green section under my custom toolbars no longer visible in the Lord of the Toolbar menu?

      @Fredo6 Hi, with the latest update of the Fredo library the problem with Lord of the Toolbars has come back and I no longer see the green window underneath. You had given me a script to reset the parameters, but I can’t find it anymore. Could you send it to me again? Thanks, and happy new year.
      SketchUp_uATersXuQX.png

      posted in Plugins
      alexpacio2013A
      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
    • RE: Why is the green section under my custom toolbars no longer visible in the Lord of the Toolbar menu?

      @fredo6
      And anyway, even with your script it works on the second opening of the Master toolbar manager panel. At the first opening, the Custom toolbar panel is not present.
      79c4d3c0-a338-4c89-a01c-5bcba232e81a-image.png

      posted in Plugins
      alexpacio2013A
      alexpacio2013
    • RE: Why is the green section under my custom toolbars no longer visible in the Lord of the Toolbar menu?

      @fredo6 said in Why is the green section under my custom toolbars no longer visible in the Lord of the Toolbar menu?:

      Traductor::ChromiumWdlg.dialog_info_reset 'LOTT_master'

      Yes, with your script it works but if I close SketchUp I have to launch your ruby script from the console.
      I don't have two monitors but I have one that is 3440x1440 wide.YawJC6h2uy.png

      posted in Plugins
      alexpacio2013A
      alexpacio2013
    • RE: Why is the green section under my custom toolbars no longer visible in the Lord of the Toolbar menu?

      @fredo6
      I no longer see my toolbar window in the master toolbar manager, even though the toolbars work properly.
      Can anyone help me? Thanks.

      posted in Plugins
      alexpacio2013A
      alexpacio2013
    • Why is the green section under my custom toolbars no longer visible in the Lord of the Toolbar menu?

      Why is the green section under my custom toolbars no longer visible in the Lord of the Toolbar menu? I tried resizing the window (both enlarging and reducing it), but the green bar still doesn’t appear. It was working correctly until a few days ago, so perhaps the recent freedo6Library update has modified something.
      ny6GZAu9SW.png

      posted in Plugins
      alexpacio2013A
      alexpacio2013
    • RE: Sketchucation Tools 5.0.4

      @Dave-R Some plugins have caused me issues with updates, some I want to finish current projects before updating, while others I'm confident are useful updates.

      posted in Extensions & Applications Discussions
      alexpacio2013A
      alexpacio2013
    • RE: Sketchucation Tools 5.0.4

      Is it possible to add an option to not update a particular plugin in the updates list, meaning it should no longer show the update for that plugin and display it with a flag?

      posted in Extensions & Applications Discussions
      alexpacio2013A
      alexpacio2013
    • RE: [Plugin Library] LibFredo6 - v15.8b - 12 Jan 26

      @fredo6 After three days of work to figure out what was causing SketchUp to crash, I discovered that there's an incompatibility between the S4U plugins and the new Fredo libraries. Now I have the 2026 version working perfectly.

      posted in Plugins
      alexpacio2013A
      alexpacio2013
    • RE: [Plugin Library] LibFredo6 - v15.8b - 12 Jan 26

      Dopo tre giorni passati a Cercare il colpevole l'ho trovato. In pratica sono i plugin di S4U che mandano in crash sketchup in quanto vanno in conflitto con Fredolib.

      posted in Plugins
      alexpacio2013A
      alexpacio2013
    • 1 / 1