hi again
added the sepia posteffect to my camera. The idea is to rise the amount while loading stuff and reduce when You can play again. Looks fine but seams not to be verry reliable Sometime it’s work, sometime I’ve to switch the camera and the effect is there. change attribute value in the editor works 100%
Is there a way to force the camera to notice new value?
So, indeed it’s a big project, but I am fairly sure you just need to update the following in your code:
var cameraEntity = this.app.root.findByName('SkyCam').findByName('Camera');
if (cameraEntity.script.sepia.amount != 1){
cameraEntity.script.sepia.amount = 1;
}
Notice how amount is fully lowercase, which is the case with this specific editor attribute. You use the initial property definition to target it, not its Title:
Sorry about this
I’ve checked in the console, but also with a capital A…
So I’ve tracked something bad I’ve add to the cam somewhere
shame on me
Now it works like it should => solved