Need help debugging
-
In my script jsAlign (http://www.pixero.com) odd things happen if you align edges/vertices inside a group.
The face gets somehow outside the group and at the origo.
See example file.Anyone knows why and how to fix it?
-
I think that
Sketchup.active_model.entities.transform_entities(t,v);should be
Sketchup.active_model.active_entities.transform_entities(t,v);You might also need to apply a transformation to these any entities equivalent to the original group's transformation...
Something like...## set their 'point'... t1=ORIGIN-group.transformation.origin t2=Geom;;Transformation.new(point) ## re-set for be new stuff - 'gp' here is a group... gp.transform!(t1) gp.transform!(t2)... Hope this helps...
-
Thanks, that seem to work. (I didnt have to use that last part.)
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