|
 |
Le 2025-09-25 à 18:45, Leroy a écrit :
> Variables can act as any type. Like this
>
> #declare A="35542";
> #declare B="35542"; #debug concat("A,B",A,B"\n")
> #declare A=45; #debug concat("A =",str(A,0,0),"\n")
> #declare B=-45; #debug concat("B =",str(B,0,0),"\n")
> #declare A=<4,5,6>; #debug concat("A= <",vstr(3,A,",",3,3),">\n")
> #declare B=B+<6,5,4>; #debug concat("B= <",vstr(3,B,",",3,3),">\n")
> #declare A=box{-1,1}
> #declare B=pigment{Red}
> object{A pigment{B}}
>
> This works on 3.7 & 3.8 win versions.
>
> Have Fun!
>
I think that already worked like that with version 3.5...
Post a reply to this message
|
 |