rdg Posted January 24, 2007 Share Posted January 24, 2007 Hello, sibarrick pointed me at CHOPS to read textfiles containing strings. But there is still something missing: I can read *.chan files containing numbers and get them into a fontSOP with `chopf ("/ch/ch1/file1/chan0", $F)` If the file contains text like "abc" this doesn't work. I tried chopstr, too. The phonemeCHOP looked promising. But I coudn't get the text into my fontSOP. I also think about numbered textfiles with only one string - maybe I could then `system("cat myfile" + $F + ".txt")` in the text field of the fontSOP? But where does system start in a win32 environment looking for files? Can win32 cat? (No, I dont want to install linux.) A chls told me that text isn't a channel of the fontSOP, so I cannot use chread? I guess I need some VEX/VOP(?) network reading the textfile and a much more knowledge about this. I will keep trying. I want to change the text over time based on a textfile. Maybe someone could offer me another hint? thank you. Georg Quote Link to comment Share on other sites More sharing options...
sibarrick Posted January 24, 2007 Share Posted January 24, 2007 You should be able to read text straight into the font sop via python like this `system("python c:/ubin/datetime.py")` this is my own python script for returning the date and time Quote Link to comment Share on other sites More sharing options...
rdg Posted January 24, 2007 Author Share Posted January 24, 2007 :notworthy: Good things come to those who wait? A miss is as good as a mile. In my case [path_to_python]python.exe caused an 16-bit exception and [path_to_python]python2.4 .exe works ... I am soo happy. Georg Quote Link to comment Share on other sites More sharing options...
edward Posted January 25, 2007 Share Posted January 25, 2007 CHOPs is strictly floating point data. Quote Link to comment Share on other sites More sharing options...
rdg Posted January 25, 2007 Author Share Posted January 25, 2007 ok. after a conversation with digitallsane at the irc I noticed that the problem was caused by: I didn't have a pointer to my python in my environment setting. Georg Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.