I need help how to use "prim" expression function ...
- 365 posts
- Joined: Aug. 2015
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)
- 170 posts
- Joined: March 2018
If the node which you're trying to write this expression supports local variables ($PR in your case), you can use it otherwise no!