Alias pointing to another alias?

Hi List!

I am not sure if I asked this before (I remember experiencing the same some time ago, but could not find anything in the archive). If I use an alias pointing to another alias, should this work? E.g.:

void plastic my_mat
0
5 .3 .2 .1 .2 0

void alias lars_mat my_mat
void alias new_mat lars_mat

Should the modifier new_mad be valid, with the same properties as my_mat? I am experiencing that this does not work.

TIA+CU Lars.

Hi Lars,

I think that you need to use the "inherit" modifier on the second "alias" as follows"

inherit alias new_mat lars_mat

-Jack

Lars O. Grobe wrote:

···

Hi List!

I am not sure if I asked this before (I remember experiencing the same some time ago, but could not find anything in the archive). If I use an alias pointing to another alias, should this work? E.g.:

void plastic my_mat
0
5 .3 .2 .1 .2 0

void alias lars_mat my_mat
void alias new_mat lars_mat

Should the modifier new_mad be valid, with the same properties as my_mat? I am experiencing that this does not work.

TIA+CU Lars.

_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general

--
# John E. de Valpine
# president
#
# visarc incorporated
# http://www.visarc.com
#
# channeling technology for superior design and construction

I think that you need to use the "inherit" modifier on the second "alias" as follows"

Hi Jack,

thank you for this, I was not even aware of this "new" (as of 3.5) modifier, I really should read the release notes more carefully.

CU Lars.

Hi Lars,

This feature is designed to enable things like the following:

void brightfunc bf.mod
(...)

bf.mod colorfunc cf.mod
(...)

cf.mod plastic p.name
(...)

inherit alias my.name p.name

This way my.name includes all the modifiers, whereas:

void alias my.name p.name

would only include the plastic material without any modifiers.

-Jack

Lars O. Grobe wrote:

···

I think that you need to use the "inherit" modifier on the second "alias" as follows"

Hi Jack,

thank you for this, I was not even aware of this "new" (as of 3.5) modifier, I really should read the release notes more carefully.

CU Lars.

_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general

--
# John E. de Valpine
# president
#
# visarc incorporated
# http://www.visarc.com
#
# channeling technology for superior design and construction