cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

The 2025 Technology Preview Program is now live. Join today!

GDL
About building parametric objects with GDL.

Light MVO in GDL

vfrontiers
Advocate

I am trying to use the MVO for lights inside my GDL SCRIPT...

 

I cannot find the actual GLOB VARIABLE that would reflect the MVO selection... 

 

I see others that use the global variable   GLOB_MVO_STAIR....  for example....

But don't se any for LIGHTS or ELEC...

 

I tried to REVERSE ENGINEER an existing light, but GS GDL scripts go 9 ways to Sunday to do the simplest things!  So I could not follow... 

 

Any assistance would be appreciated!!!

 

 

Thanks

Duane

Visual Frontiers

AC25 :|: AC26 :|: AC27
:|: Enscape3.4:|:TwinMotion

DellXPS 4.7ghz i7:|: 8gb GPU 1070ti / Alienware M18 Laptop
2 REPLIES 2
runxel
Hero

 

I guess you mean these three bad boys?

 

runxel_0-1695938570043.png

 

This is how it's done:

lamp_symb = 0
rrr = LIBRARYGLOBAL("LibraryGlobals13", "iLSymbol", lamp_symb)

if rrr and lamp_symb then
  ! your code here
endif

 

Request the info from the "LibraryGlobals13" GDL (which constitutes the MVO panel).

The answer you can get is either 1, 2, or 3.

I think you'll figure it out from here on 😉

Lucas Becker | AC 27 on Mac | Graphisoft Insider Panelist | Akroter.io – high-end GDL objects | Author of Runxel's Archicad Wiki | Editor at SelfGDL | Developer of the GDL plugin for Sublime Text

My List of AC shortcomings & bugs | I Will Piledrive You If You Mention AI Again |

POSIWID – The Purpose Of a System Is What It Does /// «Furthermore, I consider that Carth... yearly releases must be destroyed»
Domagoj Lukinic
Booster