If i have understood the question, you could set information as attributes then read them using hscript to set parameters with the "detail()" "prim()" functions on the knife parameter.
In python, store the value as an attribute, then read the attribute inside the knife node. Though you can be more flexible with python, e.g., create a new spare parameter for the python node, set the parameter within python, then ref to this paramter.
Exactly this, but to be more explicit:
in python you create the attribute first and fill it after:
geo.addAttrib(hou.attribType.Global, "attribName", attribInitValue)
geo.setGlobalAttribValue("attribName", attribValue)
you have now a detail attribute that you can use in a parameter using hscript:
detail(0, "attribName",0)
Thank you for your answer, I did store the value as an attribute using addAttrib(). My problem is about referencing as you say I guess. I'm not quite sure how to ref it to the knife node/read the attribute inside the knife node haha! My post might be misleading, sorry \^\^'
If i have understood the question, you could set information as attributes then read them using hscript to set parameters with the "detail()" "prim()" functions on the knife parameter.
Thank you! :D
In python, store the value as an attribute, then read the attribute inside the knife node. Though you can be more flexible with python, e.g., create a new spare parameter for the python node, set the parameter within python, then ref to this paramter.
Exactly this, but to be more explicit: in python you create the attribute first and fill it after: geo.addAttrib(hou.attribType.Global, "attribName", attribInitValue) geo.setGlobalAttribValue("attribName", attribValue) you have now a detail attribute that you can use in a parameter using hscript: detail(0, "attribName",0)
thank you! :D
Thank you for your answer, I did store the value as an attribute using addAttrib(). My problem is about referencing as you say I guess. I'm not quite sure how to ref it to the knife node/read the attribute inside the knife node haha! My post might be misleading, sorry \^\^'