sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    How to scale a face nested in component

    Scheduled Pinned Locked Moved Developers' Forum
    4 Posts 3 Posters 228 Views 3 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.
    • B Offline
      bigcatln
      last edited by

      I make a component of pipe, and I want to turn it into a reducer now,I tried with entities.transform_entities tr,ent,but it doesn't work properly, and I find document that said the function doesn't work properly when face is in group,but how can I make a reducer then?
      can anyone help?

      thanks

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

        I've not heard of it not working. Got a link?
        Got any more details on what's "not working"? Sample code snippet etc?

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

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

          You need to adjust the center of the scaling to suit the group's transformation, and of course the scaling itself in case the group itself is scaled ?
          If the group is made at the origin and there's no further transformations then it should be very simple ?

          TIG

          1 Reply Last reply Reply Quote 0
          • B Offline
            bigcatln
            last edited by

            Error 404 (Not Found)!!1

            favicon

            (code.google.com)

            Important note: If you apply a transformation to entities that are not in the current edit context (i.e. faces that are inside a group), SketchUp will apply the transformation incorrectly, since the geometry has one origin and the current edit context has another. You can correct for this by watching the Model.edit_transform and Model.active_path. See ModelObserver.onActivePathChanged for more information.

            I put it in the origin and tried, there still is a problem ,the side face of the tube come out of the group(component) with the top and bottom face being still in the group

            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