Accessing a File in Vex

   4650   2   1
User Avatar
Member
113 posts
Joined: July 2005
Offline
Hi Everybody,

I wonder how to access a file in VEX in order to read/parse a text file, or to write it


thanks in advance,

Julien
User Avatar
Member
543 posts
Joined: July 2005
Offline
Hi Julien,

You can't really read or write a file directly in VEX, I'm sure you're aware of the File SOP/CHOP/POP, etc. to read in various types of data.

Are you wanting to read/write data in the SOP context? CHOP's? POP's?

I don't know if this would help you:
http://www.digitalcinemaarts.com/dev/file_out/index.html [digitalcinemaarts.com]

When I first approached this problem, I wanted to do it as a VEX DSO, but found out quickly that the DSO would be run as an SIMD type of process which created a bunch of problems.

So I wrote this plugin with the HDK and it works well but I'm thinking I should write a version of it as a command or expression instead of an OP.


–Mark
========================================================
You are no age between space
User Avatar
Member
113 posts
Joined: July 2005
Offline
Well, basically I would like to create a object loader SOP (mainly like the File SOP), with some informations like point deformation frame per frame, etc ..
Maybe should I look in the HDK

Anyway , thanks for the answer !


Julien
  • Quick Links