GDL: Surface Override Parameter

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2023-06-26 10:01 AM
2023-06-26
10:01 AM
Hi all,
Is there some way to access and write back to the Surface Override Parameter?
I have ways to override surfaces within my object and I was wanting to link this parameter rather than have it be seperate and override the internal overrides.
So the first internal override would be reflected to the external one. And ideally the toggle would be too.
IF GLOB_MODPAR_NAME = "[gs_boverride]" then
mat_over1 = [gs_boverride]
mat_1 = [gs_override]
PARAMETERS [gs_boverride] = [gs_boverride]
PARAMETERS [gs_override] = [gs_override]
endIF
IF GLOB_MODPAR_NAME = "mat_over1" then
[gs_boverride] = mat_over1
[gs_override] = mat_1
PARAMETERS mat_over1 = mat_over1
PARAMETERS mat_1 = mat_1
endIF
Ling.
AC22-28 AUS 3110 | Help Those Help You - Add a Signature |
Self-taught, bend it till it breaks | Creating a Thread |
Win11 | i9 10850K | 64GB | RX6600 | Win11 | R5 2600 | 16GB | GTX1660 |
Labels:
- Labels:
-
Library (GDL)
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2023-06-26 10:26 AM
2023-06-26
10:26 AM
I know SYMB_MAT is the material for the override, but I am not sure if you can determine if the override is active or not.
Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11