Search the Community
Showing results for tags 'translator'.
-
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?
-
I want to create a plugin that allows me to import a camera path. Specifically, the format of my external file is: translationX_frame1, translationY_frame1, translationZ_frame1, rotationX_frame1, rotationY_frame1, rotationZ_frame1 translationX_frame2, translationY_frame2, translationZ_frame2, rotationX_frame2, rotationY_frame2, rotationZ_frame2 translationX_frame3, translationY_frame3, translationZ_frame3, rotationX_frame3, rotationY_frame3, rotationZ_frame3 ... I don't really know where to begin. It would make sense to me to be able to create a camera, just set the translation and rotation at each frame. Can I do this in the HDK? Do I want to write a GEO_IOTranslator for this? If so, would I have to create a camera path somehow, or could I just create a camera? Would that be an OBJ_Camera? I would really appreciate being pointed in the right direction, or some help to get a simple example working; e.g. creating a camera looking at (0,0,0) and moving it from (0,0,1) at frame 1 to (0,0,2) at frame 2.