Can I get a stage object in a SOPs vex wrangle?

   1926   5   1
User Avatar
Member
86 posts
Joined: Jan. 2015
Offline
Up to this point, if I needed to get a prim's property from SOPs, I've used Python.

I was wondering, is it possible to get access to a stage from vex within sops? ie in a sop wrangle, how would i (or can i) pass the stage to:
usd_attrib(<stage>, s@primpath, "someProperty")
?
User Avatar
Staff
4450 posts
Joined: July 2005
Offline
Not yet, but it's on the todo list for the next major release.
User Avatar
Member
7815 posts
Joined: Sept. 2011
Offline
mtucker
Not yet, but it's on the todo list for the next major release.

How would it work, by passing a path to a lop node or a usd file as the first argument?
User Avatar
Member
8599 posts
Joined: July 2007
Offline
jsmack
How would it work, by passing a path to a lop node or a usd file as the first argument?
ideally both, or all 3

int - e.g. 0 - for input in LOP context
path string - e.g. “/tmp/file.usd” - for usd files on disk
op: string - e.g. “op:/stage/lopnode” - for referencing stage at certain lop
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
86 posts
Joined: Jan. 2015
Offline
@tamte - Agreed, for my use case I was hoping for something like the “op:/path” syntax. Unfortunate that it's not available now, but glad it's on the roadmap!
User Avatar
Staff
4450 posts
Joined: July 2005
Offline
Yes, ideally all three, but “op:” is the higher priority.
  • Quick Links