Difference between revisions of "SELECT GEO BY USER COLOR"

From Macros Wiki
Jump to: navigation, search
(Created page with "{{Up}} {{Command|syntax=SELECT_FACE_BY_USER_COLOR <solid> <red> <green> <blue> [<add to selection>] |description=Select an faces of a given user ...")
 
 
Line 1: Line 1:
[[:Solids:Selecting_Solids|{{Up}}]]
+
[[Geometry:Editing_Geometry|{{Up}}]]
  
{{Command|syntax=SELECT_FACE_BY_USER_COLOR <solid> <red> <green> <blue> [<add to selection>]
+
{{Command|syntax=SELECT_GEO_BY_USER_COLOR <red> <green> <blue> [<add to selection>]
|description=Select an faces of a given user color
+
|description=Select geometry of a given user color
  
|param1=<solid>|param1_desc=Solid number (0=all solids)
+
|param1=<geo ref>|param1_desc={{geo ref}}
 
|param2=<red>|param2_desc=Red component of color (0 to 255)
 
|param2=<red>|param2_desc=Red component of color (0 to 255)
 
|param3=<green>|param3_desc=Green component of color (0 to 255)
 
|param3=<green>|param3_desc=Green component of color (0 to 255)
 
|param4=<blue>|param4_desc=Blue component of color (0 to 255)
 
|param4=<blue>|param4_desc=Blue component of color (0 to 255)
|param5=<add to selection>|param5_desc=0=replace selected faces with the faces of this color, 1=add to selected faces
+
|param5=<add to selection>|param5_desc=0=replace selected geometry with geometry of this color, 1=add to selected geometry
 
}}
 
}}
  
 
===Example===
 
===Example===
:SELECT_FACE_BY_USER_COLOR 7, 255, 0, 0     ! select all faces on solid 7 that are red
+
:SELECT_GEO_BY_USER_COLOR 255, 0, 0     ! select all geometry that is red
 
<br>
 
<br>
:SELECT_FACE_BY_USER_COLOR 3, 0, 255, 0, 0  ! select all faces on solid 3 that are green
+
:SELECT_GEO_BY_USER_COLOR 0, 255, 0, 0  ! select all geometry that is green
:SELECT_FACE_BY_USER_COLOR 3, 0, 0, 255, 1  ! and all faces on solid 3 that are blue
+
:SELECT_GEO_BY_USER_COLOR 0, 0, 255, 1  ! and all geometry that is blue
  
[[Category:Solids]]
+
[[Category:Geometry]]

Latest revision as of 18:31, 23 October 2019

Up

Command

SELECT_GEO_BY_USER_COLOR <red> <green> <blue> [<add to selection>]


Select geometry of a given user color

Parameters

<geo ref>
The reference number of the geometry feature.
<red>
Red component of color (0 to 255)
<green>
Green component of color (0 to 255)
<blue>
Blue component of color (0 to 255)
<add to selection>
0=replace selected geometry with geometry of this color, 1=add to selected geometry

Example

SELECT_GEO_BY_USER_COLOR 255, 0, 0  ! select all geometry that is red


SELECT_GEO_BY_USER_COLOR 0, 255, 0, 0  ! select all geometry that is green
SELECT_GEO_BY_USER_COLOR 0, 0, 255, 1  ! and all geometry that is blue