sketchucation logo sketchucation
    • Login
    1. Home
    2. ppoublan
    3. Posts
    πŸ›£οΈ Road Profile Builder | Generate roads, curbs and pavements easily Download
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 9
    • Posts 116
    • Groups 2

    Posts

    Recent Best Controversial
    • RE: [Plugin][$] 3D Tree Maker - New version 1.10.14

      Hi "lele_poggi",
      I need to understand if its due the

      • the setup of the plugin that was incomplete
      • or the configuration (I introduced locale language support)
      • or other bug in the code.
        Please provide :
      • the platform you are using (Mac/Windows)
      • the way you setup the tool (using auto install from skecthucation or rbz extenstion installation or zip).
      • the error message you got when you start SU or when you run the plugin

      Then if you could open the ruby console, type the following and provide the result

      • Sketchup.find_support_file("Plugins", "")
        Then please provide the listing of files and dirs found at this path
        -> this to be sure the plugin has been setup correctly

      • Type into the ruby console : Sketchup.get_locale
        -> It may be linked to the new support of different languages, maybe I need to add code when unsupported language platform
        Yours
        Pascal

      posted in Plugins
      ppoublanP
      ppoublan
    • RE: [Plugin][$] 3D Tree Maker - New version 1.10.14

      Hi Bob James,

      Did you setup the plugin from the Sketchucation PluginStore or via add extention in SU ?
      Try to quit and restart SU, do you get the same error ?
      It looks like 3DTreeMaker has not been setup in the standard Sketchup Plugins Folder (Plugins Small Set). Could you please provide a listing of files/dir in your standard Sketchup Plugins Folder and list of files/dir in your Plugins/3Darcstudiotree folder ?

      Once SU launched, open the ruby console, type (copy and run) this and provide results of :
      Sketchup.find_support_file("Plugins", "")
      Sketchup.find_support_file("Plugins/3darcstudiotree", "")

      Yours
      Pascal

      PS : does anybody got the same kind of error ?

      After successful installation, footprint of Tree Maker should be:
      in the standard Sketchup Plugins folder - the one returned by Sketchup.find_support_file("Plugins", "") :

      • one added file : 3darcstudiotreeloader.rb
      • one added directory : 3darcstudiotree
      posted in Plugins
      ppoublanP
      ppoublan
    • RE: [Plugin][$] 3D Tree Maker - New version 1.10.14

      New version available that add some features asked in previous messages.
      See first page of this thread.
      Pascal

      posted in Plugins
      ppoublanP
      ppoublan
    • RE: Extensions not loaded at startup and Extensions list empty

      ...
      noextensions.JPG

      @unknownuser said:

      "What do you get with:
      Sketchup.find_support_file('Plugins')"

      I got this : C:/Program Files (x86)/SketchUp/SketchUp 2013/Plugins

      @unknownuser said:

      Typically:
      C:/Program Files/SketchUp/SketchUp 2013/Plugins
      If you type this:
      File.exist?(Sketchup.find_support_file('Plugins'))
      is it 'true' ?

      Yes I got "true"

      @unknownuser said:

      It should be...
      If you have renamed the Plugins folder it will not be found ??
      Please type this and post the result:
      Dir.entries(f=Sketchup.find_support_file('')).each{|d|p d if File.directory?(File.join(f,d))};puts
      It will print a list of all folders in the Plugisn folder...
      Typically it'll list:
      "."
      ".."
      "Components"
      "Exporters"
      "Importers"
      "LayOut"
      "Materials"
      "Plugins"
      "Resources"
      "Style Builder"
      "Styles"
      "Support"
      "Tools"
      Depending on your installation...

      Here is a copy of the console after type the commands :

      $LOAD_PATH
      ["C:/Program Files (x86)/SketchUp/SketchUp 2013/Tools"]

      Sketchup.find_support_file('Plugins')
      C:/Program Files (x86)/SketchUp/SketchUp 2013/Plugins
      File.exist?(Sketchup.find_support_file('Plugins'))
      true

      Dir.entries(f=Sketchup.find_support_file('')).each{|d|p d if File.directory?(File.join(f,d))};puts
      "."
      ".."
      "Components"
      "Exporters"
      "Importers"
      "LayOut"
      "Materials"
      "Plugins"
      "resources"
      "Style Builder"
      "Styles"
      "Support"
      "Tools"

      nil

      @unknownuser said:

      Is it actually named "Plugins" ?
      No trailing space or accented characters etc ??
      If not, then rename it and restart SketchUp...

      I renamed this dir, restarted Sketchup. No error message. Same issue (rb not loaded).

      plugins.JPG
      tools.jpg

      Here is a list of files in Plugins directory :

      su_advancedcameratools.rb
      su_dynamiccomponents.rb
      su_sandbox.rb
      su_webtextures.rb

      and 4 directories with the same name (without .rb)

      @unknownuser said:

      Also please list the .rb files in the 'Tools' folder - unlike v8 other files are now all in the 'Plugins' folder - there should only be three:
      sketchup.rb
      langhandler.rb
      extensions.rb

      Here are list of files in Tools directory :

      extensions.rb
      langhandler.rb
      sketchup.rb

      all with the same date. no other file.

      Do not understand why LOAD_PATH does not include the Plugins folder.
      Attached is a screen capture showing the issue, just after SU starts and images of Sketchup 2013, Plugins and Tools directories.
      I checked again and again the rights : Full control to Administrators, Users, and Everyone.

      ... will become crazy 😞

      posted in Plugins
      ppoublanP
      ppoublan
    • RE: Extensions not loaded at startup and Extensions list empty

      Hi Tig,
      Thanks for your answer.
      Seems you found the issue ! Plugins dir missing into $LOAD_PATH
      But I do not know how to fix it.
      Just after starting SU, if I run $LOAD_PATH into the console I got the Tools directory as single element of an array, but not the Plugins directory. On the PC where all works fine I've got both directories Tools and Plugins.
      Tried to re-install SU. Same.
      Where are these path stored ? registry entry ? elsewhere ? another Tool .rb file not completely run ?

      Will continue to look at this.
      Yours

      posted in Plugins
      ppoublanP
      ppoublan
    • Extensions not loaded at startup and Extensions list empty

      Dear all,
      With SU Make 2013, on Windows, I'm facing a strange behavior.
      I've 2 PCs and it works fine on one of them, but I can't find the difference.

      Here is the problem on one PC :

      • I'm installing SU Make 2013: all is ok
      • I'm adding an extension : all is ok until I quit SU.
      • I restart SU, no extension is loaded, no "Plugins" menu displayed, and in Windows/Preferences dialog I got an empty list of extensions (even the sandbox and standar su extensions have disapeared.
      • If from there I reinstall anyone of the extensions, all the other one reappears and are loaded and work fine.

      I checked all the security issues with files and dirs as described in many other threads but did not find how to fix it.
      If I load manually the scripts from the console it works.

      My first question is anybody else faced the same issue ?

      Yours
      Pascal

      posted in Plugins
      ppoublanP
      ppoublan
    • RE: Material.Texture not working as explained in the doc

      Thanks a lot for your answer.
      F.....g doc and su apis.

      posted in Developers' Forum
      ppoublanP
      ppoublan
    • Material.Texture not working as explained in the doc

      Dear all,
      I'm becoming crazy with the materials and textures classes.

      I want to create a new material, based on an existing one applied to an object, with the same texture, but to apply different colorizations.

      So I tried :

      lets say the object is selected :

      entity=Sketchup.active_model.selection[0]
      existingmat = entity.material
      if entity.material.texture != nil
      newmat = Sketchup.active_model.materials.add
      newmat.texture = existingmat.texture
      end

      The SU documentation says that "Material.texture=" method receives as an argument a texture class or nil.
      In fact when running this code, I got the message from Sketchup : #<ArgumentError: Texture filename or nil required>

      I tried this with existing textures in sketchup.

      PS : another strange thing, if i ask for texture.filename, it returns "xxxxname.jpg" even if the jpg file does not exists on the disk (in fact the skm file only exists).

      So do I have to export the texture with texture writer to create an copy of an existing texture ?

      Yours
      Pascal

      PS : trying to put the last updates on Tree Maker Plugin.

      posted in Developers' Forum
      ppoublanP
      ppoublan
    • RE: [Plugin][$] 3D Tree Maker - New version 1.10.14

      Hi Gilles,
      When creating/testing a new tree, you can save it as a new template (right click/save as template) each time you are satisfied with the result. This way you can restart from your last template saved.
      i'm really late... but still want to release new version before the end of the year, at least in beta stage.

      posted in Plugins
      ppoublanP
      ppoublan
    • RE: [Plugin][$] 3D Tree Maker - New version 1.10.14

      Sorry for that,
      I had problems with my website.
      Now available online : http://www.3darcstudio.com/downloads-files.html

      Still working on a new version with better User Interface (web) and proxy setting (to minimize file size).

      Will post here news when available.

      Yours

      posted in Plugins
      ppoublanP
      ppoublan
    • Selection order

      Dear all,
      Is there a way, within a script, when iterating all objects into model.selection to retrieve the order they have been put into it ?
      It looks like the index of selection array is not necessarily the order objects have been selected.
      Sorry if it has already been discussed here, I looked into the forum but did not find clear answer to this question.
      Yours
      Pascal

      posted in Developers' Forum
      ppoublanP
      ppoublan
    • RE: [Plugin][$] 3D Tree Maker - New version 1.10.14

      @oxer said:

      You can obtain very realistic trees, thanks again!! πŸ‘
      Playing with Vine Tree, I have changed the leafs for high details leafs with new texture and I add more details to the flowers, rendering with Thea.
      [attachment=1:2v25delg]<!-- ia1 -->Parras2.jpg<!-- ia1 -->[/attachment:2v25delg]
      Texture trunk changed.
      [attachment=0:2v25delg]<!-- ia0 -->Parras.jpg<!-- ia0 -->[/attachment:2v25delg]

      Waouah ! Thanks for sharing your results.
      I'm working on the web UI interface. Just started so it will need some time, but will be easier to play with parameters. I will ask to those who created great trees to share them in order to include it into the next release (if volonteers of course).
      Yours

      posted in Plugins
      ppoublanP
      ppoublan
    • RE: Browser called from SU and html code

      Thanks a lot Thom, the meta http-equiv at least corrected the thing on my PC.
      Do not know if it will work on all configurations but with this line :
      <meta http-equiv="X-UA-Compatible" content="IE=10">
      I'm able to use input of type range.
      Pascal

      posted in Developers' Forum
      ppoublanP
      ppoublan
    • Browser called from SU and html code

      Dear all,
      I'm trying to build new User Input module for a pluggin. Exchange of datas between Sektchup and the webdialog are ok. But When I try to add some HTML 5 code to create better input, I'm surprised to see that the code is not displayed the same way if called from SU or just opening the HTML file with a browser.
      Here is an example (at left from a browser), at right from SU where the slider disapear:
      capture01.JPG
      I initialy thought it was due to obsolete versions, so I tried from Windows 8 Pro and Sketchup 2013. Same problem.
      What is the browser and version called by SU when WebDialog is created ? Can it be changed ? What version of HTML is supported ?
      Yours
      Pascal

      posted in Developers' Forum
      ppoublanP
      ppoublan
    • RE: [Plugin][$] 3D Tree Maker - New version 1.10.14

      @peerman said:

      Great plugin!! I have a question though, is it possible to make the leaves and/or flowers have only one color instead of the random ones? I get a lot of different materials that I must change in order for Vray to render them in the correct color. Vray doesn't automatically apply the color to the greyscale image. Another advantage is that the materiallist keeps a bit more organized. For now I will ungroup the tree when it's in the shape I want and then change the material on the leaf component. And then to create some vray proxies!!

      Thanks for this plugin!!

      Yes I understand.
      Currently I'm creating 8 small variations of the chosen color to make leaves/flowers each a little bit different. These materials are randomly applied to each component.
      I will add in the futur the option to apply only one material.
      Until this is implemented, you can edit the component, and appy your color/material directly to the faces, this will overwrite the color applied to the component. So this way you will not have to change each color.
      Yours
      Pascal

      posted in Plugins
      ppoublanP
      ppoublan
    • RE: [Plugin][$] 3D Tree Maker - New version 1.10.14

      Dear all,
      Here is a new tree template I like.
      Extract the zip file to the plugins/3darcstudio directory and choose Vine Tree template when creating a tree.
      Yours

      tree08.jpg

      tree maker template to copy to plugin 3darcstudio directory

      posted in Plugins
      ppoublanP
      ppoublan
    • RE: [Plugin][$] 3D Tree Maker - New version 1.10.14

      @krisidious said:

      @davids90gt said:

      @krisidious said:

      On SU 2013 Win, I'm getting this error on startup.

      no such file to load -- 3darcstudio/3darcstudiotree.rbs
      Error Loading File 3darcstudiotreeloader.rb
      no such file to load -- 3darcstudio/3darcstudiotree.rbs

      The file is in the location specified.

      I'm getting this exact same thing. I have full permissions.

      I'm not crazy... WooHoo...

      Hi,
      I made tests with SU 2013 (free version). Seems to work, so I Will need more info to find the error cause.

      • any other info within message box other than error loading file ?
      • the loader is not scrambled and only few lines (less than 10), if someone else got similar issue when migrating to SU2013 ? Here is the code (I only removed the dots at the end of lines between =begin and =end.

      =begin
      Copyright 2012-2013 3DArcStudio
      All Rights Reserved
      THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
      WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
      MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
      =end

      require 'sketchup.rb'
      require 'extensions.rb'

      extension = SketchupExtension.new '3DArcStudio Tree Maker', '3darcstudio/3darcstudiotree.rbs'
      extension.creator = 'Pascal Poublan'
      extension.version = '093'
      extension.copyright = '2013, 3D Arc Studio. All rights reserved.'
      extension.description = 'Sketchup Generic Trees Maker'
      Sketchup.register_extension extension, true

      posted in Plugins
      ppoublanP
      ppoublan
    • RE: [Plugin][$] 3D Tree Maker - New version 1.10.14

      @archigrafix said:

      @ppoublan said:

      ok I got it.
      Need to publish new version.
      Really strange that ruby code (without SU calls) not interpreted the same way.
      Will fix this today.
      Yours
      Pascal

      Thanx to help Pascal
      I will wait for it πŸ˜‰

      Beta v0.93 published : (should work with SU7, but still to be tested)

      • Fixed call to hue2rgb code incorrectly interpreted by SU7 (inline def usage)
      • Converted skp leaves components to SU7 file format (hope it will work also with SU8)
      • Fix of β€œup” flowers parameter bug
      • Removed the dot at the end of comments between =begin and =end commands that generates errors loading script in some cases

      Can be found here : http://3darcstudio.com/en/downloads-files/sketchup-plugins/206-3d-tree-maker-sketchup-plugin

      Yours
      Pascal

      posted in Plugins
      ppoublanP
      ppoublan
    • RE: [Plugin][$] 3D Tree Maker - New version 1.10.14

      ok I got it.
      Need to publish new version.
      Really strange that ruby code (without SU calls) not interpreted the same way.
      Will fix this today.
      Yours
      Pascal

      posted in Plugins
      ppoublanP
      ppoublan
    • RE: [Plugin][$] 3D Tree Maker - New version 1.10.14

      @archigrafix said:

      Thanx to help TIG

      I have saved all leaves components in version 7 and now I get it to start...
      Anyway it creates the trunk but no leaves and I get this error message from ruby console:

      Error: #<NoMethodError: undefined method hue2rgb' for #<SketchupExtension::M3darcstudiotree::Cf3das_Colorset:0xf8a1cf0>> (eval):1774:in hsltorgb'
      (eval):1648:in initialize' (eval):1628:in each'
      (eval):1628:in initialize' (eval):2559:in new'
      (eval):2559:in drawstems' (eval):2394:in draw'
      (eval):667:in f3das_loadconfiguration' (eval):4443:in require'
      (eval):4443:in `call'

      I need to debug with SU7. Seems SU7 interprets differently the ruby code. hue2rgb is a local definition within another one (hsltorgb). Should not be a method of the class. (is not with SU8).

      Here is the code that is working for SU8 and not SU7 if someone has an idea

      def hsltorgb(h, s, l)
      		if h<0.0
      			h=h+1.0
      		end
      		if h>1.0
      			h=h-1.0
      		end
      		if s<0.01
      			s=0.01
      		end
      		if s>0.99
      			s=0.99
      		end
      		if l<0.01
      			l=0.01
      		end
      		if l>0.99
      			l=0.99
      		end
      		if(s == 0)
      			r = g = b = l
      		else
      			def hue2rgb(p, q, t)
      				if(t < 0)
      					t = t + 1.0
      				end
      				if(t > 1)
      					t = t - 1.0
      				end
      				if(t < 1.0/6.0)
      					return p + (q - p) * 6.0 * t
      				end
      				if(t < 1.0/2.0)
      					return q
      				end
      				if(t < 2.0/3.0)
      					return p + (q - p) * (2.0/3.0 - t) * 6.0
      				end
      				return p
      			end
      			q = l < 0.5 ? l * (1.0 + s) ; l + s - l * s
      			p = 2.0 * l - q
      			r = hue2rgb(p, q, h + 1.0/3.0)
      			g = hue2rgb(p, q, h)
      			b = hue2rgb(p, q, h - 1.0/3.0)
      		end
      		return [r * 255, g * 255, b * 255]
      	end
      
      posted in Plugins
      ppoublanP
      ppoublan
    • 1 / 1