Texture sequence manipulation in material x

   760   3   1
User Avatar
Member
67 posts
Joined: March 2017
Offline
Using an expression in the Filename parameter of an edit material properties LOP doesn't seem to work.

I've got an image sequence that I want to use as a texture map. I can get this work by using an edit material properties lop, pointing it to mtlximage1 node in my material, and putting $JOB/mytexture_$F4.exr as the filename. However, I also need to offset the sequence number, but any expression seems to fail.

For example, $JOB/mytexture/`$F4-10`/.exr doesn't work. Is it possible to use expressions in this field? Is there another way to manipulate this path?

Thanks!

Brad T.
User Avatar
Member
8043 posts
Joined: Sept. 2011
Offline
BradThompson
$JOB/mytexture/`$F4-10`/.exr

you mean this?

$JOB/mytexture.`padzero(4,$F-10)`.exr

`$F4-10` doesn't mean anything, since $F4 is a string not a number.
Edited by jsmack - April 26, 2024 15:20:16
User Avatar
Member
67 posts
Joined: March 2017
Offline
Thanks jsmack! Today I learned that $F is an float (or int?) and $F4 is a string. Now it works.
User Avatar
Member
8043 posts
Joined: Sept. 2011
Offline
BradThompson
Thanks jsmack! Today I learned that $F is an float (or int?) and $F4 is a string. Now it works.

It's a float. hexpressions only have two types, string and float. There's a lot of gotchas in the expression language that stem from the strict typing. stuff like why are there point() and points() functions.
  • Quick Links