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] Snapshot – (1.0.1) β€” updated 09.10.2012

      @driven said:

      @glro said:

      it doesn't help...

      oops,I missed a step,,, your ruby file needs to point to /iConEdit/test_3_iConEdit.html

      @unknownuser said:

      i get 2 errors messages

      the nicEdit.js error on line 169 character 2 is a tab and unchanged, I only tidied up the text sizes and the color picker, so revert to the other if you still have the error.
      john

      i came back to the previous version of nice edit.js and i changed the html file name

      now the html windows opens normally

      i realised that i have to click on "placeholder text" to make active the menu above; but still, i get an error message

      i click "si" and if i type the image address, it appears in the html windows, but it doesn't fit ...

      nothing is simple...


      iconeditor 04 html.jpg

      posted in Plugins
      G
      glro
    • RE: [Plugin] Snapshot – (1.0.1) β€” updated 09.10.2012

      i added the html to the iConEdit folder in plugins and replaced the nicEdit.js in the nicEdit folder.

      i didn't add the text in the css section, because i don't know where to add it exactly

      it doesn't help...

      i get 2 errors messages


      iconeditor 02 html.jpg


      iconeditor 03 html.jpg

      posted in Plugins
      G
      glro
    • RE: [Plugin] Snapshot – (1.0.1) β€” updated 09.10.2012

      @driven said:

      Hi giro,

      good you got that far, shame it's not all working...

      if you hover over or click on the "Placeholder text", do you get the resize handles[six green squares]?

      yes i can resize the handles, both in sketchup and in chrome

      and i realize now that the menu in the html window is activ, but only once... the first time.

      if i close it and open it again, it is not active anymore.

      If i close sketchup and reload the plugin, it depends...

      What would be the next step: "file://" ? what is expected by the program at this point?


      iconeditor 01 html.jpg

      posted in Plugins
      G
      glro
    • RE: [Plugin] Snapshot – (1.0.1) β€” updated 09.10.2012

      i tried

      on a PC

      following your indications, i managed to open a html

      but then, i don't know how to proceed

      the buttons in the html window are not active

      i learnt a lot, though, trying to understand your code

      thank you


      iconeditor html.jpg

      posted in Plugins
      G
      glro
    • RE: [Plugin] Snapshot – (1.0.1) β€” updated 09.10.2012

      @driven said:

      ...
      can anyone else see any advantages to this concept or should I just finish it for myself and mac only.?

      this plugin could be a useful addition to ae snapshot, because, as i understand it, it would make possible to add information on the thumbnail

      when trying to retrieve a model, you would have the image, and also text, to make sure it is the model you are looking for

      posted in Plugins
      G
      glro
    • RE: [Plugin] Snapshot – (1.0.1) β€” updated 09.10.2012

      @driven said:

      Hi Giro,
      I just popped in to post another idea and thought I'd use your query to clarify some thoughts, hope you don't mind.
      @glro said:

      one step further...
      would it be possible to:

      scan a folder
      open automatically all skp files in the folder

      'SketchUp Menu' >> File >> Open >> Browse to Folder >> Select All .skp files >> Click 'Select'

      on my computer this doesn't open all skp files automatically...
      i have to open each file manually one by one

      but you are right about the snapshot: to make sure it is taken with the model in the right position, it would be better to have a look on it

      maybe i can find the code to open automatically all files in a folder, one after the other, and set the zoom coefficient so that the model is visible completely

      the only thing to do manually would be to gather all the skp files in a folder and then launch the plugin

      i'll work on it soon

      posted in Plugins
      G
      glro
    • RE: [Plugin] Snapshot – (1.0.1) β€” updated 09.10.2012

      one step further...

      would it be possible to:

      scan a folder
      open automatically all skp files in the folder
      produce the thumbnail and the file shortcut
      store them in the specified folder?

      Because the plugin is great to keep track of the future skp files, and it would be nice to collect the informations also for the already existing skp files...

      posted in Plugins
      G
      glro
    • RE: [Plugin] Snapshot – (1.0.1) β€” updated 09.10.2012

      i replaced the previous file in the rbz, by this new one, and yes, now it works perfectly

      a nice tool to keep tracks, and retrieve a lost model

      thank you

      posted in Plugins
      G
      glro
    • RE: [Plugin] Snapshot – (1.0.1) β€” updated 09.10.2012

      Here is the error message:

      "Error: #<TypeError: C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/ae_Snapshot/Snapshot.rb:319:in []': can't convert String into Integer> C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/ae_Snapshot/Snapshot.rb:319 C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/ae_Snapshot/Snapshot.rb:319 C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/ae_Snapshot/Snapshot.rb:318:in each'
      C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/ae_Snapshot/Snapshot.rb:318
      (eval):155:in `load'
      (eval):155"

      line 319

      posted in Plugins
      G
      glro
    • RE: [Plugin] Snapshot – (1.0.1) β€” updated 09.10.2012

      sorry to write that i still have an error message


      string to integer error

      posted in Plugins
      G
      glro
    • RE: [Plugin] Snapshot – (1.0.1) β€” updated 09.10.2012

      Here is what i get when i type 'load "ae_Snapshot/Snapshot.rb" 'in the ruby console

      load "ae_Snapshot/Snapshot.rb"
      Error: #<ArgumentError: C:/Archivos de programa/Google/Google SketchUp 8/Plugins/ae_Snapshot/Snapshot.rb:309:in `initialize': wrong number of arguments (0 for 1)>

      posted in Plugins
      G
      glro
    • RE: [Plugin] Snapshot – (1.0.1) β€” updated 09.10.2012

      no, nothing in the ruby console

      it is an error message when sketchup loads all the plugins

      no numbers


      erreur chargement

      posted in Plugins
      G
      glro
    • RE: [Plugin] Snapshot – (1.0.1) β€” updated 09.10.2012

      when i launch sketchup again, i get "wrong number of arguments (0 for 1)"

      The plugin does take a shot when i click on the button

      but i cannot get the snapshot settings windows on the screen anymore

      it may be because of my computer, if i am the only one to have this problem...

      posted in Plugins
      G
      glro
    • RE: [Plugin] Snapshot – (1.0.1) β€” updated 09.10.2012

      OK

      yes it helps

      when i close and open sketchup again, the icon and snapshot settings windows appear on the screen

      but i cannot save the parameters (clicking on "OK" doesnt change anything)

      i notice the lines you added to create a file shortcut; since this is the only option i am interested in, i'll try to add them to the previous version, that worked perfectly on my computer

      thank you

      posted in Plugins
      G
      glro
    • RE: [Plugin] Snapshot – (1.0.1) β€” updated 09.10.2012

      @aerilius said:

      I first thought it might have to do with upgrading the settings (because the previous version is much different). But I just tested it from 0.1.1 to 0.3.0 and it works for me.

      You mean the settings dialog does not appear when you click the gear icon on the toolbar (there is no ae snapshot menu). Can you open the Ruby Console, click the gear button and give me the error messages if there are any.
      Then copy&paste " AE::Snapshot.options={}" into the console and press the gear button again. Does it then work?

      yes, the setting dialog does not appear;
      the gear icon does'nt appear either...
      just a small reactangle where i cannot click ...

      how do you explain the differences between the setting dialog window i get when i double click directly on the file "settings_dialog.htm" and the one you pasted in you message?

      my guess is that it is linked to the problem


      snapshot icon

      posted in Plugins
      G
      glro
    • RE: [Plugin] Snapshot – (1.0.1) β€” updated 09.10.2012

      @aerilius said:

      I updated the plugin. I think it will now fit all your needs because you can now make your own buttons πŸ˜‰
      @glro, can you test if the shortcuts work as expected?

      i tested, but there might be a problem

      no box is opened on my scree when i check "ae snapshot" in the menu

      it might come from the html file

      in the pop up windows you show in the first message of this thread, i read "create a shortcut"

      but when i click on the html file in "ae_snapshot" folder, i don't see the same things


      html settings differences

      posted in Plugins
      G
      glro
    • RE: [Plugin] Snapshot – (1.0.1) β€” updated 09.10.2012

      @glro said:

      @aerilius said:

      @driven said:

      @glro said:

      is it possible to create a shortcut to a file using ruby?

      That might be a the easiest solution! I'll try it!

      i added some code to yours at the end of "self.save_as(filepath)" method

      
      > filepath2 = (filepath.split("/")[0..-2]).join("/")
      > nom_model = m.title
      > # name of the text file to put the shortcut in
      > nom_bat = filepath2 + "/" + nom_model + ".bat"
      > 	
      > #open this file
      > aFile = File.new(nom_bat,"w")
      > 
      > pathmodel = m.path
      > 
      > #write the file shortcut
      > aFile.puts("call "+pathmodel)
      > aFile.puts("end")
      > aFile.close
      > 
      

      a black cmd window is opened... must be closed manually, unless you embed the .bat file in a .js file...
      it is basic but it works...

      Doesn't work if there is a white space in the file address

      additional code is needed

      
      nom_bat2 = nom_bat.to_s
      
      if nom_bat2.count(nom_bat2, " ") != 0
      UI.messagebox("no white space in the file address")
      fail
      end
      
      posted in Plugins
      G
      glro
    • RE: [Plugin] Snapshot – (1.0.1) β€” updated 09.10.2012

      @aerilius said:

      @driven said:

      @glro said:

      is it possible to create a shortcut to a file using ruby?

      That might be a the easiest solution! I'll try it!

      i added some code to yours at the end of "self.save_as(filepath)" method

      
      filepath2 = (filepath.split("/")[0..-2]).join("/")
      nom_model = m.title
      # name of the text file to put the shortcut in
      nom_bat = filepath2 + "/" + nom_model + ".bat"
      	
      #open this file
      aFile = File.new(nom_bat,"w")
      
      pathmodel = m.path
      
      #write the file shortcut
      aFile.puts("call "+pathmodel)
      aFile.puts("end")
      aFile.close
      
      

      a black cmd window is opened... must be closed manually, unless you embed the .bat file in a .js file...
      it is basic but it works...

      posted in Plugins
      G
      glro
    • RE: [Plugin] Snapshot – (1.0.1) β€” updated 09.10.2012

      @aerilius said:

      @driven said:

      Works on mac

      Great! I think there was once a discussion about integrate better thumbnails on OS X, as far as I remember that would require XCode and Objective C (?). I couldn't do it and can't test it.
      If GraphicsConverter has a command line interface, that would make it much easier!

      @glro said:

      C, or java programming would be needed, yes; to create a special file browser hat would add a meta data (the link to the skp file)

      That would be almost reinventing the wheel πŸ˜‰ . I would prefer using the system's thumbnailing (Windows Vista+ uses a thumbnail folder and a database). We would need to register a thumbnail to the database. As far as I know, there are only APIs for C(++, # ...) and I have not enough experience. I will see if someone else can help me, or if we can get equivalent improvements into SketchUp.

      @glro said:

      is it possible to create a shortcut to a file using ruby?

      That might be a the easiest solution! I'll try it!

      There is a simple way: creating a batch file, for example:
      "@ECHO OFF
      call F:\000_experience.sauvb\programmation\ruby\essai_plateforme.skp
      end"

      this opens the console
      to avoid opening the console, write a second file

      "var WindowStyle_Hidden = 0
      var objShell = WScript.CreateObject("WScript.Shell")
      var result = objShell.Run("cmd.exe /c shortcut.bat", WindowStyle_Hidden)"

      both are text files, easy to write in ruby...

      posted in Plugins
      G
      glro
    • RE: [Plugin] Snapshot – (1.0.1) β€” updated 09.10.2012

      @aerilius said:

      @glro said:

      An extension to the plugin might be a button that would open a specific file browser (like Xnview) and by looking through the thumbnails, would open the sketchup model by clicking on the thumbnail

      That would require to know from a thumbnail's name where the skp file is located, but it's difficult if all thumbnails are in the same folder. Better would be to integrate the large thumbnails in the operating system's thumbnail system (but I don't know how to do that on Windows, as far as I understand it would require C programming).
      ...

      maybe just a shortcut to the skp file, created by the pluging when the picture is taken, and stored in the same folder
      is it possible to create a shortcut to a file using ruby?

      posted in Plugins
      G
      glro
    • 1 / 1