64 bit version question
All  1-6  7-16

Previous
Next
 From:  Andrei Samardac
5885.7 In reply to 5885.6 
Spec first, I have Intel i7 3.40 GHZ, GForce GTX 560 Ti 1GB.
I turned on "Show viewport display time" but I am not sure how to interpret this time. I have 280 ms with all edges on and 80 ms with off. If I converted right than for all adges "on" I have 1000/280=3 FPS and "off" 1000/80=12.5 FPS. (when rotating)

Yes I use this script to hide the edges of the current selected objects every time, but wanted to ask you to improve it a bit.
Would be greate if:
When I select object it will hide all adges on all unselected object. And if I select object with hiden edges it will show them on this object and hide on all unselected objects.

How can I see how much edges have model?

Michael I hide time to time objects that I'm not working on, but i use solo script insted of hide. Becouse when I use hide, when I unhide objecst it unhide them with all hiden edges too.
  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
5885.8 In reply to 5885.7 
Hi mir4ea,

> I turned on "Show viewport display time" but I am not sure how to interpret this time. I have 280 ms
> with all edges on and 80 ms with off. If I converted right than for all adges "on" I have 1000/280=3
> FPS and "off" 1000/80=12.5 FPS. (when rotating)

Yes, that's interpreting it correctly - so isn't 12.5 FPS fast enough to work in?


> How can I see how much edges have model?

Click here to select all edges (on the "selection indicator dot" area):




Then the properties panel will show the count of the current selection:






> Yes I use this script to hide the edges of the current selected objects every time,
> but wanted to ask you to improve it a bit.
> Would be greate if:
> When I select object it will hide all adges on all unselected object. And if I select object
> with hiden edges it will show them on this object and hide on all unselected objects.

This should probably not be too difficult to set up, I'll give this a try tomorrow, (it's late at night over here right now).



> Michael I hide time to time objects that I'm not working on, but i use solo script insted of hide.
> Becouse when I use hide, when I unhide objecst it unhide them with all hiden edges too.

By solo script you mean the "isolate" function with the right-click on the hide button? That should help with this since when you do it a second time it doesn't just show everything instead it restores everything to the same state that they were in at the time of the first isolate.

Would it also help to have an additional script that would show all hidden objects but not their edges? Maybe then that would be better to use for resetting everything for you rather than the regular "unhide" that unhides everything.

- 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:  Andrei Samardac
5885.9 In reply to 5885.8 
Thanx.

Make pleas this script it will simplify work process.

12 FPS is not bad... Just have to used to it.

Yes I meant "isolate".

Yes it would be good to have this script to test.
But when you unhide all the unhiden objects will be with hiden edges or only that that was with hiden edges?

Offtop..
How do you quote posts?
Where are you from?
  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
5885.10 In reply to 5885.9 
Hi mir4ea,

> But when you unhide all the unhiden objects will be with hiden edges
> or only that that was with hiden edges?

I'll see if I can make it just the ones that had hidden edges to keep them hidden.



> Offtop..
> How do you quote posts?


I just copy/paste the original post and type in > characters. For a large block of text you can also put in <quote> xxx </quote> that will make an indented section in your post like this:

quote:
This is stuff surrounded by quote tags


> Where are you from?

Seattle, USA.

- 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
5885.11 In reply to 5885.7 
Hi mir4ea, here's the first script:

script: /* Show edges on selected objects, hide edges on all others */ var breps = moi.geometryDatabase.getObjects().getBreps(); for ( var i = 0; i < breps.length; ++i ) { var brep = breps.item(i); brep.getEdges().setProperty( 'hidden', !brep.selected ); }


If you set this script on a shortcut key, when it is triggered it will make all edges of the selected objects to be shown, and all edges on unselected objects to be hidden. So it's kind of like "activate edges on selected objects, deactivate others".

- 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
5885.12 In reply to 5885.9 
Hi mir4ea, here's the second script:

script: /* Replacement for Edit > Hide - on "unhide" this will only show the parent object and not all its edges */ var gd = moi.geometryDatabase; if ( gd.getSelectedObjects().length != 0 ) { gd.hide(); } else { var objs = gd.getObjects(); for ( var i = 0; i < objs.length; ++i ) { var obj = objs.item(i); if ( obj.hidden ) { obj.hidden = false; obj.selected = true; } } }

This one can be used as a replacement for Edit > Hide. If something is selected it will hide it the same as how Edit > Hide works. If nothing is selected, it will do an "unhide" but unlike the regular unhide this version will not modify edges so if any edges were hidden when the full object was hidden, with this unhide those edges will remain hidden when the main object is shown again.

So you can use this instead of the regular Edit > Hide button and it should hopefully not cause as much problems with the edge visibility coming back.

Hope these help!

- 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:  Andrei Samardac
5885.13 In reply to 5885.12 
Thanx a lot Michael, very usefull scripts.
Thay will help a lot people who work with big projects.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Message 5885.14 deleted 16 May 2013 by ANDREI SAMARDAC

Previous
Next
 From:  Andrei Samardac
5885.15 In reply to 5885.13 
Hay Michael, Is it possible to make edges appear only when the object is active? Some plugin or script?
I just saw this video with CREO tutorial looks like it has this feature.
http://www.youtube.com/watch?v=LEOHc5rSLS4
  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
5885.16 In reply to 5885.15 
Hi mir4ea, there isn't really any way to do that currently - right now you can set up scripts that are triggered to run when you push a shortcut key. The kind of script that you're talking about would not run when you push a key but rather try to hook into object activation in some way, there is not currently anything set up for scripts to hook into things in that way.

- 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-6  7-16