Changing VideoTexture cam source.

I am trying to change the camera source on this video texture script while in-game,but with no success…

import VideoTextureimport bge
contr = bge.logic.getCurrentController()
obj = contr.owner

if not hasattr(bge.logic, 'viewp'):
    matID = VideoTexture.materialID(obj, 'MA1')
    bge.logic.viewp = VideoTexture.Texture(obj, matID,0)
    bge.logic.viewp.source = VideoTexture.ImageRender(bge.logic.getSceneList()[0].objects['cs_bloom_cam'])
    bge.logic.viewp.source.capsize = [256,256]
    bge.logic.viewp.source.background = [0,0,0,0]


I cant get to change the camera source, while the script is running.
Even if its changed,it still renders from the first camera.

I guess it doesn’t work,it has to be a barrier from VideoTexture module … Anyways ,I have tried a different approach…

It should work, I’ve uses it before. I’ll check it out some time this weekend.

Well it doesn’t really wants to , I even created a new script with another cam source under a new state ,and it still uses the old camera ,very odd.

The second one wouldn’t recreate the texture because it checks if the variable is assigned on the object

Oh ,that’s right …it makes sense now…though ,it would be cool to change sources ,but anyway ,I found another way to trick it…