Thank you for your response, I found the problem:
Blend wants an expression or a property, otherwise it will not work!For example, the property "sim/MyAirplane/glass_camera_reflections" is define by NASAL code, in this configuration the surfice from transparent become less transparent and the color is "Orange01.png"
- Code: Select all
<animation>
<type>material</type>
<object-name>Glass001</object-name>
<texture>Liveries/Orange01.png</texture>
</animation>
<animation>
<type>blend</type>
<property>sim/MyAirplane/glass_camera_reflections</property>
<factor>0.7</factor>
<object-name>Glass001</object-name>
</animation>
Thi is the NASAL code:
- Code: Select all
# Calculate Glass reflection
var prop = props.globals.initNode("sim/MyAirplane/glass_camera_reflections", 0, "DOUBLE");
var timer = maketimer(1, func() {
var ambientRedLight = props.globals.getNode("/rendering/scene/ambient/red",1);
reflection = ambientRedLight.getValue();
setprop("sim/MyAirplane/glass_camera_reflections",reflection);
});
timer.start();
In my case I wanted to reduce the orange color effect glass (it's an anti-reflective glass), when there is a decrease of ambient light: