FONT - Text from external file.
2454 3 1- Tobias Steiner
- Member
- 101 posts
- Joined: 9月 2015
- Offline
- toadstorm
- Member
- 377 posts
- Joined: 4月 2017
- Offline
You could use a Python expression to handle this, if you're familiar. Basically you'd add a spare parm to your Font SOP that would point to a text file, and then create a Python expression in the “Text” parameter that would load that file and return its contents, like this:
I'm attaching a little example.
file_path = hou.pwd().parm("file_path").eval() text = "" with open(file_path, 'r') as f: text = f.read() return text
I'm attaching a little example.
MOPs (Motion Operators for Houdini): http://www.motionoperators.com [www.motionoperators.com]
- Tobias Steiner
- Member
- 101 posts
- Joined: 9月 2015
- Offline
toadstorm
You could use a Python expression to handle this, if you're familiar. Basically you'd add a spare parm to your Font SOP that would point to a text file, and then create a Python expression in the “Text” parameter that would load that file and return its contents, like this:file_path = hou.pwd().parm("file_path").eval() text = "" with open(file_path, 'r') as f: text = f.read() return text
I'm attaching a little example.
Thank you! I will try this out.
- mestela
- Member
- 1788 posts
- Joined: 5月 2006
- Offline
-
- Quick Links