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

    Push/pull to work on 'unopen' groups

    Scheduled Pinned Locked Moved Developers' Forum
    7 Posts 2 Posters 712 Views 2 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.
    • A Offline
      a4chitect
      last edited by

      what do you think, is it possible to enable to push/pull to work on 'unopen' groups ( not having to enter the edit mode for the group would speed up mass modeling considerably )

      or is it possible to customize the Normal Push Pull from the fantastic Joint push/pull toolset?

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

        It is indirectly possible with the JPP script.

        In fact, because it would always be difficult to agree on what to do with a group or a component, what I did is to publish an API for the 3 kinds of JointPushPull where you specify the faces you want to act upon. It is documented in the tutorial.

        
        def JointPushPull.Api_call (type="J", selection=nil, distance=0, vector=nil, 
                                    finishing='K', borders='A', group=true, influence=true,
                                    angle=30.0)
        
        

        So all you need to do is to write a surrounding script that select the groups and the faces within the groups and then execute the JPP API.

        1 Reply Last reply Reply Quote 0
        • A Offline
          a4chitect
          last edited by

          thanks fredo, I was too lazy to check that myself πŸ˜„

          btw: why did you decide to have JPP work only on selected faces and not the way original PP tool works - first activate the tool and then confirm the on-mouse-over face by clicking on it?

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

            @a4chitect said:

            btw: why did you decide to have JPP work only on selected faces and not the way original PP tool works - first activate the tool and then confirm the on-mouse-over face by clicking on it?

            It's true that it would be more natural. I may actually do it in a next version.
            And this is what I am doing for the Offset on Surface script.

            1 Reply Last reply Reply Quote 0
            • A Offline
              a4chitect
              last edited by

              looking forward to a 'next' version - even if the current one is most complete and satisfying, I am wondering about your remark of an Offset script - I was trying to code a new class for offsetting lines in sketchup (mainly because the default offset produces curling lines once you try to offset some convex/concave geometry) - but I couldn't find any easy to adapt algorithm and have tried to experiment with estimated results based on vector combination with respective weighted average... to no good. could you point me in a better direction for creating line offset function (as seen in autocad) since you are the offset guru around here?

              thanks

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

                Well! it depends if you want to do it on a plane or a 3D curved surface.

                1 Reply Last reply Reply Quote 0
                • A Offline
                  a4chitect
                  last edited by

                  I wouldnt want to image the maths involved in offsetting something on a curved plane, offsetting a planar line/polyline is what I was trying to achieve... but since you mentioned offsetting a curve on a surface - that would mean offsetting a 3d curve - which could come very handy - for a lots of applications πŸ‘ . If there is anything that could be done to help you with this development - let me know.

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post
                  Buy SketchPlus
                  Buy SUbD
                  Buy WrapR
                  Buy eBook
                  Buy Modelur
                  Buy Vertex Tools
                  Buy SketchCuisine
                  Buy FormFonts

                  Advertisement