Do I need to cache an animated Switch LOP ?

   227   3   2
User Avatar
Member
2 posts
Joined: 12月 2024
オフライン
I’m working with an animated Switch LOP that toggles between different geometry objects, which generates time samples downstream in the USD stage.

My question is: should this be cached?

From what I understand, it’s generally considered good USD practice to cache all animation. However, when I use a File Cache LOP (tested with several configurations), the resulting cache seems to strip or omit the animation data entirely.
User Avatar
スタッフ
4259 posts
Joined: 9月 2007
オフライン
You can't cache a Switch LOP to USD, it has no representation in USD. So whatever is switching your LOP is causing the ROP to not write out the USD.
I'm o.d.d.
User Avatar
Member
9291 posts
Joined: 7月 2007
オフライン
goldleaf
You can't cache a Switch LOP to USD, it has no representation in USD. So whatever is switching your LOP is causing the ROP to not write out the USD.
I assume the expectation is that exporting a sequence with animated switch into a single .usd (or caching) will behave exactly the same as if you run USD Stitch of individual frames, which have different switched stages

if it doesn't behave this way there needs to be some warning as that would not be intuitive
Tomas Slancik
CG Supervisor
Framestore, NY
User Avatar
スタッフ
580 posts
Joined: 6月 2020
オフライン
Please log a bug if/as you identify caching points (specific LOPs etc) which aren't behaving as-expected and doing so silently. The Cache LOP, for example, has a number of conditions it'll generate warnings for.
  • Quick Links