Jump to content

How to import a textfile


Ezz

Recommended Posts

Hi dear folks!

I wonder if its possible to import a textdocument into houdini and how to acceses it.

The fileSOP does not support anything else than geometryformats - wich is kind of logical.

Thanks a lot

Erik

Edited by Ezz
Link to comment
Share on other sites

Hi dear folks!

I wonder if its possible to import a textdocument into houdini and how to acceses it.

The fileSOP does not support anything else than geometryformats - wich is kind of logical.

Thanks a lot

Erik

What about using python?

http://www.penzilla.net/tutorials/python/fileio/

What would you be using it for?

Link to comment
Share on other sites

Thanks for your replies and links.

I have looked at som Python and this code works:

import os

f = os.path.join("c:\\","Documents and Settings","administrator.VFX-3D","My Documents","test.txt")

file = open(f,"r").readline()

print file

My problem is I cant figur out how to implement Python in houdini.

Lets say I wanted a string in an attribute to be read from a file then Im lost

Erik

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...