• Login
sketchucation logo sketchucation
  • Login
πŸ€‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

[Plugin] Scale2Face.rb

Scheduled Pinned Locked Moved Plugins
27 Posts 10 Posters 42.9k Views 10 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.
  • T Offline
    TIG Moderator
    last edited by 21 Jul 2009, 13:28

    su30

    I'm getting the exact same problems ! I didn't before - I am investigating...

    TIG

    1 Reply Last reply Reply Quote 0
    • T Offline
      TIG Moderator
      last edited by 21 Jul 2009, 15:50

      Version 1.1 is here...
      http://forums.sketchucation.com/viewtopic.php?p=173374#p173374
      Fixed the glitch [I think]...
      Code was all messed up somehow !!!

      TIG

      1 Reply Last reply Reply Quote 0
      • S Offline
        su30
        last edited by 22 Jul 2009, 02:35

        TIG

        Here is a simple feedback of the script,
        scale items to a single slope.
        It works pretty fine with the boxes in group and component,
        but a little problem with 'Bryce', a face camera component.
        picture followed...


        scale2face101a.jpg

        su30

        1 Reply Last reply Reply Quote 0
        • S Offline
          su30
          last edited by 22 Jul 2009, 03:07

          This is another test for v1.1
          groups, components, single slope
          components are in different x,y,z position, and in different x,y,z scale,
          it proves good with these items.
          now the plugin works when only 1 face was selected, I don't know if it is possible to do it on multi faces or curve face,
          maybe you have already worked on it, TIG.
          Sorry that I can't reply on time because the time difference...


          scale2face101b.jpg

          su30

          1 Reply Last reply Reply Quote 0
          • T Offline
            TIG Moderator
            last edited by 22 Jul 2009, 08:15

            I have considered multiple faces and have a draft almost ready...

            I don't know why 'Bryce' fails - I suspect it's because the face was originally draw flat on the Z plane and then tilts up to 'face-me' ? I'll look at it...

            In passing: I've also got an early draft for a 'Stretch2Face' Ruby that takes works with groups and faces; the topmost vertices of any vertical faces in the group get moved up to snap onto the face(s) selected - that way you could easily stretch the top of a wall face up to the underside of a sloping or even curved roof ?

            Thanks for the feedback, any other ideas or problems please let me know... πŸ˜„

            TIG

            1 Reply Last reply Reply Quote 0
            • S Offline
              su30
              last edited by 22 Jul 2009, 09:06

              yes I am looking forward for the multi_face version
              this script will be very efficiency while editing a big amount of components, and I think it is promising.
              thank you TIG for the excellent work!


              scale2face101 copy.jpg

              su30

              1 Reply Last reply Reply Quote 0
              • S Offline
                su30
                last edited by 31 Jul 2009, 09:52

                TIG, I am wondering if you have some process script I can have a try?
                still watching this ^_^

                su30

                1 Reply Last reply Reply Quote 0
                • T Offline
                  TIG Moderator
                  last edited by 31 Jul 2009, 17:53

                  Very busy - maybe next week ? 😐

                  TIG

                  1 Reply Last reply Reply Quote 0
                  • D Offline
                    dtrarch
                    last edited by 3 Aug 2009, 15:54

                    Hi All
                    Didier's [Project_faces_vector.rb] will put selected face on inclined plane.
                    Just draw a reference line vector in the direction wanted for projection path.

                    dtr


                    SCALE TO FACE.png

                    1 Reply Last reply Reply Quote 0
                    • S Offline
                      su30
                      last edited by 5 Aug 2009, 03:57

                      @tig said:

                      Very busy - maybe next week ? 😐

                      Sure TIG, in no hurry πŸ˜„

                      su30

                      1 Reply Last reply Reply Quote 0
                      • J Offline
                        j_forrester
                        last edited by 10 Aug 2009, 14:04

                        Great Plugin btw,
                        Just wondered if there are any developments of a version that takes into account a sloped surface instead of a flat plane?

                        Many thanks

                        1 Reply Last reply Reply Quote 0
                        • utilerU Offline
                          utiler
                          last edited by 10 Aug 2009, 22:09

                          @j_forrester said:

                          Great Plugin btw,
                          Just wondered if there are any developments of a version that takes into account a sloped surface instead of a flat plane?

                          Many thanks

                          Ditto.
                          I think this would be neat!!!

                          purpose/expression/purpose/....

                          1 Reply Last reply Reply Quote 0
                          • J Offline
                            j_forrester
                            last edited by 11 Aug 2009, 11:28

                            TIG,

                            Tried and tested.

                            Works absolutely perfect! Many thanks this will be a great help.

                            1 Reply Last reply Reply Quote 0
                            • T Offline
                              TIG Moderator
                              last edited by 11 Aug 2009, 11:37

                              At long last version v1.2 is now available.
                              Link: http://forums.sketchucation.com/viewtopic.php?p=173374#p173374

                              It Scales any Selected Component-instances/Groups up in Z to Selected Faces above them. It works for curved Surfaces, but remember that it Scales to all Selected Faces... so if you select a horizontal cylinder its whole curved Face gets Selected (which is actually Face facets) and therefore it Scales to the lower [nearer] Faces and then the upper Faces - if you want to Scale to just the lower [nearer] Faces you must first switch on Hidden Geometry and them Select just the lower Face facets required and it then Scales things just to those...

                              Feedback please

                              TIG

                              1 Reply Last reply Reply Quote 0
                              • olisheaO Offline
                                olishea
                                last edited by 18 Aug 2009, 16:14

                                nice plugin, thank you

                                oli

                                1 Reply Last reply Reply Quote 0
                                • R Do not disturb
                                  rv1974
                                  last edited by 19 Aug 2009, 11:41

                                  Tig it doesn't work within groups 😒
                                  And maybe clicking 3 points instead of face would be better solution?
                                  Thank you (I mean it!)

                                  1 Reply Last reply Reply Quote 0
                                  • T Offline
                                    TIG Moderator
                                    last edited by 19 Aug 2009, 12:28

                                    Here's a Ruby that'll do it [please change the original post's title to [Plugin]...]

                                    . scale2face.rb

                                    Usage:
                                    Select face(s) & group/component-instance(s) located below face(s).

                                    Unacceptable selections produce error dialogs.

                                    Pick 'Scale2Face' off the Plugins Menu
                                    or type scale2face in the Ruby Console.

                                    The selected items will be
                                    scaled upwards [in the Z] until their CLs meet the face or faces.

                                    Any intermediate faces etc are ignored; the scaling passes through them.

                                    It has a one step un-do.

                                    To Do: Alternative orientations to just the UP in Z.
                                    E.G. down and in XY

                                    Version: 1.0 20090717 First Release.
                                    1.1 20090721 Tweaked to avoid height glitches.
                                    1.2 20090811 Multi-face support added. Error msgs disabled.
                                    1.3 20090819 Now works within groups/component edits.

                                    Put in Plugins Folder...PayPalButton

                                    TIG

                                    1 Reply Last reply Reply Quote 0
                                    • T Offline
                                      TIG Moderator
                                      last edited by 19 Aug 2009, 12:30

                                      @rv1974 said:

                                      Tig it doesn't work within groups 😒
                                      And maybe clicking 3 points instead of face would be better solution?
                                      Thank you (I mean it!)

                                      It does work inside groups etc now !

                                      See here for v1.3 http://forums.sketchucation.com/viewtopic.php?p=173374#p173374

                                      Easy fix ray[1] .last gives face if in group/component edit mode... πŸ˜„ πŸ€“ πŸ€“

                                      TIG

                                      1 Reply Last reply Reply Quote 0
                                      • X Offline
                                        xrok1
                                        last edited by 11 Apr 2010, 15:48

                                        don't know how i missed this one 😳
                                        Thankyou! πŸ˜„

                                        β€œThere are three classes of people: those who see. Those who see when they are shown. Those who do not see.”

                                        http://www.Twilightrender.com try it!

                                        1 Reply Last reply Reply Quote 0
                                        • X Offline
                                          xrok1
                                          last edited by 11 Apr 2010, 15:53

                                          @j_forrester said:

                                          Great Plugin btw,
                                          Just wondered if there are any developments of a version that takes into account a sloped surface instead of a flat plane?

                                          Many thanks

                                          it would be awsome if the scaled face matched the shape/angle of the scaled to face. any plans?
                                          http://twilightrender.com/phpBB3/images/smilies/think.gif


                                          Capture1.JPG

                                          β€œThere are three classes of people: those who see. Those who see when they are shown. Those who do not see.”

                                          http://www.Twilightrender.com try it!

                                          1 Reply Last reply Reply Quote 0
                                          • 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