read data from files in hscript

   2804   4   3
User Avatar
Member
54 posts
Joined:
Offline
hello everyone
how can I read data from an ascii file in hscript and use the data to set parameters …
sorry for the trivial question
luc
User Avatar
Member
299 posts
Joined: Jan. 2010
Offline
Use python.
Drive, monkey, drive!
User Avatar
Member
121 posts
Joined: July 2008
Offline
Here is a little paper that I made of a test project that I did.
The HDA reads in a text file to start with.
You can find some test files on the exchange if you want to see it work.
I didn't updated anymore because it was meant more as a test so it can maybe error out. But the read in should still work.

Attachments:
CLAUDIO_PASCARIELLO_LIGHTDOME.pdf (965.2 KB)

Available for new projects
User Avatar
Member
54 posts
Joined:
Offline
thanks.
time to learn python then …
luc
User Avatar
Member
731 posts
Joined: Dec. 2006
Offline
set mydata = `system(“cat /tmp/foo.txt”)`

foreach x ($mydata )
echo $x
opparm $x … etc
end
Sean Lewkiw
CG Supervisor
Machine FX - Cinesite MTL
  • Quick Links