Hi everyone, I'm creating my first ruler file with City engine, and I'm wondering how to create a path to Texture files with the filename controlled by 1 or more variables? Please see attached image file. Thanks everyone!
Hi @trungta,
Cool that you're digging into CGA 🙂
You got two errors in your code snippet:
After you change this there won't be any errors:
attr HH = rint(scope.sy/5) attr WW = rint(scope.sx/5) Floor_facade --> setupProjection(0, scope.xy, scope.sx, scope.sy) texture("/ESRI.lib/assets/Facades/International/Upperfloors/u_f0" + HH + "_t0" + WW + "*.jpg") projectUV(0)
However there are some more things to consider:
Hope this helps and happy coding!
CheersJonas
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.