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

   4044   7   1
User Avatar
Member
86 posts
Joined: 1月 2015
オフライン
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
スタッフ
4574 posts
Joined: 7月 2005
オフライン
Not yet, but it's on the todo list for the next major release.
User Avatar
Member
8238 posts
Joined: 9月 2011
オフライン
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
9572 posts
Joined: 7月 2007
オフライン
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
CG Supervisor
Framestore, NY
User Avatar
Member
86 posts
Joined: 1月 2015
オフライン
@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
スタッフ
4574 posts
Joined: 7月 2005
オフライン
Yes, ideally all three, but “op:” is the higher priority.
User Avatar
Member
5 posts
Joined: 12月 2016
オフライン
was it released yet?
User Avatar
スタッフ
4574 posts
Joined: 7月 2005
オフライン
Yes.
  • Quick Links