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 ? -
http://code.google.com/intl/zh-CN/apis/sketchup/docs/ourdoc/entities.html
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
Advertisement