I need help how to use "prim" expression function ...

   433   1   1
User Avatar
Member
365 posts
Joined: Aug. 2015
Offline
Hi;

In a SOP, I would like to use the prim expression function (https://www.sidefx.com/docs/houdini/expressions/prim.html), but I don't know how to retrieve the primitive number. I mean in this expression:

prim("/obj/geo1/mysop", 3 , "myvar", 0)

Can I use $PR instead of number 3?
I think I can't use @primnum cause this is an expression, right?


Thanks for helping.
Edited by Masoud - July 19, 2020 08:34:31
Masoud Saadatmand (MSDVFX)
User Avatar
Member
170 posts
Joined: March 2018
Offline
Hey man!
If the node which you're trying to write this expression supports local variables ($PR in your case), you can use it otherwise no!
  • Quick Links