sketchucation logo sketchucation
    • 登入
    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!
    🔌 Smart Spline | Fluid way to handle splines for furniture design and complex structures. Download

    [Plugin][$] 3D Tree Maker - New version 1.10.14

    已排程 已置頂 已鎖定 已移動 Plugins
    322 貼文 79 Posters 174.3k 瀏覽 79 Watching
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • ppoublanP 離線
      ppoublan
      最後由 編輯

      @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
      
      1 條回覆 最後回覆 回覆 引用 0
      • ppoublanP 離線
        ppoublan
        最後由 編輯

        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

        1 條回覆 最後回覆 回覆 引用 0
        • A 離線
          archigrafix
          最後由 編輯

          @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 😉

          Agir comme un homme de pensée, et penser comme un homme d'action...

          1 條回覆 最後回覆 回覆 引用 0
          • K 離線
            kaas
            最後由 編輯

            @alan fraser said:

            Brilliant plugin, Pascal...and very configurable.... 👍 👍 👍

            Brilliant indeed!

            The plugin is also very good at making 'low' polygon count trees. The picture is a tree made of nearly 3k faces and 6k edges (mostly the trunk and 3d branches), the leaf size is maximum with a branch texture applied to it.


            treeMaker02.jpg

            1 條回覆 最後回覆 回覆 引用 0
            • KrisidiousK 離線
              Krisidious
              最後由 編輯

              You guys are killin me... I want mine to work.

              By: Kristoff Rand
              Home DesignerUnique House Plans

              1 條回覆 最後回覆 回覆 引用 0
              • davids90gtD 離線
                davids90gt
                最後由 編輯

                @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.

                1 條回覆 最後回覆 回覆 引用 0
                • KrisidiousK 離線
                  Krisidious
                  最後由 編輯

                  @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...

                  By: Kristoff Rand
                  Home DesignerUnique House Plans

                  1 條回覆 最後回覆 回覆 引用 0
                  • ppoublanP 離線
                    ppoublan
                    最後由 編輯

                    @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

                    1 條回覆 最後回覆 回覆 引用 0
                    • ppoublanP 離線
                      ppoublan
                      最後由 編輯

                      @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

                      1 條回覆 最後回覆 回覆 引用 0
                      • ppoublanP 離線
                        ppoublan
                        最後由 編輯

                        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

                        1 條回覆 最後回覆 回覆 引用 0
                        • KrisidiousK 離線
                          Krisidious
                          最後由 編輯

                          I get the same error in both SU8 and SU2013.

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

                          Could this be a Pro Problem?

                          By: Kristoff Rand
                          Home DesignerUnique House Plans

                          1 條回覆 最後回覆 回覆 引用 0
                          • Alan FraserA 離線
                            Alan Fraser
                            最後由 編輯

                            Kris, are you running SU in Administrator mode? You can set the program exe file to do this every time in Properties. I had to do this some time ago when a few of Fredo's scripts were acting up (before he updated the library file)
                            I'm not saying it'll solve the problem, but it's worth a try. I've had that error in the past with other Rubies...infuriating when the 'missing' file is staring you in the face.

                            3D Figures
                            Were you required to walk 500 miles? Were you advised to walk 500 more?
                            You could be entitled to compensation. Call the Pro Claimers now!

                            1 條回覆 最後回覆 回覆 引用 0
                            • TIGT 離線
                              TIG Moderator
                              最後由 編輯

                              Check that everyone has FULL permissions to your Plugins folder [and that it trickles down to all subfolders/files etc...]
                              If you have a 'CREATOR OWNER' listed under Security try to remove it...
                              Use the 'Advanced...' options to Edit that...
                              Add yourself [or your 'group'] as the Owner.
                              The only three entries you need are SYSTEM, users-group and admins-group - and perhaps yourself - BUT you should be in the other two groups anyway!
                              You don't really need CREATOR OWNER or Trusted Installer...
                              Have the inherit properties check-box unchecked!

                              That combined with running it as administrator might alleviate these issues... 😕

                              TIG

                              1 條回覆 最後回覆 回覆 引用 0
                              • KrisidiousK 離線
                                Krisidious
                                最後由 編輯

                                Ok, I deleted Creator Owner and hit all of the permissions again.

                                ran as administrator... same thing.

                                Capturetreemaker2.JPG

                                By: Kristoff Rand
                                Home DesignerUnique House Plans

                                1 條回覆 最後回覆 回覆 引用 0
                                • massimoM 離線
                                  massimo Moderator
                                  最後由 編輯

                                  Do you have the same settings also for "Users"? If not, do the same for that.

                                  1 條回覆 最後回覆 回覆 引用 0
                                  • KrisidiousK 離線
                                    Krisidious
                                    最後由 編輯

                                    @unknownuser said:

                                    path='C:/Program Files (x86)/Sketchup/Sketchup 2013/Plugins/3darcstudio/3darcstudiotree.rbs'
                                    C:/Program Files (x86)/Sketchup/Sketchup 2013/Plugins/3darcstudio/3darcstudiotree.rbs
                                    File.exist?(path)
                                    true
                                    Load Path
                                    Error: #<NameError: (eval):155: uninitialized constant Path>
                                    (eval):155
                                    path='C:/Program Files (x86)/Sketchup/Sketchup 2013/Plugins/3darcstudio/3darcstudiotree.rbs'
                                    C:/Program Files (x86)/Sketchup/Sketchup 2013/Plugins/3darcstudio/3darcstudiotree.rbs
                                    load path
                                    Error: #<SyntaxError: (eval):155:in load': C:/Program Files (x86)/Sketchup/Sketchup 2013/Plugins/3darcstudio/3darcstudiotree.rbs:1: no .<digit> floating literal anymore; put 0 before dot RBS1.0... ^ C:/Program Files (x86)/Sketchup/Sketchup 2013/Plugins/3darcstudio/3darcstudiotree.rbs:1: syntax error, unexpected tINTEGER RBS1.0... ^ C:/Program Files (x86)/Sketchup/Sketchup 2013/Plugins/3darcstudio/3darcstudiotree.rbs:1: Invalid char \010' in expression>
                                    (eval):155
                                    (eval):155

                                    By: Kristoff Rand
                                    Home DesignerUnique House Plans

                                    1 條回覆 最後回覆 回覆 引用 0
                                    • KrisidiousK 離線
                                      Krisidious
                                      最後由 編輯

                                      yes... have it at the same.

                                      Capturetreemaker3.JPG

                                      By: Kristoff Rand
                                      Home DesignerUnique House Plans

                                      1 條回覆 最後回覆 回覆 引用 0
                                      • Alan FraserA 離線
                                        Alan Fraser
                                        最後由 編輯

                                        That looks similar to my Plugins properties...except I have "CREATOR OWNER" on top of SYSTEM; and "Administrators(Alan-PC/Administrators)" underneath it.

                                        3D Figures
                                        Were you required to walk 500 miles? Were you advised to walk 500 more?
                                        You could be entitled to compensation. Call the Pro Claimers now!

                                        1 條回覆 最後回覆 回覆 引用 0
                                        • TIGT 離線
                                          TIG Moderator
                                          最後由 編輯

                                          Remove 'Trusted Installer'.
                                          The 'CREATOR OWNER' is optional - but if it inherits permissions from its container, then it might screw up things...
                                          Use the minimum number of 'users/groups' that you can get away with...
                                          Ensure that they ALL have FULL permissions.
                                          Do no 'inherit' any permissions...

                                          TIG

                                          1 條回覆 最後回覆 回覆 引用 0
                                          • KrisidiousK 離線
                                            Krisidious
                                            最後由 編輯

                                            Done... Still problem persists...

                                            Capturetreemaker4.JPG

                                            By: Kristoff Rand
                                            Home DesignerUnique House Plans

                                            1 條回覆 最後回覆 回覆 引用 0
                                            • 1
                                            • 2
                                            • 8
                                            • 9
                                            • 10
                                            • 11
                                            • 12
                                            • 16
                                            • 17
                                            • 10 / 17
                                            • 第一個貼文
                                              最後的貼文
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement