Jump to content

Pass variables from a .py script to Python code


guache

Recommended Posts

In Houdini, I have one node with a button that runs a lengthy Python script (a .py file on disk). I have another Python node with Python code inside it. This Python code needs to use 2 Python lists created by the .py script on disk. I could use a text file to write and pass these lists, but I was wondering if there's a better way to "save" and pass variables within the hou environment itself.

Edited by guache
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...