Telling a file in node to read frames '$F4-13'

   14520   5   2
User Avatar
Member
322 posts
Joined:
Offline
Hey peeps,

Is there a way to tell the File SOP to read in a sequence of bgeo files frame by frame minus a certain number? For example, I have a bgeo sequence, 1-500, but I want to tell the file SOP to ignore the first 13 and treat frame 14 as frame 1 and frame 15 as frame 2 etc. I want to do this so I can sync up the geometry in one bgeo sequence with geometry from another bgeo sequence. I've tried putting some expressions into the path field but it seems that this field literally only takes a directory structure?

It has occurred to me that I could rename the files number extension from the Linux shell, but I wondered if there is any way to do it from Houdini?

Cheers…
User Avatar
Member
136 posts
Joined: July 2005
Offline
Try this…
$HIP/geo/myfile`padzero(4,$F+13)`.bgeo
User Avatar
Member
306 posts
Joined: July 2005
Offline
Simply put in the file sop an expression based on $F. Such as

$GEO/myfiles.`$F-14`.bgeo

iIf they are zero padded (eg. myfiles.0001.bgeo) use something like:

$GEO/myfiles.`padzero(4,$F-14)`.bgeo

Clamp can help stabalise your network as well..

$GEO/myfiles.`padzero(4,clamp($F-14,1,100))`.bgeo

hth.
r.
“First things first – but not necessarily in that order”
– The Doctor
User Avatar
Member
322 posts
Joined:
Offline
i tried putting expressions like that in but it didn't work. I notice in your syntax you have a “.” (fullstop), is this what im missing? I was trying:-

$HOME/Geo/myfiles$F-13.bgeo

and

$HOME/Geo/myfiles`$F-13`.bgeo

But they were returning errors…..

Thanks for your help. :wink:
User Avatar
Member
1634 posts
Joined: July 2005
Offline
Hi,

How are your files named? Are they myfiles1.bgeo or myfiles0001.bgeo? If it's not padded, then you don't need to use padzero().

Next, you're thinking in reverse. If you want frame 14 to be frame 1, it should be $F+13 and not $F-13. I would say you're still getting an error because $F-13 on frame 1 evaluates to a negative frame number and there are no files available.

Please let us know how it goes.

Cheers!
steven
User Avatar
Member
322 posts
Joined:
Offline
Yeah I got it to work, my sequence was padded. I got it to work using:-


Dir_Structure/Glass_midsection_DOOR_`padzero(4, $F4+11)`.bgeo

Worked fine, thanks a lot for your help guys….
  • Quick Links