sketchucation logo sketchucation
    • Login
    1. Home
    2. glro
    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!
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download
    G
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 29
    • Posts 403
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: [Plugin] UCS Manager

      @didier bur said:

      @Giro:

      @unknownuser said:

      maybe it would be useful to register automatically the UCS that comes by default with the sketchup model; otherwise you have to do it manually each time you create a new one

      No, there's no need to do so, to reset the default axes, just right-click on an axis of your current UCS and select "Reset".
      Regards,

      oh... i didn't know that

      thank you

      i add this information in my copy of your documentation

      posted in Plugins
      G
      glro
    • RE: [Plugin] UCS Manager

      @didier bur said:

      Hi Georges,

      When you register (save) an UCS, the only operation you have to do is to click at the origin of that UCS, no need to click on the 3 axes. As you can see, the cursor still have the correct orientation of XYZ axes. You'll only have to click the axes orientations when you restore a previously saved UCS.
      This is explained in the PDF doc included in the resources folder of the plugin. I've attached it here.

      Regards,

      i understand now; thank you

      maybe it would be useful to register automatically the UCS that comes by default with the sketchup model; otherwise you have to do it manually each time you create a new one

      the limit for the plugin seems to come from sketchup itself; for example, moving components with J FOLTZ's plugin mover2.rb, is according the original UCS, no matter which new UCS has been created and is active

      posted in Plugins
      G
      glro
    • RE: [Plugin] UCS Manager

      @didier bur said:

      This plugin is intended to provide SU users some basic tools to save, restore, delete and list their user coordinates systems (aka UCS) of the model.
      In SketchUp, you cannot save the axis systems you set with the axes tool, and obviously you cannot retrieve an axis system you used earlier or during another session. This extension offers an alternative method to avoid this.

      [attachment=1:1u8yr8v7]<!-- ia1 -->DBUR_UcsManager_v1_0_0.rbz<!-- ia1 -->[/attachment:1u8yr8v7]
      [attachment=0:1u8yr8v7]<!-- ia0 -->ucs_toolbar.jpg<!-- ia0 -->[/attachment:1u8yr8v7]

      nice idea

      but when i clic on the origin to register the SCU, the dialog box opens and it is not possible anymore to clic on the axes...

      to be honest, i did manage once... but it was luck of the beginner; i couldn't do it again...

      posted in Plugins
      G
      glro
    • RE: Select ALL component instances to memory buffer.

      @rv1974 said:

      OK.. you select them (at this stage everything is OK, all instances are highlighted); now do Cntl+C and then paste 'em say in a new file.. Nada!
      Only a small portion get pasted- not the whole number of instances.

      2 components
      2 instances A1 et A2 of the same component
      1 instance B of another component

      A1 and B form a group

      i clic on A2, "select all instances"

      A1 and A2 are selected

      control+C

      new file

      copy in place

      i do get the 2 instances A1 and A2, but they are not in the same place they were in the previous file

      son even if i get all the instances, there is a bug, yes

      posted in Plugins
      G
      glro
    • RE: Select ALL component instances to memory buffer.

      @rv1974 said:

      The subject is constantly badly needed. I'm talking about all instances (even deeply nested in other groups\comps. There's already some ruby 'select all instances' but it's not comprehensive- it does not copy all the stuff (only entities on current hierarchy level).
      Thanks in advance.

      i don't experience this problem
      when i right clic on a component, choose "select all instances", even the instances embedded in groups of other components, are selected

      there seems to be at least 2 plugins doing this

      http://sketchucation.com/forums/viewtopic.php?f=323&t=9810&p=470993&hilit=select+all+instances#p470993

      and

      favicon

      (www.smustard.com)

      the one i use is the Smustard R WILSON's

      posted in Plugins
      G
      glro
    • RE: Layer plugin by Didier

      this plugin seems to do the same thing

      http://sketchucation.com/forums/viewtopic.php?t=23029

      i use it from time to time and haven't noticed any problem

      posted in Plugins
      G
      glro
    • RE: Scene Rename not working

      @bagatelo said:

      Why Scene Rename is not working? Someone can help me?
      My SU is 8.
      My Windows is seven 64bits.
      http://www.smustard.com/script/SceneRename

      no

      without more explanations, it seems difficult to help...
      you could open the ruby console and copy here the error message, if any

      or

      use this plugin instead
      http://sketchucation.com/forums/viewtopic.php?t=41787

      give a name to the scene BEFORE it is created, so you don't have to rename it...

      posted in Plugins
      G
      glro
    • RE: Plugin to create a progress bar

      [quote="Squall290586"]

      And for finish, this is a little example:

      
      	pb = Squall;;ProgressBar.new(200); 
      	pb.onCancel() {puts "cancel"}; 
      	pb.process() {
      		i = 0;
      		loop{
      			pb.progress();
      			i += 1;
      	 		break if(i == 200);
      	 		sleep(0.5)
      		};
      	};
      
      

      i just downloaded v 1.29, installed it, and typed the code above in a ruby editor; it works fine

      I am not sure about how to use this plugin in a plugin of mine, though...

      I guess that i have to type this code in mine, and adjust the increase of "i" parameter according to my process; it is correct?

      or could you give a few words of explanation?

      thank you

      posted in Plugins
      G
      glro
    • RE: Plugin to create a progress bar

      @lfloissac said:

      Hi Gregory,

      "Félicitations" (I'm French too) for your plugin.

      I'm using SU Pro - 8.0.14346 and your plugin ProgressBar v1.29
      I've tried to use your plugin and obtain the following message: "Run aborted. Error: progress_bar.rb:48:in `set_file': can't convert nil into String"
      the code used to call the plugin is from your example (see above). Do you have a suggestion ?

      require 'progress_bar.rb'

      pb = Squall::ProgressBar.new(200);
      pb.onCancel() {puts "cancel"};
      pb.process() {
      i = 0;
      loop{
      pb.progress();
      i += 1;
      break if(i == 200);
      sleep(0.5)
      };
      };

      line 48 of progress_bar.rb is
      "@dialog.set_file(Sketchup.find_support_file("progressBar.html", "/Plugins/ProgressBar/html"))"

      maybe it is related to the "progressBar.html" file

      I downloaded version 1.29 too, and the code works perfectly on my computer: a progress bar does appear on my screen

      posted in Plugins
      G
      glro
    • RE: 3D cursor

      @dave r said:

      Not at all. Between us we are making sure this thread has been well and truly hijacked, though.

      concerning global axis...

      blue axis is not a problem

      i have seen a plugin that changes the cursor using a bmp file; i don't remember the name;

      it could be a solution, since a flat cursor could show red and green directions

      how to change the cursor using a bmp or jpg file?

      posted in Plugins
      G
      glro
    • RE: 3D cursor

      @krisidious said:

      Upgrade to 2013 and you'll have a colored axis for your rotate view tool.

      for some reason the screenshot won't grab the cursor. so here it's something like this.

      [attachment=0:1mw5ie7a]<!-- ia0 -->Untitled-1.jpg<!-- ia0 -->[/attachment:1mw5ie7a]

      big improvement... thank you for the information
      it will help to rotate
      and what about the cursor for translation? is it in color also?

      posted in Plugins
      G
      glro
    • RE: 3D cursor

      @rich o brien said:

      Windows > Preferences > Drawing > Display Crosshairs

      it helps but it is not sufficient to know the positiv direction of the axis

      i found this: typing

      result = Sketchup.send_action "selectAxisTool;"
      

      in the ruby console brings 3 colored arrows with a direction on each

      then the positiv directions are obvious

      posted in Plugins
      G
      glro
    • RE: Avant Première : SKETCHUP 2013

      @mogren said:

      Du coté forum en Anglais ça chouine et l'on parle pas mal de Bonzai3D qui est sensiblement le même prix.

      d'apres ce que j'ai vu, bonzai3D c'est comme Sketchup avec tous les plugins en standard

      a peu pres le meme prix que sketchup 2013, sauf que ce n'est pas possible de programmer, et donc d'ecrire ses propres plugins

      pour ecrire ses plugins, il faut passer a formZ, qui coute 2 fois plus cher a peu pres; et le langage de programmation semble beaucoup plus lourd que Ruby

      Donc, je crois qu'a moins d'etre orienté vers la generation de formes organiques, le passage a formZ ne se justifie pas, meme si la documentation technique, le site web, l'utilisation du processeur (64 bits), tout semble beaucoup plus travaillé que l'equivalent pour sketchup

      La comparaison est interessante aussi, je trouve, parce qu'elle permet de valoriser les plugins sketchup existants: environ 500 $, la difference entre le prix de formZ et celui de sketchup2013

      posted in Français
      G
      glro
    • RE: Clear Shortcuts .Reg (Windows Sketchup8 only)

      it seems there is no way through ruby to settle new shortcuts, so you found the solution

      thank you

      posted in Plugins
      G
      glro
    • Mirror de TIG, en francais dans le texte...

      mirror_frmirror_frla fenetre "structure" est source de problemes avec certains plugins

      il y a une partie du plugin de TIG qui ne fonctionne pas sur les ordinateurs en francais: celle qui ferme ou ouvre automatiquement la fenetre "structure"

      simplement parce que en anglais, la fenetre s'appelle "outliner"

      il faut implement modifier le code

        def hide_Outliner_MI()
          @the_Outliner_was_Open_MI=!isRolledUp("structure")
          toggleRollUp("structure")if @the_Outliner_was_Open_MI
        end
        def restore_Outliner_MI()
          toggleRollUp("structure")if @the_Outliner_was_Open_MI
        end
      end#if
      

      je l'ai fait dans le plugin joint (que j'ai appele "mirror_fr.rb" pour faire simple)

      l'idee geniale de TIG c'est qu'il re-ouvre la fenetre "structure" quand l'operation est finie; ca evite de l'ouvrir la fois suivante, quand il faudrait la fermer

      posted in Français
      G
      glro
    • RE: Find a component definition in a list

      @glro said:

      what am i missing? Is it a bug in Ruby?

      sorry for asking the question, i found the answer...

      		for z in (0..715) do
      			#rstrip to suppress whitespaces
      			if references[z].rstrip == ref
      			puts "hello"
      			end #if
      		end #for z in
      

      i had whitespaces at the end of references[z]; to remove them:
      52 str.rstrip
      Returns a copy of str with trailing whitespace removed.

      ERROR: The request could not be satisfied

      favicon

      (www.tutorialspoint.com)

      funny how programming depends so much on very trivial details...

      posted in Developers' Forum
      G
      glro
    • Find a component definition in a list

      i select an object in the model
      If it is a component, the code gets its definition and puts it in a string named "ref"

      for e in selection
              if e.is_a? Sketchup;;ComponentInstance
                  ref = e.definition.name.to_s
              end 
      end
      

      then i want to compare the "ref" to strings in a list (an array?) called "references", and find the one that matches

      for z in (0..715) do
      		if references[z] == ref
      			puts "hello"
      		end
      end 
      

      I know there is one string among the 716 strings, that matches to "ref", but the program never says "hello", doesn't find it

      what am i missing? Is it a bug in Ruby?

      posted in Developers' Forum
      G
      glro
    • RE: [Plugin] Transformation Inspector

      i found the reason

      404 Not Found

      favicon

      (www.ruthless.zathras.de)

      seems that martinrinehart put the minus sign in the wrong place


      rot z

      posted in Plugins
      G
      glro
    • RE: [Plugin] Transformation Inspector

      transf inspector outputi am trying to understand how the transformation matrix works, and i notice a difference between what is shown in the matrix using your plugin, and what is supposed to be shown refering to http://www.martinrinehart.com/models/tutorial/tutorial_t.html

      i took a component, rotated it 45 degrees, and this is what "transformation inspector" shows

      However, according to martinrinehart, i would expect the negative value to be first line second row

      I am surely missing something; but can you explain the differrence?


      rotation matrix

      posted in Plugins
      G
      glro
    • RE: [Plugin] LaunchUp – A Quick Launcher for SketchUp

      @aerilius said:

      "Plugins" don't exist as an entity, they are just text files and Ruby evaluates all as if it was one long seamless script.

      LaunchUp should recognize menu items and commands (like toolbar items) that are created after the file %(#000000)[!LaunchUp.rb] has been loaded (it is important that it is one of the first scripts that is loaded).
      So it searches menu text (+menu path), tooltip, toolbar name, and the file name of the ruby script in which the command was created. It would be easy to return all matching results, but there would be many. The challenge is to sort the results by relevance (which match best to the search term) and with error tolerance. It is possible that a result is too low in the ranking and comes up only after typing more characters.

      When I search "repair" I get "Repair broken lines". Can you give me the exact search terms that you enter, the commands that are missing and the plugins' names (where I can find and install them)?

      OK
      it is just that i had not typed enough letters for the plugin to be able to be recognized by launchup
      it seems to be working fine

      posted in Plugins
      G
      glro
    • 1 / 1