Updating path of vdb inside assfile

Updating path of vdb inside assfile

Daveborkiewicz_Daveborkiewicz
Not applicable
920 Views
4 Replies
Message 1 of 5

Updating path of vdb inside assfile

Daveborkiewicz_Daveborkiewicz
Not applicable

Hi,

I have a bunch of smoke vdbs simulated in range 1001-2001 instanced on pointcloud.

I baked them all in ass file and include that in my lighting scene. If I bake them on frame 1001 filename path inside ass file is set to "volume/smoke.1001.vdb".

How can I target volume nodes inside ass procedural with operators and update frame in path to 1002,1003..etc?

I can target whole procedural like that: *.(@derived == 'procedural') but how to target nodes inside?


Any help would be greatly appreciated

Dawid

0 Likes
Accepted solutions (1)
921 Views
4 Replies
Replies (4)
Message 2 of 5

Stephen.Blair
Community Manager
Community Manager

Why not use Arnold path mapping?

https://arnoldsupport.com/2020/08/06/remapping-paths-at-render-time/



// Stephen Blair
// Arnold Renderer Support
0 Likes
Message 3 of 5

Daveborkiewicz_Daveborkiewicz
Not applicable

Can I dynamically update paths on a frame by frame basis with this approach?


Judging by examples it seems more suitable for static remaps like switching between different os etc

0 Likes
Message 4 of 5

Stephen.Blair
Community Manager
Community Manager
Accepted solution

path mapping or string_replace, either way you're limited to using regular expressions to update the paths



// Stephen Blair
// Arnold Renderer Support
0 Likes
Message 5 of 5

Daveborkiewicz_Daveborkiewicz
Not applicable

string_replace operator with this kind of selection expression '*.((@node == 'volume') and (name == '*volume*'))' works well. I thought I need to target procedural on which that expression runs but it seems that runs on entire scene sent to Arnold. Very cool, saved a lot of time on rebaking many 1000 frames caches.

0 Likes