Setting line width of individual lines and a bug

Next
 From:  Martin (MARTIN3D)
4786.1 
Hi Michael,

I can alter the width of all lines by using
moi.view.lineWidth += 1; or
moi.view.lineWidth -= 1;

but can I select just some lines and alter just their width using a script?
Something like this (not working) script:
var objs = moi.geometryDatabase.getSelectedObjects(); objs.lineWidth += 1;

By the way if I use moi.view.lineWidth -= 1; too often I get this

You may want to check if line widths go below zero.

  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
4786.2 In reply to 4786.1 
Hi Martin, no there's not currently any way to set line width differently on individual objects. That is something that I want to add in the future though.


> By the way if I use moi.view.lineWidth -= 1; too often I get this

Thanks for reporting this, that should be easy for me to fix. For the time being you'll need to adjust the script using something like:

if ( moi.view.lineWidth > 1 ) moi.view.lineWidth -= 1;

- 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:  Martin (MARTIN3D)
4786.3 In reply to 4786.2 
Thank you Michael. This and the option of round line caps plus the high resolution screenshot to clipboard would allow some nice shaded NPR renderings.
Alternatively if hidden lines are not exported to Illustrator I could change the line caps there.


  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
4786.4 In reply to 4786.3 
Hi Martin, something like rounded end caps may happen eventually in a sort of offline render method where it would calculate an image but which may take a while longer to generate than the regular real-time viewport display. It's a big focus for the regular display to do its job quickly and that tends to put some limits on what I can handle there.

But most likely I will be trying to focus on generating a hidden-line output to Illustrator first before stuff like that happens directly in MoI.

- 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)
4786.5 
we can also change the parameters moi.view.lineWidth = 1; & moi.view.lineWidth = 4;from the srcript
---
Pilou
Is beautiful that please without concept!
My Gallery
  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