On 09/12/2014 at 02:01, xxxxxxxx wrote:
Hello,
this thread deals with getting the preview of a shader, not of a material. Please do not confuse this.
The frame may be defined in the InitRenderStruct object. As documented it's parameters are currently read-only.
Alternatively you could use the shader's Sample() function to sample the shader yourself. The time would be defined in the ChannelData parameter or setting the BaseDocument's time via SetTime() and calling ExecutePasses(). This may depend on the specific shader.
Best wishes,
Sebastian