Move instances softly, using the mouse
-
hi all, I'm trying to make a tool to move groups, similar to the native tool of sketchup, but so far I'm starting, I wrote the following code and I do not know why the group does not move smoothly
#before beginning must have a selected group class MoveGroup def onMouseMove flags, x, y, view mod = Sketchup.active_model sel = mod.selection.to_a[0] input = view.inputpoint x,y p = input.position tr = Geom;;Transformation.translation p sel.move!(tr) if sel.is_a?(Sketchup;;Group) view.refresh end end Sketchup.active_model.select_tool MoveGroup.newin advance I appreciate your help (Google translator)
-
hi
it jumps about because it doesn't know where in 3d space the mouse is...
when you lock onto an axis it's fine
try using arrow keys as a modifier...
john
-
thank you very much, is what I needed to know

by the way, I wanted to look at your plugins and I did not find them, look in the pluginstore and select search by author... -
@dacastror said:
... I wanted to look at your plugins and I did not find them, look in the pluginstore and select search by author...
you won't find them, there's a couple on limited beta release and a few of mac only dev tools that almost no-one else has even seen...
I keep adding to them on the day I decide to release, then I want to test again, ect... etc...
I PM the closest to release one if you want to comment on it...
john
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