sketchucation logo sketchucation
    • Login
    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!
    Mac User? | Join the Rayscaper Beta for Mac Learn More

    Is there a list of conflicting plugins?

    Scheduled Pinned Locked Moved Plugins
    24 Posts 7 Posters 5.9k Views 7 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      Jim
      last edited by

      sunposition.rb by cerebralmeltdown over-rides Ruby built-in methods Float#round, and can effect other scripts.

      via http://forums.sketchucation.com/viewtopic.php?f=323&t=28586&start=240#p265784

      Hi

      1 Reply Last reply
      Reply Quote 0
      • thomthomT
        thomthom
        last edited by

        @jim said:

        Cerebral Meltdown SunPosition

        • Adds to_fl to Float class - supposed to handle commas in floats?

        It added the method to the String class. Because in some user locales the decimal separator is comma instead of period.

        Thomas Thomassen β€” SketchUp Monkey & Coding addict
        List of my plugins and link to the CookieWare fund

        1 Reply Last reply
        Reply Quote 0
        • P
          PurpLev
          last edited by

          TrueTangent.rb is overriding Float::=~ which is the regular expression operator with a unique function that disables regular expression functionality altogether.

          My suggestion to all those that override global built in classes to avoid it as other scripts may rely on the basic functionality being there and operable. just create a new child class of the built in class and use your own classes in your code if you need to change their functionalities.

          1 Reply Last reply
          Reply Quote 0
          • thomthomT
            thomthom
            last edited by

            That's TIG's script: http://forums.sketchucation.com/viewtopic.php?t=19457

            Thomas Thomassen β€” SketchUp Monkey & Coding addict
            List of my plugins and link to the CookieWare fund

            1 Reply Last reply
            Reply Quote 0
            • TIGT
              TIG Moderator
              last edited by

              That code's been around for ages without any complaints... The =~ isn't a standard method for the Float Class [at least in my 'prgamatic' documentation]: it's a new one I made up to compare two floats as being approximately equal, and 'Regexp' isn't part of Float... is it ??
              Any ideas from better Ruby gurus than me ????

              class Float
              	def =~(num2,tol=10000)
              		num1=(self*tol).to_i
              		num2=(num2*tol).to_i
              		return true if num1==num2
              		return nil
              	end
              end #class Float
              

              How do I 'isolate' it to avoid possible clashes [with an 'example' please] - if necessary...

              TIG

              1 Reply Last reply
              Reply Quote 0
              • fredo6F
                fredo6
                last edited by

                @tig said:

                That code's been around for ages without any complaints... The =~ isn't a standard method for the Float Class [at least in my 'prgamatic' documentation]: it's a new one I made up to compare two floats as being approximately equal, and 'Regexp' isn't part of Float... is it ??
                Any ideas from better Ruby gurus than me ????How do I 'isolate' it to avoid possible clashes [with an 'example' please] - if necessary...

                TIG,

                The issue is not so much that you add a new method. It is rather the potential clash if another script writer has the exact same idea (and he may have it, because it seems simple and elegant). Then if several scripts define the method =~ with different precisions or even different meanings, some scripts may potentially not work and this may be hard to find out what is the cause.

                The normal approach would be to introduce a regular method like " float_compare(a, b)". It is less elegant, but at least it is only visible in the script own scope.

                Fredo

                Fredo

                1 Reply Last reply
                Reply Quote 0
                • TIGT
                  TIG Moderator
                  last edited by

                  Thanks Fredo.
                  I'll make a fix... πŸ˜’
                  [Edit: done.]

                  TIG

                  1 Reply Last reply
                  Reply Quote 0
                  • J
                    Jim
                    last edited by

                    Rick's offset.rb and wikii's FAK.rb (Follow and Keep) both define an #offset method for Array and Sketchup::Face classes. May the last one loaded win.

                    Hi

                    1 Reply Last reply
                    Reply Quote 0
                    • J
                      Jim
                      last edited by

                      Didier Bur's dline.rb adds (yet another) offsetPoints method to Array, but then never utilizes the method. Also resets a global $debug to false.

                      Hi

                      1 Reply Last reply
                      Reply Quote 0
                      • thomthomT
                        thomthom
                        last edited by

                        The old MatchBox plugin is known to have caused problems. Even the new (1.1) version still mess up the base classes:
                        http://forums.sketchucation.com/viewtopic.php?f=180&t=12893

                        (I'd prefer if we didn't distribute this plugin at SCF...)

                        Thomas Thomassen β€” SketchUp Monkey & Coding addict
                        List of my plugins and link to the CookieWare fund

                        1 Reply Last reply
                        Reply Quote 0
                        • thomthomT
                          thomthom
                          last edited by

                          Train Simulator 1.2 exporter by Paul Gausden
                          mstsx.rb

                          Reported by Tomaz: http://forums.sketchucation.com/viewtopic.php?f=180&t=12423&hilit=matchbox&start=15#p103041

                          Thomas Thomassen β€” SketchUp Monkey & Coding addict
                          List of my plugins and link to the CookieWare fund

                          1 Reply Last reply
                          Reply Quote 0
                          • thomthomT
                            thomthom
                            last edited by

                            hmm... another benefit a plugin manager could have: check for conflicting plugins from a blacklist or known problem-plugins.

                            Thomas Thomassen β€” SketchUp Monkey & Coding addict
                            List of my plugins and link to the CookieWare fund

                            1 Reply Last reply
                            Reply Quote 0

                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                            With your input, this post could be even better πŸ’—

                            Register Login
                            • 1
                            • 2
                            • 1 / 2
                            • First post
                              Last post
                            Buy SketchPlus
                            Buy SUbD
                            Buy WrapR
                            Buy eBook
                            Buy Modelur
                            Buy Vertex Tools
                            Buy SketchCuisine
                            Buy FormFonts

                            Advertisement