I was hoping someone might know if its possible to use a variable in a pattern expression?
If so, I was wondering what the syntax would be for that.
I've tried using double quotes and backticks amongst other combinations but can't seem to get it to “work”.
I've included the file. But it's basically a Polygon by Pattern parameter in an add node.
The following code is what I have for the expression in that node. And the commented out pattern that just uses numbers works when uncommented.
in this example the number ‘44’ is what I would like to replace with a variable that can change:
Imported_Total_Points = hou.node('/obj/Inner_Glass_Boundary/pointwrangle3').geometry()
result = Imported_Total_Points.intAttribValue('Points_In_Range') + 3
return '0 4-result 1 2 3 0'
#return '0 4-44 1 2 3 0'
If anyone happens to know if this is possible it's appreciated. Thank you.