How to make PDG attributes work with Flipbooks?

   Views 687   Replies 2   Subscribers 1
User Avatar
Member
38 posts
Joined: Aug. 2017
Online
For each work item I render a flipbook using a Python Script.

For each work item I would like to swap geometry in a File SOP using `@pdg_index` to alter the filepath.

When I try this, the PDG attributes don't work during the cook. But when I press on the little dots, now everything starts working. But of course if I recook, it will stop working again.

How can I solve this?

I'm attaching a small test scene showcasing my issue if that helps.

EDIT: I just figured out a workaround, which is to set the parameters using that Python Script itself. It's not very scalable, but at least it works.
Edited by alexmajewski - July 5, 2024 11:49:50

Attachments:
tops_attributes_and_flipbooks.hip (573.6 KB)

User Avatar
Member
318 posts
Joined: Jan. 2013
Offline
That's some complicated way to render from a viewport. I would use a FilePattern node that would read files from disc and load them into File SOP, and then use the next node ROP Fetch to reference the OpenGL node that would do all the rendering.
User Avatar
Member
38 posts
Joined: Aug. 2017
Online
Unfortunately, OpenGL ROP doesn't have that flipbook look, you know what I mean? It doesn't show the viewport guides, the background is black and not that iconic blue gradient.
  • Quick Links