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
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.