Create variable to be picked up downstream? [SOLVED]

   1108   1   0
User Avatar
Member
127 posts
Joined: Feb. 2021
Offline
I'm trying something for sequence shots.
What I want to do is set a variable that can be picked up downstream but only in that branch.

So simplest imaginary version of it:
- Setting @scale=2 in an attribute wrangle (or something).
- Use @scale as expression/token for a cube/box's scale value.
- Being able to have multiple of these in their own branches, with their own values.


Maybe this is super obvious but cant get my head around it.
"Edit context option" only works upstream, so not an option. "store parameter values" does seem to do what i want either. Attribute wrangle does nothing. I also don't want to link to a particular node to set value.
Edited by AndreasWeidman - May 16, 2021 16:00:43
Andreas Weidman
VFX Supervisor - Dupe VFX
www.dupevfx.com
User Avatar
Member
127 posts
Joined: Feb. 2021
Offline
Turns out all I had to do was:

1 - Add a USD int to a node and set the value.
2 - Read it in with a python node: TheNodesPrimPath.GetAttribute("WhateverTheIntWasNamed").Get()
Andreas Weidman
VFX Supervisor - Dupe VFX
www.dupevfx.com
  • Quick Links