annuler
Affichage des résultats de 
Rechercher plutôt 
Vouliez-vous dire : 
fr
annuler
Affichage des résultats de 
Rechercher plutôt 
Vouliez-vous dire : 
Raoul
Contributeur(rice)

Apply an image texture on a Cprism surface

In the GDL script I want to use an image to apply it to a surface.

 

    DEFINE TEXTURE "PictTexture" "2.png", dimXPict, dimYPict, 1, 0
    DEFINE MATERIAL "pictmat"  21, 1.000000, 1.000000, 1.000000, 1.0, 0.5, 0.5, 0.000000, 3.0, 0, 1, 1, IND(TEXTURE, "PictTexture")
    SET MATERIAL "pictmat"
side-material ="pictmat" - the material results in a string

Next I want to put the material in the memory to apply it to a variable PRISM volume using PUT/USE/GET

For the PRISM Archicad demands a number instead of a string with PUT command in the memory.

PUT side_material
 
 
CPRISM_{4} top_material, bottom_material, side_material, mask,
n, h,
x1, y1, alpha1, s1, side_material,
...
xn, yn, alphan, sn, side_material
 
How can I replace the side_material...side_material variable from string ("pictmat") to a number?
What would be the solution ?
1 RÉPONSE 1
runxel
Modérateur(rice)

For that you use the "IND()" function, which you already used.

So it would be my_surf = ind(MATERIAL, "pictmat").

Lucas Becker | AC 29 on Mac (Sequoia) | 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»

Vous n'avez pas trouvé la réponse ?

Consulter d'autres sujets dans ce forum

Retourner au forum

Lire les dernières solutions !

Solutions acceptées

Lancez une nouvelle discussion !