Search - User list
Full Version: Python scripting in future build of Houdini Apprentice
Root » Technical Discussion » Python scripting in future build of Houdini Apprentice
nicholas_yue
Given that Tk is built into the current release of Houdini Apprentice, are there plans to also include Python scripting language into future build of Houdini Apprentice?

I understand that the SGI port of Houdini Apprentice has Python scripting in the current release.

I don't have access to an SGI machine only Intel boxes running Windows2000/XP.
goldfarb
check out the conversation in the mail list:
here [sidefx.com]

I think it's a case of “if enough users ask for it…”
nicholas_yue
arctor
check out the conversation in the mail list:
here [sidefx.com]

I think it's a case of “if enough users ask for it…”

From reading the thread, it seems that even with major studio ILM using the Python scripting language in Houdini cannot conviced SESI to include them, poeple down the food chain nibbling at Houdini Apprentice must adopt the “beggars cannot be chooser” mentality.

Well I am still hopeful…..meanwhile I can pretend to use Blender + Python to be my poor man's Houdini :-)
goldfarb
AFAIK…ILM doesn't use Houdini…maybe a few seats of Select, but…
I think they use Python for all kinds of other things, in/with their own programs, pipeline etc…
pbowmar
Err, you guys know that you can use any language you want by using the “hcommand” and “openport” combo, right?

Basically, in Houdini use the textport command “openport 554” where 554 is any number (do “help openport” in the Houdini textport for more info).

Then, you can use the command “hcommand 554 opls” to access Houdini from “outside”. So, in your Python script, do whatever the command is to call an external program (in Python) using “hcommand 554 xxx” and replace xxx with whatever Houdini command you want. That's it! That's why Python isn't embedded anymore, it's not needed to be embedded. You can program in Cshell, Python, VB, Fortan, Pascal, C++ or whatever the heck you want

Cheers,

PEter B
MatrixNAN
Cool

:shock:
nicholas_yue
pbowmar
Err, you guys know that you can use any language you want by using the “hcommand” and “openport” combo, right?

Basically, in Houdini use the textport command “openport 554” where 554 is any number (do “help openport” in the Houdini textport for more info).

Then, you can use the command “hcommand 554 opls” to access Houdini from “outside”. So, in your Python script, do whatever the command is to call an external program (in Python) using “hcommand 554 xxx” and replace xxx with whatever Houdini command you want. That's it! That's why Python isn't embedded anymore, it's not needed to be embedded. You can program in Cshell, Python, VB, Fortan, Pascal, C++ or whatever the heck you want

Cheers,

PEter B

Q1 Where is the houdini module (Python module)?
Q2 Where are the Python object representing Houdini's internal?
Q3 How do we access the various OP, i.e. SOP, CHOP etc…?
Q4 How do we query/change the values in the OP?
Q5 How do we write out or read a HIP file from within the Python script? Q6 What if I need to query VEX shader parameters?

I understand that embedding and calling Python is different.

Cheers
goldfarb
thanks Peter…
very cool
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