Jump to content

Custom File SOP


Recommended Posts

I currently am using a File SOP and a GEO_IOTranslator to read in a custom data file. However, I'd like the user to be able to edit some parameters when reading in the file, so I would like to create a custom File-like SOP. How would I go about doing this?

I'm trying to create a SOP based on SOP_Star.C, but that's probably not the best resource. How do I load and read a file? Could you point me at some examples to look at?

 

Link to comment
Share on other sites

You just supply parameter for the file and read it into the native geometry data structures as you've already done with your custom GEO_IOTranslator. Here's one random example I picked off from the Cortex project

http://cortex-vfx.googlecode.com/svn-history/r5001/trunk/src/IECoreHoudini/SOP_InterpolatedCacheReader.cpp

  • Like 1
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...