検索 - User list
Full Version: Python in Parameter problem
Root » Houdini Learning Materials » Python in Parameter problem
GottaGetmedat
Well now if I put…
hou.node(“.”).digitsInName()
I'll see a “1” assuming the node's name is say object1 and the paramater is set to evaluate as Python script not houdini script.
but if I put…
hn = hou.node(“.”)
hn.digitsInName()
I get a zero “0”
if I wrap it in squiggly brackets or I put semi colons at the end or anything it never works in a multiline way?
I also can't seem to integrate it into a hscript maybe with back ticks or something? eval? no I can't find a way?

I'm totally lost here, please help.
GottaGetmedat
In HScript I finally found this
opdigits(opname(“.”))
will get a way to the “opnum”.
Still Multiline Python doesn't seem to work in expressions, at least the way I expected.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB