Isolation mode ? Sub-layers(styles) ?
All  1  2-9

Previous
Next
 From:  Michael Gibson
3415.2 In reply to 3415.1 
Hi DesuDeus,

> Is there a script wich hide all unselected + center view to
> the remaining pieces
> Just like 3DS max Isolation mode ?

There's an Isolate function available by right-click on the Edit > Hide button.

It will hide all unselected objects but does not automatically alter the view, you need to push the Reset button on the view tools at the bottom of a viewport to center the view.

Then later on a second right-click on the Hide button will restore things to their state prior to the isolation.


> And is it possible to have another script wich hide all unselected
> (but keep edges visible) + center view to the remaining pieces ?

Set up the following script on a keyboard shortcut to do that:

script: /* Set unselected objects to wireframe */ var breps = moi.geometryDatabase.getObjects().getBreps(); for ( var i = 0; i < breps.length; ++i ) { var brep = breps.item(i); if ( !brep.selected ) { brep.getFaces().setProperty( 'hidden', true ); } } moi.view.resetAll(); moi.ui.redrawViewports();


> My second request, did you thinked about implementing
> sub-styles ?
> For example putting a style inside another one, like a sub-layer

Currently I'm not really thinking of having hierarchical styles - styles are meant to control the visual appearance of the objects assigned to it, I'm not sure if there would be a good way to have an appropriate visual meaning to having one style be the parent or child of another one.

I'm thinking that hierarchy will be available with Groups, in v3.

- 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
3415.3 In reply to 3415.1 
Hi DesuDeus,

> My scene is becoming very heavy and its hard to
> manage all the styles without sub-styles :)

Maybe you could show some kind of mockup for how you'd like to have sub-styles to work?

Would you have parent styles have colors of their own and have objects assignable to them, or would only the child styles have colors assigned to them?

If both parents and children had their own colors, then would the colors of a parent style have some kind of effect on their children or not?


I think it could potentially add a lot of complexity and would also cause the Style system to no longer map as directly to the concept of materials in an OBJ file.

It is a major goal for Styles to make them control material assignments when exporting to renderers.

- 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:  Samuel Zeller
3415.4 In reply to 3415.3 
Thanks Michael

One simple thing would be to be able to make "folders" from the edit styles menu and drag'n'drop styles in them
Then you could turn visible / invisible the folder or lock it / unlock it
And click on the folder name to select all the inside objects

Its like a style without color and without geometry inside

Its just to avoid the 3 foot long styles panel :)
Just like Photoshop groups

For example you got a folder called "First floor doors"
With inside "metal frame" , "handle" etc...
  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:  Samuel Zeller
3415.5 In reply to 3415.4 
> Set up the following script on a keyboard shortcut to do that

Thanks it work great, but could it be a "toggle" ?

You press the shortcut, everything is hided but not the piece
Then you work on the piece and when you are done you press that shortcut again
And everything gets back to its original state

Because now I need to click "hide" button but that also make invisible styles visible
And then I need to get some the styles back to invisible by hand

If its not possible to make a "toggle" script, I could use a reverse script with another shortcut

Thanks for your time :)
  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
3415.6 In reply to 3415.5 
Hi DesuDeus,

quote:
Thanks it work great, but could it be a "toggle" ?

You press the shortcut, everything is hided but not the piece
Then you work on the piece and when you are done you press that shortcut again
And everything gets back to its original state


It's not so easy to make a script that makes it a completely accurate toggle, because that means storing information from one run of the script to the other.

But here is a version that comes pretty close - if it did not find anything to change to wireframe, it will instead show faces to bring objects out of wireframe mode, but it will avoid changing objects that have been totally hidden:

script: /* Toggle unselected objects to wireframe */ var breps = moi.geometryDatabase.getObjects().getBreps(); var didone = false; for ( var i = 0; i < breps.length; ++i ) { var brep = breps.item(i); if ( brep.hidden ) continue; if ( !brep.selected ) { var faces = brep.getFaces(); for ( var j = 0; j < faces.length; ++j ) { if ( !faces.item(j).hidden ) { faces.setProperty( 'hidden', true ); didone = true; break; } } } } if ( !didone ) { for ( var i = 0; i < breps.length; ++i ) { var brep = breps.item(i); if ( brep.hidden ) continue; brep.getFaces().setProperty( 'hidden', false ); } } moi.view.resetAll(); moi.ui.redrawViewports();

- 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
3415.7 In reply to 3415.4 
Hi DesuDeus, re: folders for styles - that probably would work a lot better than trying some kind of "parent style / child style" type thing.

I've added that to the wishlist here: http://moi3d.com/wiki/Wishlist


But some of what you are describing may be better organized by Groups, like you mention "First floor doors", but probably for styles you would not normally want to have special looking doors just for the first floor. If you wanted to have some structure that had something like "All doors" with "First floor doors", and "Second floor doors" as children of it, that may be something that will work better with using Groups to organize them and hide/show/select them rather than using styles for the organization method.

But we'll see more about that when I get a chance to work on a Groups mechanism in v3.

- 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:  Samuel Zeller
3415.8 In reply to 3415.7 
"But some of what you are describing may be better organized by Groups, like you mention "First floor doors", but probably for styles you would not normally want to have special looking doors just for the first floor. If you wanted to have some structure that had something like "All doors" with "First floor doors", and "Second floor doors" as children of it, that may be something that will work better with using Groups to organize them and hide/show/select them rather than using styles for the organization method"

Well I use colors (materials) to separate my meshes
For example all the door frames have the same material (separate objects, different geometry, but same mats)

I divide all the scene like this
So having layers only in groups would be kinda difficult for me to get used to

Thanks for the toggle script, it works great !

Do you have any timeframe for beta 3 ?
  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:  Michael Gibson
3415.9 In reply to 3415.8 
Hi DesuDeus,

> Well I use colors (materials) to separate my meshes
> For example all the door frames have the same material
> (separate objects, different geometry, but same mats)


Right, but in your post above you wrote:

         For example you got a folder called "First floor doors"

So I thought you might be talking about some organization where you had something like "First floor doors" and then "Second floor doors" as separate organization groups.

That's possibly the kind of a thing where you might want to use Groups additionally since you could have separate groups for "First floor doors", and "Second floor doors", but have common materials between them.


> So having layers only in groups would be kinda difficult
> for me to get used to

Well, the idea is that you could use Groups at the same time as Styles, not just only have all one or all the other.


Some kinds of organization may be different than their visual look, like separating things into "first floor" and "second floor".


> Do you have any timeframe for beta 3 ?

No, not yet. It may take a couple of months or so from the end of v2 until the first v3 beta.

- 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
 

Reply to All Reply to All

 

 
 
Show messages: All  1  2-9