Alanw Posted August 10, 2010 Share Posted August 10, 2010 $HIP/blacksmith_color.10`$UV_POS1``ifs($UV_POS2== -1 , $UV_POS2==9, $UV_POS2 - 1)`.tif this is what i ended up with. I was pretty sure this was correct but obviously it isn't. lol. this snippet is saying if uvpos2 = -1 then uvpos2 = 9, otherwise uvpos2 minus 1 right? or am i missing something. *thanks for the patience everyone * This is the entire string I'm replacing in my project. $HIP/texture/color.10`ifs($UV_POS1 > 9, $UV_POS1+1, padzero(2, $UV_POS1+1))`.tif My files are named color.1001.tif -> color.1012.tif and uv_pos2 is always equal to 0 since I only have one row of tiles. However, I think my expression would hold up unless I had 100+ tiles. In that case I would need to modify it to support numbers in the triple digits. In my case, uv_pos1 equals 0 through 11, so all I need to do is add 1, and make sure single digit numbers are padded. ie 01 02 03 04, etc. I'll have to check a project with multiple rows / columns and see if there's anything I'm missing. Quote Link to comment Share on other sites More sharing options...
bw5013 Posted August 10, 2010 Author Share Posted August 10, 2010 (edited) This is the entire string I'm replacing in my project. $HIP/texture/color.10`ifs($UV_POS1 > 9, $UV_POS1+1, padzero(2, $UV_POS1+1))`.tif My files are named color.1001.tif -> color.1012.tif and uv_pos2 is always equal to 0 since I only have one row of tiles. However, I think my expression would hold up unless I had 100+ tiles. In that case I would need to modify it to support numbers in the triple digits. In my case, uv_pos1 equals 0 through 11, so all I need to do is add 1, and make sure single digit numbers are padded. ie 01 02 03 04, etc. I'll have to check a project with multiple rows / columns and see if there's anything I'm missing. Thanks. I'm using demo assets from the foundry. The blacksmith has 4 rows and 10 collumns. There something off at first glance *eyebrows on the chest.*. preview render/hip below. uv_map_test_aug10.hipnc Edited August 10, 2010 by bw5013 Quote Link to comment Share on other sites More sharing options...
bw5013 Posted August 27, 2010 Author Share Posted August 27, 2010 There just really doesn't seem to be a fix for this. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.