About Selection with only browser
 1-15  16-25

Previous
Next
 From:  DannyT (DANTAS)
4194.16 
Burr, MoI square dancing steps?

-
~Danny~
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  BurrMan
4194.17 In reply to 4194.16 
""""""""MoI square dancing steps?""""""""

Hahahahaha!!!

I suppose that would be "Rat Click Had... Rat Clcik Had.. Now Dosey Doe!!! :o
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  DannyT (DANTAS)
4194.18 
Here's another,

CTRL+RMB eye of 'cub'
Pick style 'Rouge'
ALT+RMB Hide (twice)

-
~Danny~
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
4194.19 In reply to 4194.11 
Hi Pilou,

> In the 2 cases I begin with nothing selected!
> I have only simple primitives 3D

Yes, but there is a difference between how the name label is assigned compared to how the Styles are assigned.

The name label is assigned to the "top level object" - meaning the solid that is the parent container object that owns the faces and edges.

The Style = Red on the other hand is not assigned to the parent object, it's only assigned to face and edges sub-objects and not to the parent container object.

So when you do a "select things with style = red", what you end up with is a sub-object selection, similar to if you had selected 1 face or or edge for example. And when you have a sub-object selection, doing an Invert after that will invert the selection of sub-objects inside of the parent container and not invert the selection of top level objects.

This is due to the script that I sent to you earlier by PM - in that script I forgot to have the script assign the style to the parent object - instead it ended up assigning the styles to sub-objects only leaving the parent object actually assigned to a different style. It's difficult to see this since what you see on the screen is actually the edge and face sub objects.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
4194.20 In reply to 4194.12 
Hi Pilou,

> The file ;)
> You must find one "red cube" ;)

Follow the same first 2 steps that I wrote previously here:
http://moi3d.com/forum/index.php?webtag=MOI&msg=4194.6

And then for the 3rd step instead of inverting the selection, just right-click on the Edit > Hide button instead.

So do these steps:

Step 1 - right click on the eye icon for cub in the Objects section of the scene browser.

Now only boxes are being shown.


Step 2 - go to Style = Red in the scene browser, and hold down the Shift key and click on its text label.

Now the red edges and faces are selected.


Step 3 - right click on the Edit > Hide button, here:




The result is just one red box being displayed, and it's actually one less step than what I wrote originally. This method is not sensitive to the styles being assigned only to sub-objects and not to the parent.

Note that if you want to repeat these steps more than once, you may need to do the right-click in the 3rd step twice, because the way that right-click isolate function works is that the first time you use it, it makes a memory snapshot of the current display properties and then hides everything other than the current selection. Then when you use it again it restores that memory snapshot - object visibility will be the same then as before you did the isolate. So it actually works in sets of 2 clicks - 1 right click to isolate and then the 2nd right click to restore.

- Michael
Attachments:

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
4194.21 In reply to 4194.12 
Hi Pilou, so here's an updated script for assigning random colors:

script: /* Assign random styles to solids */ var styles = moi.geometryDatabase.getObjectStyles(); var breps = moi.geometryDatabase.getObjects().getBReps(); for ( var i = 0; i < breps.length; ++i ) { var brep = breps.item(i); var style_index = Math.floor(Math.random() * styles.length); brep.styleIndex = style_index; }

This script also assigns the style to the parent object instead of only to sub-object edges and faces like the previous one that I sent you by PM - if you use this script instead of the previous one to assign the colors then it won't have the tricky behavior with the invert selection.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
4194.22 In reply to 4194.21 
Ok! Now that works in 3 steps with the last new script! ;)
Right click on the eye's Cube
Shift + Click on the Color text Label
Right Click on the Hide Button

Thanks for all this swinging selection!
All seems now working fine! :)

THX also to Mr Bur, and DannyT for add some test variations :)

PS So maybe a good thing to put also an Hide / Show and Inverse selection buttons (icone) inside the Browser for avoid to accoss the screen with the Graphic Pen /mouse?

EDITED: 17 Apr 2011 by PILOU

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
4194.23 In reply to 4194.22 
Hi Pilou,

> PS So maybe a good thing to put also an Hide / Show
> and Inverse selection buttons (icone) inside the Browser
> for avoid to accoss the screen with the Graphic Pen /mouse?

Well, adding a lot of extra buttons to the scene browser will have a bad side effect of making its basic existing functions more difficult to use - too many buttons just makes things more difficult to manage and to see what is going on.

The browser actually already does do hide/show functions, by clicking on the eye icon on any browser item. But that also targets that browser item's category. Like for Style = red, it is focused on hiding and showing the items that have been assigned Style = red, which is pretty simple to figure out.

The other controls for Edit > Hide use the current selection instead of a predefined category like the scene browser.

One thing that's nice about MoI's system is that you can use these different pieces in combination with one another (like hide/show by category inside the scene browser, or hide/show by selection using Edit > Hide).

Having them in slightly different areas of the screen actually helps keep things well organized and easier to understand.

If the scene browser had a bunch of additional controls within a single item that were not actually related to that particular item (which seems to be what you are asking for), that would probably be confusing for someone to try and figure out.

So it's kind of tricky - trying to optimize everything for not moving the mouse very far is not very helpful if it causes a UI that has too many not strongly related things just jumbled together...


In the future I would like to add a kind of "filter" mechanism which I think would simplify this particular task that you were asking about though.


- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
4194.24 In reply to 4194.22 
Hi Pilou, also you can avoid moving the mouse all the way across the screen by switching the Scene browser position back to its default value of "Adjacent" - that will make it show up right next to the side pane instead of on the opposite side of the screen from it.

For that setting, go to Options > General > "Scene browser position" = Adjacent.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  Frenchy Pilou (PILOU)
4194.25 In reply to 4194.24 
Yes, that is also possible ;)

EDITED: 18 Apr 2011 by PILOU

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
 
Show messages:  1-15  16-25