NVil Forum

General Category => Feature Requests => Topic started by: samardac on January 09, 2016, 08:16:32 am

Title: Freez/Isolate/Hide
Post by: samardac on January 09, 2016, 08:16:32 am
Freez/Unfreez:
Bugs:
It does not unfreeze objects if something is freezed and nothing is selected.

Requests:
-When this command will be able to unfreeze objects it must select just unfreezed objects.

-This command have to have ($). When something is freezed it has state ON if nothig is freezed it have state OFF.

Isolate tool:

I just dig deeply into this problem and we really need solid tool for isolation objects. NVil at this moment lack of it and there is no way to create it with composite tools.
It have to work like this:

Tool will have 2 states - On and Off ($)

ON ($).
Tool can go to state ON only if something is selected and tool is in OFF state.
When tool go to state ON it will hide all unselected objects.

OFF ($).
Tool can go to state Off only if it in state ON.
When tool go to state Off it will Unhide all objects that it hidden before.
It will not Unhide objects that was hidden by another tools like (Hide/Unhide).

This tool must work with Objects and Sub Objects.

Hide/Unhide:

- Add pleas to Hide/Unhide $.
So if something is hidden $ = True if nothing is hidden $ = False

- When you unhide polygons they must be selected now it just unhide them. So pleas make it select subobjects after they was unhiden.
Title: Re: Freez/Isolate/Hide
Post by: IStonia on January 09, 2016, 08:34:09 am
See if this is the Isolate tool you talk about.
Edit > Customize > Tools > Common Shortcut Tools > Toggle unselected object visibility.


Freez/Unfreez:
Bugs:
It does not unfreeze objects if something is freezed and nothing is selected.

I don't see the bug. Can you make a video?
Title: Re: Freez/Isolate/Hide
Post by: IStonia on January 09, 2016, 10:36:16 am
http://www.digitalfossils.com/Download/NVil-Jan-07-16.rar

I've done some fixings. If anything still not right, let me know.
Title: Re: Freez/Isolate/Hide
Post by: samardac on January 09, 2016, 11:32:47 am
Hide/Unhide done, works nice, just have no $.

Freez,
Freez have to wotk exactly like Hide/Unhide if something is selected it will freez it if nothing is selected it will unfreez all and select it. Now it only freez selected.
Quote
See if this is the Isolate tool you talk about.
Edit > Customize > Tools > Common Shortcut Tools > Toggle unselected object visibility.
It only works with objects, it hide all if nothing is selected, it unhides everything but have to unhide only hidden by this tool.
As you can see it has so many weakneses. Modify it pleas or create new tool - Isolate Selection, like I described in first post.
Title: Re: Freez/Isolate/Hide
Post by: IStonia on January 09, 2016, 07:25:41 pm
Hide/Unhide done, works nice, just have no $.

I think it has $. Can you show me in a video.
Title: Re: Freez/Isolate/Hide
Post by: IStonia on January 10, 2016, 03:52:28 am
Check again

http://www.digitalfossils.com/Download/NVil-Jan-07-16.rar

Selection > Isolate Selection
Title: Re: Freez/Isolate/Hide
Post by: samardac on January 10, 2016, 08:51:55 am
Isolate Selection works greate!
About $ for Isolate selection and Hide/uhide check these screens:

http://take.ms/YbOiN

http://take.ms/aLoZ6

Bug with Hide/Unhide, if nothing is selected it hides everything but have to unhide everything. Like this:

If something is selected
than
{
  Hide it
  Set $=True
}
elese
{
  Unhide everything
  Select it
  Set $=False.
}

Title: Re: Freez/Isolate/Hide
Post by: samardac on January 10, 2016, 09:00:21 am
Freez/Unfreez#$:

If something is selected
than
{
  Freez it
  Set $=True
}
elese
{
  Unfreez everything
  Select it
  Set $=False.
}
Title: Re: Freez/Isolate/Hide
Post by: IStonia on January 10, 2016, 09:52:02 am
http://www.digitalfossils.com/Download/NVil-Jan-07-16.rar
Title: Re: Freez/Isolate/Hide
Post by: samardac on January 10, 2016, 10:17:33 am
Many thanks! Works really good!
Title: Re: Freez/Isolate/Hide
Post by: samardac on January 12, 2016, 06:20:35 pm
1. Add pleas just Hide$ and Unhide$.

2. Make pleas hide/unhide#$ and Hide$ to unhide only objects that was hidden by these commands. Now it unhides objects that was isolated by isolate selection$.

3. I hope previous request will also separate Check State Source for buttons for these commands. If no pleas make different check source for hide/unhide#$, Hide$ and Isolate Selection$. Now if you Isolate something Hide/Unhide#$ have Check Source - True.

4. Add pleas command - Unhide from Subset$.
This command will allow us to unhide objects using All Selection Tools. Now it is impossible.
So we for example will be able to Select hierarchies and Unhide them.

It will work like this, if you click first time it will show you subset of hidden objects, than you select objects that you want to unhide and run this command again, it will unhide selected objects.

Check this video to see how it works:
http://take.ms/gWOzd

Logic is like this:
Code: [Select]
Unhide from Subset$()
{
If InSubset = false
{
; Here we will show subset of hidden objects
If there are objects that was hidden by Hide/Unhide#$ or Hide$
{
Unhide them
Select them
Invert Selection
Hide selected
$ = True
InSubset = True
Disable Isolate Selection$ (if user will run Isolate Selection$  while InSubset = True he will see message - Yuo can not use Isloate Selection while you are in Subset of Hidden objects, unhide objects or turn subset off before using Isolate Selection.)
}
}
else
{
If something is selected
{
; Here we will unhide selected objects in subset and hide subset
Save current Object Selection
Hide it
Select all
Unhide all except Hiden by Isolate Selection$
Invert Selection
Hide Selection
Past Object Selection
}
else
{
;If nothing is selected we will hide Subset of hidden objects
Select all
Unhide all except Hiden by Isolate Selection$
Invert Selection
Hide Selection
}

;Here we will set $ for hide/unhide#$ and Unhide$
If there are no any objects that was hidden by Hide/Unhide#$ or Hide$
{
Set Hide/Unhide#$ and Hide$ $=False.
}

$ = False
InSubset = false
Enable Isolate Selection$
}
}
Title: Re: Freez/Isolate/Hide
Post by: IStonia on January 17, 2016, 09:00:13 am
http://www.digitalfossils.com/Download/NVil-Jan-17-16.rar

  * Two new basic streamline tools. Generic Tools > Mixed Tools > Linear Duplicate/Instance.
  * View > Object Shading > Preview On View Navigating > Hide Hierarchy Line On Viewport navigating.
  * Edit > Customize > Tools > Common Modeling Shortcut Tools > Hide. For Hide command, the program will hide the selection if there is selection, or unhide hidden items except those hidden by isolation selection if nothing selected. In edge mode, polygons which all edges are selected will be hidden. The check state is exclusive of items hidden by isolation selection.
  * Edit > Customize > Tools > Common Modeling Shortcut Tools > Unhide. Unhide hidden items except those hidden by isolation selection. The check state is exclusive of items hidden by isolation selection.
  * Selection > Unhide Subset. This command is used to add part of the hidden items into the visible items except those hidden by isolate selection. There is a flag associated with this command. When this command is fired and the flag is off, the hidden items will be made visible, the visible items will be made hidden and the flag will be turned on. When this command is fired and the flag is on, unselected visible items will be made hidden, hidden items will be made visible and the flag will be turned off. For a complete operation, this command needs to be fired twice.
Title: Re: Freez/Isolate/Hide
Post by: samardac on January 17, 2016, 09:29:52 am
IStonia, works really nice!
Can you pleas add R_Hide, R_Unhide.

Also can you pleas make R_Freez, R_Unfreez, Unfreez Subset$.

This is how it looks now:
(https://monosnap.com/file/8BvqFnXJzJR2YiWXjnbt3SvOkHEKCB.png)
Title: Re: Freez/Isolate/Hide
Post by: IStonia on January 18, 2016, 05:22:50 am
What is purpose of "R_Hide" ? Is it only for object mode?
Title: Re: Freez/Isolate/Hide
Post by: samardac on January 18, 2016, 07:25:10 am
Now if we use Hide$ it unhide objects/subobjects when nohing is selected, but we do not need this behaviour, we need it only to hide objects/subobjects.
 I had this behaviour in moi and it was very confused, so I set only 2 commands one that just hide and one unhide subset. And it works absolutley awaysome.
This tool R_Hide wil just hide objects and subobjects. Or you can modfy Hide$ to only hide objects/subobjects, may be it will have more logic beacause we already have hide/unhide$.
Title: Re: Freez/Isolate/Hide
Post by: IStonia on January 18, 2016, 08:02:14 am
Can you provide the logic for "Unfreeze Subset"? What if the frozen object is hidden?
Title: Re: Freez/Isolate/Hide
Post by: samardac on January 18, 2016, 09:00:15 am
Logic is that we could use selection tools to unfreez objects. For example we can select full hierarchy or branch and unfreez it.
Quote
What if the freeze object is hidden?
If this feature is availible things become to complicated.
Lets set simple rule object can be freezed only if it is visible and can not be hidden if it is freezed. I can not see advanges of hidding freezed objects never did it :) If you wan to hide something hide it, if you want to freez something freez it  :)

If you are in Frozen Subset and you will try to Hide or Isolate frozen objects you will get message -
You can not Hide/Isolate objects if you are in Frozen Subset.

If you are in Hidden Subset and you will try to Freeze or Isolate Hidden objects you will get message -
You can not Freeze/Isolate objects if you are in Hidden Subset.

In Hierarchy Window or Scene explorer in context menu just hide Freeze/Hide if one of selected object is hidden or frozen.

It will be simple and nice solution that will keep order and discipline.
Title: Re: Freez/Isolate/Hide
Post by: IStonia on January 19, 2016, 09:17:25 am
http://www.digitalfossils.com/Download/NVil-Jan-19-16.rar

Selection > Unfreeze Subset. This command is used to add part of the visible frozen objects into the visible selectable items. There is a flag associated with this command. When this command is fired and the flag is off, the frozen items will be unfrozen, the unfrozen items will be made hidden and the flag will be turned on. When this command is fired and the flag is on, unselected visible items will be frozen, items previously hidden by this command will be made visible and the flag will be turned off. For a complete operation, this command needs to be fired twice.

The new Hide tool and Freeze tool are modified. Nothing will happen if no selection.
Title: Re: Freez/Isolate/Hide
Post by: samardac on January 19, 2016, 09:25:22 am
Works awaysome!!!! So nice to have all that stuff!!!
One thing when you in Frozen Subset you can hide objects, disable it pleas and add message!
Title: Re: Freez/Isolate/Hide
Post by: IStonia on January 19, 2016, 09:34:51 am
...
One thing when you in Frozen Subset you can hide objects, disable it pleas and add message!

Can you explain in detail?
Title: Re: Freez/Isolate/Hide
Post by: samardac on March 14, 2016, 06:27:32 pm
I just reworked some requests.

Bugs:

1. Disabling tools and messages.

When Isolate Selection is Active:

- You can Hide Objects. Fix it and add message!
- You can Freeze Objects. Fix it and add message!
- You can run UnHide Subset. Fix it and add message!
- You can not run UnFreez Subset but there is no message. Add message pleas!

When Hidden Subset is Active;
- You can Hide Objects. Fix it and add message!
- You can Freeze Objects. Fix it and add message!

When UnFreeze Subset is Active;
- You can Freeze Objects. Fix it and add message!
- Freez/Unfreez Check State become False, but have to stay True, Fix it pleas.


2. When Unfreeze Subset$ is ON, Hide$ have Check State True, fix it pleas.

3. Now when you activate Isolate Selection$ with Polygons it isolate selected polygons only from the Polygons of the same object and all other objects are visible. So can you pleas make it to hide not only polygons of the selected object but also all other objects.
Now it looks like this, I isolated some polygons from Box:
(https://monosnap.com/file/1JQEtrW62dVSBs0yEMe4e8ZxshSGvt.png)

But have to look like this:
(https://monosnap.com/file/r3CTJHkRi8ZIyAJwCUacD8fElAW7ZU.png)



Requests:
4. Make pleas Hide$, Hide/Unhide$, Unhide Subset$, Isolate Selection$ to work only in Object and Polygon mode. Now you can hide/Unhide or Isolate Vertexes.

5. Add pleas P_Viewport Color tool, it will set colors for Viewport:

Viewport Color1 (Bool)
Viewport Color2 (Bool)
Viewport Border (Bool)
Back Color (Bool)

R(String) - Red
G(String) - Green
B(String) - Blue

It will allow me to change colors of viewport when Unhide Subset$ or Unfreez Subset$ is aactive. It will be clear signal to user that one of subset is active.

6. Remove please Hide$, Hide/Unhide$ from undo Stuck.

7. If you use Isloate selection two times in one Composite tool Second Isolate Selection does not work:
(https://monosnap.com/file/tQfznDwJPZgI4tV1BuM0rdNH3ODmf3.png)


8. removed it accidentally.

Title: Re: Freez/Isolate/Hide
Post by: IStonia on March 16, 2016, 09:26:28 am
http://www.digitalfossils.com/Download/NVil-Feb-17-16.rar

Test 1-4.
Title: Re: Freez/Isolate/Hide
Post by: samardac on March 16, 2016, 09:47:37 am
Thanks! Everything fixed except these:

1.
When Isolate Selection is Active:
- Now You can NOT run UnHide Subset but there is no message add it pleas.
- Now You can NOT run UnFreez Subset but there is no message add it pleas.

2. Not Fixed. When Unfreeze Subset$ is ON, Hide$ have Check State True, fix it pleas.

4. Still hide vertexes: Hide$, Hide/Unhide$. But have to work only with Polygons and Objects.

Title: Re: Freez/Isolate/Hide
Post by: IStonia on March 17, 2016, 07:15:30 am
1.2. I can't reproduce the bug. Can you send me your config and also make a video so I can follow your way to check it?

4. Some people use Hide/Unhide$ to work on vertices.
Title: Re: Freez/Isolate/Hide
Post by: samardac on March 17, 2016, 07:25:52 am
1,2 Video, http://take.ms/MJOK7
Config sent.

Quote
4. Some people use Hide/Unhide$ to work on vertices.
Tell me pleas more detail the reason they use it?
Title: Re: Freez/Isolate/Hide
Post by: IStonia on March 17, 2016, 07:40:31 am
I don't know the reason. But some one asked if there is this function before. I think it was two years ago, some where in a thread in the forum. I think 3ds max may have it in my memory.
Title: Re: Freez/Isolate/Hide
Post by: samardac on March 17, 2016, 07:45:32 am
Understood!
Title: Re: Freez/Isolate/Hide
Post by: IStonia on March 17, 2016, 09:10:05 am
http://www.digitalfossils.com/Download/NVil-Feb-17-16.rar

Check 1. 2. 7. 8.
Title: Re: Freez/Isolate/Hide
Post by: samardac on March 17, 2016, 09:20:34 am
8. Does not work.
When Unhide Subset is active Hide$ and Hide/Unhide$ have to have Check state true also now they have check state - False.
Video:
http://take.ms/SF4NH
Title: Re: Freez/Isolate/Hide
Post by: IStonia on March 18, 2016, 06:41:49 am
http://www.digitalfossils.com/Download/NVil-Feb-17-16.rar

* Edit > Customize > Tools > Common Shortcut Tools > P_Viewport Color, Reset Viewport Color1, Reset Viewport Color2, Reset Viewport Border Color.



6. Remove please Hide$, Hide/Unhide$ from undo Stuck.

What is the reason for this? What if you hide something then want to undo?
Title: Re: Freez/Isolate/Hide
Post by: samardac on March 18, 2016, 08:19:10 am
P_Viewport Color super handy tool many thanks!!
Check how it can be implemented ;D ;D
http://take.ms/ejkyD

Add pleas to P_Viewport Color - Back Color (Bool).


Title: Re: Freez/Isolate/Hide
Post by: IStonia on March 18, 2016, 08:40:03 am
What is viewport back color?
Title: Re: Freez/Isolate/Hide
Post by: samardac on March 18, 2016, 08:42:35 am
Sorry, I mean Back Color.
(https://monosnap.com/file/RVxukb0UCEJNYvr4u176DZwDOzFnt1.png)

About Undo for hide, you are right, lets leave it as it is now.
Title: Re: Freez/Isolate/Hide
Post by: IStonia on March 18, 2016, 09:34:12 am
http://www.digitalfossils.com/Download/NVil-Feb-17-16.rar

Added. Also, Edit > Customize > Tools > Common Shortcut Tools > Reset Form Back Color.
Title: Re: Freez/Isolate/Hide
Post by: samardac on March 18, 2016, 05:33:45 pm
Isolate Selection, works practically perfect except these:

- If you Isolated Objects than you switch to Polygons $ become False but have to stay True.
Than when you activate Isolate again if some Polygons are selected they will be Isolated else NVil will do nothing.
But the only thing NVil has to do in this situation is - UnIsolate Everything and stay in Polygon Mode.

- If you Isolated Polygons than you switch to Objects $ become False but have to stay True.
Than when you activate Isolate again if any objects are selected NVil will do nothing else it will do nothing too.
But the only thing NVil has to do in this situation is -  UnIsolate Everything and stay in Object Mode.

So we need only 2 steps in all cases:
First - Isolate, $ = True
Second - Unisolate, $ = False


--------
I can not find Back Color here:
(https://monosnap.com/file/ZXEXpXYzauvjt4sLX7wOHWBhfc4l9C.png)

Is it have to be here or in separate tool?

I just activated this composite tool and got this :
(https://monosnap.com/file/2ijnBg5u5NZd0yNOKI4XA4pwLbMWZn.png)

It has Back color.
Title: Re: Freez/Isolate/Hide
Post by: IStonia on March 18, 2016, 08:29:05 pm
http://www.digitalfossils.com/Download/NVil-Feb-17-16.rar
Title: Re: Freez/Isolate/Hide
Post by: samardac on March 19, 2016, 06:20:10 am
Isolate works great!

Lets modify a bit UnHide and Unfreez Subsets.
Lets make them work only in selection mode they was activated.
For example:
If you activates Subset in One Selection Mode you could not switch to other Selection Mods while Subset is ON. NVil will show you message - You can not switch Selection Mode in Subsets.

Make pleas 2 messages one for Unhide Subset and one for Unfreez, so user will know what subset is active.

---
Still no Back Color:
(https://monosnap.com/file/TLr5LWykO6h5Roi7nvEJKJNOV1tJR0.png)
Title: Re: Freez/Isolate/Hide
Post by: IStonia on March 19, 2016, 07:35:28 am
http://www.digitalfossils.com/Download/NVil-Feb-17-16.rar
Title: Re: Freez/Isolate/Hide
Post by: samardac on March 19, 2016, 07:53:39 am
Thanks!
Title: Re: Freez/Isolate/Hide
Post by: samardac on March 19, 2016, 07:58:09 am
Forget to say that Freeze/Unfreeze only freeze objects, rename it to Freeze$.
And can you please make Freeze/Unfreeze$ to work like this:
Code: [Select]
If something is selected
{
   it will freeze selected
   $=true
}
else
{
   it will Unfreeze everything
   $=false
}
This tools have to work in all Selection Mods.
Title: Re: Freez/Isolate/Hide
Post by: IStonia on March 19, 2016, 08:09:12 am
Do you mean it should freeze subobjects base on selection mode?
Title: Re: Freez/Isolate/Hide
Post by: IStonia on March 19, 2016, 09:08:36 am
http://www.digitalfossils.com/Download/NVil-Feb-17-16.rar

I didn't change the tool name because it has redirect command which is Unfreeze.
Title: Re: Freez/Isolate/Hide
Post by: samardac on March 19, 2016, 09:20:55 am
Thanks!!
Just notice Unfreeze Subset$ only activates if you are in Object mode.
Make it pleas to work in all mods, and if you activated it not in Object mode it will switch to object mode.
Title: Re: Freez/Isolate/Hide
Post by: IStonia on March 19, 2016, 09:49:22 am
http://www.digitalfossils.com/Download/NVil-Feb-17-16.rar
Title: Re: Freez/Isolate/Hide
Post by: samardac on March 19, 2016, 09:53:15 am
Worked but with one problem, if nothing is Freezed it just switch to object mode, but have to do nothing.
---
If you run Inverse Selection it Unfreeze all objects.
Title: Re: Freez/Isolate/Hide
Post by: IStonia on March 19, 2016, 10:54:36 am
http://www.digitalfossils.com/Download/NVil-Feb-17-16.rar
Title: Re: Freez/Isolate/Hide
Post by: samardac on March 19, 2016, 11:03:14 am
Great!
Check how I implemented colors for Subsets and Isolate:
http://take.ms/951y7

Look like we did all for this thread, the last thing I wanted to ask - is it hard to make Hide/Unhide Subset and Freez/Unfreez Subset?
If nothing selected it will run subsets else freeze or hide.
Title: Re: Freez/Isolate/Hide
Post by: IStonia on March 19, 2016, 11:33:13 am
...the last thing I wanted to ask - is it hard to make Hide/Unhide Subset and Freez/Unfreez Subset?
If nothing selected it will run subsets else freeze or hide.

I don't understand.
Title: Re: Freez/Isolate/Hide
Post by: samardac on March 19, 2016, 11:41:10 am
Let's leave this request for now, need a bit time to think about it.
Title: Re: Freez/Isolate/Hide
Post by: samardac on March 23, 2016, 10:39:26 am
IStonia, I have some composite tools that change viewport colors hide grid etc.. when you Isolate/Unhide, Unfreez Subsets.
But if warning message appears for example - Isolate Selection is On. Operation can not be proceed. That composite tools continue to execute, so NVil do not Isolate but change colors, hide grid etc...
Can you pleas make this - when that messages appears they will abort any composite tools that is active.
Title: Re: Freez/Isolate/Hide
Post by: IStonia on March 24, 2016, 12:34:25 pm
Fixed.
Title: Re: Freez/Isolate/Hide
Post by: samardac on March 24, 2016, 12:38:40 pm
Thanks!