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…
Telling a file in node to read frames '$F4-13'
14520 5 2-
- Dean_19
- Member
- 322 posts
- Joined:
- Offline
-
- AndrewVK
- Member
- 136 posts
- Joined: July 2005
- Offline
-
- rangi
- 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.
$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
– The Doctor
-
- Dean_19
- Member
- 322 posts
- Joined:
- Offline
-
- stevenong
- 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
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
-
- Dean_19
- Member
- 322 posts
- Joined:
- Offline
-
- Quick Links


