Community
Maya Forum
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Per-object frame offsets on instanced volume

0 REPLIES 0
Reply
Message 1 of 1
grahamhouston
381 Views, 0 Replies

Per-object frame offsets on instanced volume

So, I need to render a large amount of campfires (hundreds). I have one campfire .vdb and would like to instance it using an Arnold volume. The problem with this, is that they’ll all be identical. I’d like to do frame offsets of the .vdb sequence per fire instance. The frame integer is a shape node attribute, so it’ll have to be controlled via expression. My next idea is to declare a variable per transform node (id), and just add that to time1. If all fires are called fire001, fire002, fire003, etc., what sort of expression can I use to pull data from all of them without declaring them all specifically?

I've found I can create an array using a wildcard:
string $testArray[] = `ls "fire*"`;

This will print all my volume instance transforms in a list, so yay for that.  Now I'm just stuck as to how to store my id attribute in this array (eg. fire001.id = 1, fire002.id = 2)  These id offsets would be the variable I'd need to offset time1, and (hopefully) give me a unique frame number per instance, driven by the shared shape node).

0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report