Hide construction lines
From:
TOM (SIRTOM)
8 Jun 2017 (1 of 9)
8459.1
Hi,
I did several searches but without success so here my question :
How can I hide my current set of construction lines (and makem them visible again ?
Reply
More
Post Options
Reply as PM
Print
Mark as unread
Relationship
IP
Logged
From:
Michael Gibson
8 Jun 2017 (2 of 9)
8459.2
In reply to
8459.1
Hi Tom,
re:
> How can I hide my current set of construction lines (and makem them visible again ?
Try putting the following script on a shortcut key:
script: /* Hide/show construction lines */ var clines = moi.geometryDatabase.getObjects().getConstructionLines(); if ( clines.length > 0 ) { clines.setProperty( 'hidden', !clines.item(0).hidden ); }
That should then toggle hide/show of all construction lines when you trigger it.
- Michael
EDITED: 8 Jun 2017 by MICHAEL GIBSON
Reply
More
Post Options
Reply as PM
Print
Mark as unread
Relationship
IP
Logged
From:
TOM (SIRTOM)
8 Jun 2017 (3 of 9)
8459.3
In reply to
8459.2
Fantastic - thanks, Michael !
Enjoying your superb Swiss knife of 3D more than ever - TOM
Reply
More
Post Options
Reply as PM
Print
Mark as unread
Relationship
IP
Logged
From:
TOM (SIRTOM)
8 Jun 2017 (4 of 9)
8459.4
Did someone else apply it - seems not to work for me.
Reply
More
Post Options
Reply as PM
Print
Mark as unread
Relationship
IP
Logged
From:
Michael Gibson
8 Jun 2017 (5 of 9)
8459.5
In reply to
8459.4
Hi Tom, I tested it over here on some temporary construction lines that I created while in the Line command. Is it behaving differently for you with non-temporary construction lines possibly?
- Michael
Reply
More
Post Options
Reply as PM
Print
Mark as unread
Relationship
IP
Logged
From:
shayno
8 Jun 2017 (6 of 9)
8459.6
Useful scripts are
Keep construction line , run after line is generated
script:moi.geometryDatabase.getObjects().getConstructionLines().setProperty( "isTemporary", false );
Remove all construction lines
script:var gd = moi.geometryDatabase; gd.removeObjects( gd.getObjects().getConstructionLines() );
Cheers
shayne
Reply
More
Post Options
Reply as PM
Print
Mark as unread
Relationship
IP
Logged
From:
BurrMan
8 Jun 2017 (7 of 9)
8459.7
In reply to
8459.5
There exists a line break when you copy and paste michaels script. I remember that with some systems and workflows, that can cause an issue.
Reply
More
Post Options
Reply as PM
Print
Mark as unread
Relationship
IP
Logged
From:
Michael Gibson
8 Jun 2017 (8 of 9)
8459.8
In reply to
8459.7
Thanks for catching that Burr!
@Tom - try it again since I removed that line break that got in there somehow.
- Michael
Reply
More
Post Options
Reply as PM
Print
Mark as unread
Relationship
IP
Logged
From:
TOM (SIRTOM)
9 Jun 2017 (9 of 9)
8459.9
Thank you for the tips, shaynuĆ³ !
Michael, Burrman - yes, now it works properly, happy for this further step
to the ultimately smooth workflow ;-)
Reply
More
Post Options
Reply as PM
Print
Mark as unread
Relationship
IP
Logged
Reply to All