Sie sind nicht angemeldet.

Scott Witte

Fortgeschrittener

  • »Scott Witte« ist der Autor dieses Themas

Beiträge: 382

Wohnort: Milwaukee, WI USA

Beruf: Professional Photographer

  • Nachricht senden

1

Dienstag, 15. März 2016, 22:20

How can you check layer's general alignment?

Say I want to know if a layer is somewhere on the left side. Could be lefttop, left or leftbottom. Is there an easy way to check this? Brute force would five checks for all the variations: topleft, lefttop etc. A more elegant approach would be a substring search for "left" but I don't see how to do that in KRP. What is the best approach?

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Scott Witte« (16. März 2016, 00:51)


Beiträge: 1 857

Beruf: Virtual Tours - Photography - Krpano developer

  • Nachricht senden

2

Mittwoch, 16. März 2016, 15:59

http://krpano.com/docu/actions/#indexoftxt

That should help.
Run the align attribute through that.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

Scott Witte

Fortgeschrittener

  • »Scott Witte« ist der Autor dieses Themas

Beiträge: 382

Wohnort: Milwaukee, WI USA

Beruf: Professional Photographer

  • Nachricht senden

3

Mittwoch, 16. März 2016, 16:29

Brilliant! Exactly what I needed. Thanks.

I had searched for "substr" (as in other languages) and found nothing. Should have limited it to "sub" or "string" and cycled through the results until I found what I needed. Lesson learned.