Difference between revisions of "GET GEO USER COLOR"

From Macros Wiki
Jump to: navigation, search
(Created page with "{{Up}} {{Command|syntax=GET_GEO_USER_COLOR <geo ref> <red> <green> <blue> |description=Get the user color of a face |param1=<solid>|param1_desc=Solid ...")
 
Line 1: Line 1:
[[:Solids:Solid_Data|{{Up}}]]
+
[[Geometry:Editing_Geometry|{{Up}}]]
  
{{Command|syntax=GET_GEO_USER_COLOR <geo ref> <red> <green> <blue>
+
{{Command|syntax=GET_GEO_USER_COLOR <geo ref>, <color_attr>, <red>, <green>, <blue>
|description=Get the user color of a face
+
|description=:Get the user color attribute associated with a geometry feature.
 
 
|param1=<solid>|param1_desc=Solid number
 
|param2=<face>|param2_desc=Face number
 
|param3=<red>|param3_desc=Variable for the red component of color (0 to 255)
 
|param4=<green>|param4_desc=Variable for the green component of color (0 to 255)
 
|param5=<blue>|param5_desc=Variable for the blue component of color (0 to 255)
 
  
 +
|param1=<geo ref>|param1_desc={{geo ref}}
 +
|param2=<red>|param3_desc={{get red}}
 +
|param3=<green>|param4_desc={{get green}}
 +
|param4=<blue>|param5_desc={{get blue}}
 
}}
 
}}
  
 
===Example===
 
===Example===
:GET_FACE_USER_COLOR 7, 3, iRed, iBlue, iGreen    ! get the user color for face 3 on solid 7
+
:GET_GEO_USER_COLOR 21, RedVal, BlueVal, GreenVal
  
[[Category:Solids]]
+
[[Category:Geometry]]

Revision as of 18:25, 23 October 2019

Up

Command

GET_GEO_USER_COLOR <geo ref>, <color_attr>, <red>, <green>, <blue>


Get the user color attribute associated with a geometry feature.

Parameters

<geo ref>
The reference number of the geometry feature.
<red>
<green>
The name of a numeric variable to set to the red component of a color.
This will be a number between 0 and 255
<blue>
The name of a numeric variable to set to the green component of a color.
This will be a number between 0 and 255
The name of a numeric variable to set to the blue component of a color.
This will be a number between 0 and 255

Example

GET_GEO_USER_COLOR 21, RedVal, BlueVal, GreenVal