How to change the body color
Akane Ito
Member Posts: 38
**
in Structures
I want to change the body color using RGB settings.
Even if I set it with RGB like in this example, the recorded script ends up showing it differently.
Tagged:
0
Best Answer
-
Convert RGB as follows.
Colors are displayed in RGB on the color palette, but they are actually represented in BGR, so caution is required.
https://developer.ansys.com/docs/mechanical-scripting-interface/api/ansys/mechanical/stubs/v242/Ansys/Mechanical/DataModel/Constants/Colors.mdR = 255
G = 255
B = 192N = B*256**2 + G*256 + R
body.Color = N
1
Answers
-
I solved it myself.
No response needed.
Thank you!0 -
Hi @Akane Ito, Could you please post the solution so that others may benefit?
0 -
Many thanks @Akane Ito
1