Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

Scripts referencing AC10 library

Anonymous
Not applicable
I am using a custom object, book shelf with books, written by someone else, in AC10. The script allows the shelves to be filled with a specified percentage of books. The script allowed for all spines to have random colors, I believe the line of script used was rnd_color. Now all the spines are black. Is this because the library has changed and therefore the material numbers or has something else happened? New to GDL.

CPRISM_ rnd_color, rnd_color, rnd_color, 13, bk_fill_ht,
0,0,15,
0.05",0,15,
0.05", bk_fill_dp, 15,
bk_fill_wd-0.05", bk_fill_dp, 15,
bk_fill_wd-0.05", 0, 15,
bk_fill_wd, 0, 15,
bk_fill_wd, bk_fill_dp, 15,
bk_fill_wd-0.025", bk_fill_dp, 15,
bk_fill_wd-0.15",
bk_fill_dp+0.05", 1015,
0.15", bk_fill_dp+0.05", 1015,
0.025", bk_fill_dp, 1015,
0, bk_fill_dp, 15,
0,0,-1

Thank you!
1 REPLY 1
David Maudlin
Rockstar
s_wet10:

The parameter rnd_color sets the material for the book. This parameter should be defined within the object, or perhaps via a macro (there is no Global Variable rnd_color). Search the 3D Script and Master Script for rnd_color to see where this material is defined, it may be defined via a macro, in that case the macro will need to be loaded with the libraries.

David
David Maudlin / Architect
www.davidmaudlin.com
Digital Architecture
AC27 USA • iMac 27" 4.0GHz Quad-core i7 OSX11 | 24 gb ram • MacBook Pro M3 Pro | 36 gb ram OSX14