NVil Forum

General Category => Feature Requests => Topic started by: Woolfy on August 30, 2017, 09:42:22 am

Title: Paste Custom Primitives/Meshes
Post by: Woolfy on August 30, 2017, 09:42:22 am
Hi

could it be possible especially with the new cool feature "paste primitives direct on the surface" paste other "handmade" meshes?

For example create a mesh, save them as primitive, and use them in the next project.
This feature could look similar to zbrush lightbox/ IMM Brushes.

You hover mouse/pen over surface, press hotkey, window appears where you can select your predefined
objects , select one and it appears direct on the surface.

This feature would help to create a library of objects that you use often, for example rivets on armor,kitbashes for robots,boolean cutters, even more complex meshes could be saved there and reuse / paste them again later.

Its mostly the same like object library but more interactive.

If not possible to create such kind of tool, would it be possible to be able open object library through hotkey or button? And be able to attach "object library" to the viewport so it is always open on startup?

Thanks in advance
Title: Re: Paste Custom Primitives/Meshes
Post by: Woolfy on September 02, 2017, 10:18:15 pm
It could for example looks like this:

more intuitive like shown on screenshot  ( small photoshop overpaint)

- if you select the folder "radars" in the list you get preview on the right sight with saved objects in this folder

- red shows that objects can be placed on surface per drag and drop on place, like already possible with primitives

- blue shows that ojects from the scene can be selected and saved in library per button click

- it would be nice if object library could be dockable in UI (like for example material library) or/and called with button or hotkey...Just to avoid to open it always from menu list.



Title: Re: Paste Custom Primitives/Meshes
Post by: rubberDuck on September 03, 2017, 08:06:09 pm
I second the request.
Title: Re: Paste Custom Primitives/Meshes
Post by: IStonia on January 09, 2018, 12:04:31 pm
Try this
http://www.digitalfossils.com/Download/NVil-Jan-09-18.rar

* File > Open Object Library > Copy.
  * Object hierarchy tree view > context menu > Copy.
  * 4 new basic streamline tools. Generic Tools > Mixed Tools > Paste Object, Paste Object(PositionOnly), Paste Object(RandomOrientation), Paste Object(FromLibrary). Paste copied object at snapping point.
 
Title: Re: Paste Custom Primitives/Meshes
Post by: Woolfy on January 09, 2018, 04:02:47 pm
Thanks for the feature Istonia!

In the moment i dont get it to run. Maybe i do something wrong. I did following steps:

Edit>> Customize>> StreamLineTools.

press New Tool>> and select "Generic Tool" from the list

Assign hotkey (7) and added under "NMB Tool" entry "Generic Tools>> Paste Object(From Library).

Go to "object library", select one object from the list and press"copy", then object library closes automatically.

I press the hotkey (7) i defined earlier for paste, but nothing happens.

What im doing wrong?
Title: Re: Paste Custom Primitives/Meshes
Post by: IStonia on January 09, 2018, 07:32:28 pm
Try assign it to LMB instead of NMB.

Also make sure snapping is enabled and a snapping is under cursor when you LMB click.
Title: Re: Paste Custom Primitives/Meshes
Post by: Woolfy on January 10, 2018, 10:37:26 am
Ah very nice now its working!!!

Two questions:

could it be possible to keep object library always opened ? So if "copy" an object it does not close automatically, like for example Material editor?
And if library is opened allow to place objects ? (currently work space is frozen until closing library)


It would be also nice if until hotkey is hold , be able to scale the object on the surface by moving mouse left-right.
I created similar behavior for placing primitives (see capture.jpg), but its not possible with library object placing because of different architecture of the streamline tool.
Title: Re: Paste Custom Primitives/Meshes
Post by: Woolfy on January 10, 2018, 10:42:45 am
By the way, this is how my streamline tool for placing library objects looks like
Title: Re: Paste Custom Primitives/Meshes
Post by: IStonia on January 10, 2018, 02:53:47 pm
Try this
http://www.digitalfossils.com/Download/NVil-Jan-10-18.rar

  * Library object can be dragged into scene.
  * Edit > Customize > Tools > Common Modeling Shortcut Tools > Paste Object.
Title: Re: Paste Custom Primitives/Meshes
Post by: Woolfy on January 10, 2018, 04:11:59 pm
Yes thats realy amazing now! And preview pictures are great!

by the way both methods of placing are useful.

With drag and drop method place the big meshes that you need one or two times.
With Copy and place method place repetitive objects for example rivets or so.

One left thing , if its possible, to be able also save the objects from the scene, over the same object library window with you place your objects. In the moment you need to go over "save to library" menu.
Title: Re: Paste Custom Primitives/Meshes
Post by: IStonia on January 11, 2018, 10:57:09 am
Try this
http://www.digitalfossils.com/Download/NVil-Jan-11-18.rar

Right click group node > Save Selected In Scene.
Title: Re: Paste Custom Primitives/Meshes
Post by: Woolfy on January 11, 2018, 02:37:57 pm
Thanks a lot for update!!! works nice..
Title: Re: Paste Custom Primitives/Meshes
Post by: IStonia on January 13, 2018, 01:16:50 pm
Try this
http://www.digitalfossils.com/Download/NVil-Jan-13-18.rar

You can rotate pasted object by 1/2/3 + drag.
Title: Re: Paste Custom Primitives/Meshes
Post by: Woolfy on January 13, 2018, 07:11:56 pm
Thanks for update! Sorry i don't understand what to do?
If i press 1 or 2 or 3 i switch between vertex,edge,face selection.

PS: i noticed:

NVil-Jan-13-18 i cant load any "objs" anymore.

NVil-Jan-11-18 everything works fine

Title: Re: Paste Custom Primitives/Meshes
Post by: IStonia on January 13, 2018, 09:19:20 pm
Thanks for update! Sorry i don't understand what to do?
If i press 1 or 2 or 3 i switch between vertex,edge,face selection.

When you paste object through basic streamline tool, you can scale by dragging mouse, right? If you press down one additional key 1 or 2 or 3, you can rotate the pasted object instead.


PS: i noticed:

NVil-Jan-13-18 i cant load any "objs" anymore.

NVil-Jan-11-18 everything works fine



I don't know what you mean. How did you load the objs?

If it is a .obj file, can you send me the file for checking?
Title: Re: Paste Custom Primitives/Meshes
Post by: IStonia on January 13, 2018, 11:43:20 pm
PS: i noticed:

NVil-Jan-13-18 i cant load any "objs" anymore.

NVil-Jan-11-18 everything works fine




Try this and see if fixed.
http://www.digitalfossils.com/Download/NVil-Jan-14-18.rar
Title: Re: Paste Custom Primitives/Meshes
Post by: Woolfy on January 14, 2018, 07:22:18 pm
Hi,

i was about to send you obj, but you fixed it already :) Its working now.
The bug was if i created simple object , save als obj. Then File>Open Scene and load the obj.
The obj wasn't loaded. But its fixed now. Thanks a lot.

To the pasting 1,2,3...:

I still dont get it. Here screenshot of my Stremline tool. (See pic 1)

If i press 7 (in my case) it creates object that i copied from library . If i keep 7 hold down during creation, i can change the size that's right. But if i press 1,2,3 in addition nothing happens..

I even tried this by complete removing all my preset files and started with "clean" nvil , created the streamline tool again and have still same behavior. :-\
Title: Re: Paste Custom Primitives/Meshes
Post by: steve on January 14, 2018, 08:48:57 pm
Hi Woolfy,

You should use the new streamline basic tool "Paste object".

Example.

Setup streamline tool (see pic)

open library, copy object.
press hotkey for the new streamline tool
Move mouse cursor over snap/position for object paste. Press/hold down mouse button (LMB for this example)
Keep mouse button pressed down, and release hotkey.
Moving mouse will scale object. Pressing number 1,2,3 will rotate object, release mouse button when done.
Title: Re: Paste Custom Primitives/Meshes
Post by: Woolfy on January 14, 2018, 09:09:06 pm
Ahh now i have it!!Works nice..

The definition of the "basic tools" : that are those tools what i can apply to the mouse buttons in the right upper corner of the Stream Line Tools editor? Right ?
Because i was struggling to understand first what "basic" means. I thing now i understood..

Thanks a lot for help!
Title: Re: Paste Custom Primitives/Meshes
Post by: steve on January 15, 2018, 09:53:36 am
Hi Woolfy,

The definition of the "basic tools" : that are those tools what i can apply to the mouse buttons in the right upper corner of the Stream Line Tools editor? Right ?

Yes.
Title: Re: Paste Custom Primitives/Meshes
Post by: thor6136 on April 21, 2020, 01:35:47 pm
Can't seem to make this work. I have my streamline tool hotkey assigned to LMB Tool > Generic Tools >> Paste Object, I copy the object (Object Library/Hierarchy/Clipboard) and try to paste with Paste Object streamline tool but nothing happens. I tried also dragging and scaling but there is just no object being pasted.

Am I doing something wrong or maybe the tool got broken?
Title: Re: Paste Custom Primitives/Meshes
Post by: IStonia on April 22, 2020, 04:48:16 am
Did you copy the object in the correct way? You need to do it through context menu in either the Object Library window or the Object Hierarchy window. I don't understand what this is: (Object Library/Hierarchy/Clipboard). Why does "Clipboard" appear here. There is nothing to do with clipboard.

When you do the paste, make sure "Snapping" is enabled and a snapping item is detected under the cursor.
Title: Re: Paste Custom Primitives/Meshes
Post by: thor6136 on April 23, 2020, 06:25:13 am
Works good, didn't have snapping enabled! Thanks!
Is it possible to make it paste from clipboard as well?
Title: Re: Paste Custom Primitives/Meshes
Post by: IStonia on April 23, 2020, 06:48:37 am
...
Is it possible to make it paste from clipboard as well?

Why do you want this?
Title: Re: Paste Custom Primitives/Meshes
Post by: thor6136 on April 23, 2020, 09:31:20 am
Often I would load kitbash models into a separate scene and clipboard copy and then clipboard paste in the working scene. Having option to paste on snapping point would be awesome to speed up process of aligning and moving models around the scene.

Also cool alternative to use explorer and just quickly go ctrl+c and then paste to snapping point.
Title: Re: Paste Custom Primitives/Meshes
Post by: IStonia on April 23, 2020, 01:00:37 pm
Try this
http://www.digitalfossils.com/Download/NVil-Apr-23-20.rar

Can't get the ctrl+c working.
Title: Re: Paste Custom Primitives/Meshes
Post by: thor6136 on April 30, 2020, 07:52:55 am
Awesome, works! One thing I noticed is if you do clipboard copy and copy from object library the one from object library will always override the one from clipboard copy and in order to clear the cache you need to restart Nvil. So it might be cool if when you clipboard copy it clears copy from object library and vice versa.

But maybe it is not that big of an issue, at least not for me, I will be using clipboard copy all the time. Thanks!
Title: Re: Paste Custom Primitives/Meshes
Post by: IStonia on April 30, 2020, 08:47:11 am
I have noticed that myself and have provided a way to clear the copy from library/hierarchy. To do that, open the library window, make sure no object node is selected or only group node is selected then click the copy button.
Title: Re: Paste Custom Primitives/Meshes
Post by: thor6136 on April 30, 2020, 08:52:50 am
Hm, for me copy button is greyed out, if I click nothing happens, cache is not cleared and I am still pasting object from Object Library.

(https://i.snipboard.io/zaLGPU.jpg)
Title: Re: Paste Custom Primitives/Meshes
Post by: IStonia on April 30, 2020, 09:18:23 am
Get the newer version
http://www.digitalfossils.com/Download/NVil-Apr-30-20.rar
Title: Re: Paste Custom Primitives/Meshes
Post by: thor6136 on May 03, 2020, 06:52:30 pm
Confirm, works! Thank you IStonia!