Move/Clone to cursor

3 votes
Version: 
1.0.3
Date Updated: 
02/03/2021
Author Name: 
mad

Hi, this is simple script which move or clone selected objects to surface under cursor. You can bind it to any hotkey (I usualy use Alt+S and Alt+C).

1.0.1

- initial releas

1.0.2

- settings can be binded to hotkey

- possibility to turn on random rotation in Z axis

1.0.3

- multiple object selection can be treated as object list, so in clone mode random object will be selected

- cloned objects can be automaticly moved to active layer

 

AttachmentSize
move_to_cursor.ms2.8 KB

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
mad's picture

"But it doesn't work with

"But it doesn't work with groups and assemblies."

Unfortunately not :(

mad's picture

You can use Object Paint for

Obida you can use Object Paint for this.

mad's picture

Random rotation can be turned

"Would be greater if you could set some random rotation and scale values and random direction vector from normal- to z-direction."

Random rotation can be turned on in settings.Other transfomrsare possible and simple to do but I want to keep it as simple as possible. Its not a scattering tool.

obaida's picture

nice script thx , I think its

nice script thx , I think its better to execute the script then place the object with left click (rather then placing it on executing the script) , with the ability to make more copies on each left click
BUT there is another script (AutoPlace an Old script made by Jos Balcaen can do this task in a very good way actually) .

dmitrybelonosov's picture

A good tool

Hello. A good tool. But it doesn't work with groups and assemblies.

trick's picture

Random rotation and scale

Great little tool.

Would be greater if you could set some random rotation and scale values and random direction vector from normal- to z-direction.

mad's picture

Yes of course I'm planig to

Yes of course I'm planig to add this.It is just my first testing version. I would like to add at least placing on grid and better access to settings :) If someone have another ideas let me know.

ach's picture

after testing it for a while

after testing it for a while I think it would be great if it also worked in case when there is no surface you want to place an object onto, then it could just move/clone the selected object to a position of the cursor retaining its Z coordinates, so keeping it on the same level as the source object.

also there could be more intuitive way of accessing options, for example via a separate macroscript that could be searchable via "X" search menu.

but I like it anyways. thank you!

mad's picture

With placement tool you need

With placement tool you need to see the object in viewport and drag and drop it on the desired position. With this little script you can select it outliner and then immediately move/instantiate it under you mouse cursor. Also with placement tool its not possible to suppress clone dialog, so you always need to click on it or press enter :) It is similar to object paint in ribbon but without ui and much more user straightforward.

1rv's picture

What advantages it has

What advantages it has comparing to built-in Placement tool?

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.