How to scale a face nested in component
-
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
-
I've not heard of it not working. Got a link?
Got any more details on what's "not working"? Sample code snippet etc? -
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 ? -
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
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 LoginAdvertisement