Color Gradient script?
 1-11  …  52-71  72-91  92

Previous
 From:  GonzoRus
9676.92 
Script for assigning "Magenta" color to selected faces.

code:
/* Assign selected faces to style = Magenta */ var starting_selection = moi.geometryDatabase.getSelectedObjects(); var faces = starting_selection.getFaces(); moi.geometryDatabase.deselectAll(); faces.setProperty( 'selected', true ); var style = moi.geometryDatabase.findStyle( 'Magenta', false /*Create if not found*/ ); if ( style ) { moi.ui.propertiesPanel.editStyleIndex( style.index ); } moi.geometryDatabase.deselectAll(); starting_selection.setProperty( 'selected', true );


"Magenta" can be changed to any color from the existing styles.
  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-11  …  32-51  52-71  72-91  92