On 27/06/2013 at 18:17, xxxxxxxx wrote:
It looks like there was some attention paid to this in the latest release (R14.041). It now is able to access and update the exporter private data. Or at least appears to:
Something like this Python function:
> def plugindata() :
>
> exporter={} # Creates container for Message return object
>
> plug=c4d.plugins.FindPlugin(1028082, c4d.PLUGINTYPE_SCENESAVER)
>
> doc=c4d.documents.GetActiveDocument()
>
> fps=doc.GetFps()
>
> if plug:
>
> if plug.Message(c4d.MSG_RETRIEVEPRIVATEDATA,exporter) :
>
> data=exporter['imexporter'].GetDataInstance()
>
> start=doc.GetMinTime()
>
> end=doc.GetMaxTime()
>
> data.SetTime(c4d.ABCEXPORT_FRAME_START,start)
>
> data.SetTime(c4d.ABCEXPORT_FRAME_END,end)
It also updates the start/end export frame range. It sets them to 0. No matter what value is passed to either. I know it's "working" because I can control which parameter I want to set to zero by commenting out alternating data.SetTime instructions.
Am I just missing something, or is this still not working?