Hello,
here is my current problem. I have a FxTexture I get from an image well:
for ( int j=1; j<=10; j++ ) {
[getAPI getTexture: &texture[j]
layerOffsetX: &imageOffset.x
layerOffsetY: &imageOffset.y
requestInfo: iInfo
fromParm: clip_ParamID
atTime: renderInfo.frame + j];
}
The texture is a short clip with, lets lay, 10 frames. So I want to put all the frames into an array: texture[j]
This works perfectly with Motion 3 and I can access and see the 10 frames and they all have a different textureID.
When the same plugin runs with Motion 2, the array ends up with the same texture for all array entries (the textureID is always "2"). So when I read the 10 frames, all entries in the array will be exactly the same and I wont be able to access the first 9 frames, because each call of the -getTexture method overwrites the last read frame. I will always see the last read frame, no matter in which order I read the 10 frames.
Is this normal for Motion 2 ? What can I do to to avoid this?
------
So I thought to copy the frames one by one to another array while I read them from the image well with something like this:
Header:
FxTexture *texture2[10];
Code:
texture2[j] = [[FxTexture alloc] autorelease];
[texture2[j] initWithInfo: [texture[j] imageInfo] andTextureId: [texture[j] textureId]];
But... somehow this does not work... Any clues ?
best regards
Christoph Vonrhein