I try to add a similar question as
I can't seem to get <expression> to work within scale animation ...
I want to shrink the object in z direction depending on the location of the elevator.
If I try the following it basically works
- Code: Select all
<animation>
<type>scale</type>
<object-name>elev-4-wires</object-name>
<property>surface-positions/elevator[3]/position-norm</property>
<center>
<x-m> 0.00</x-m>
<y-m> 0.00</y-m>
<z-m>19.00</z-m>
</center>
<x-min>1.0</x-min>
<y-min>1.0</y-min>
<z-min>0.1</z-min>
<x-factor>1.0</x-factor>
<y-factor>1.0</y-factor>
<z-factor>1.0</z-factor>
</animation>
Problem is: I need to invert the scaling so it follows 1-"the-property-used".
I tried the following without success:
- Code: Select all
<animation>
<type>scale</type>
<object-name>elev-4-wires</object-name>
<property>surface-positions/elevator[3]/position-norm</property>
<center>
<x-m> 0.00</x-m>
<y-m> 0.00</y-m>
<z-m>19.00</z-m>
</center>
<x-min>1.0</x-min>
<y-min>1.0</y-min>
<z-min>0.1</z-min>
<x-factor>1.0</x-factor>
<y-factor>1.0</y-factor>
<z-factor>
<expression>
<dif>
<value>1.0</value>
<property>surface-positions/elevator[3]/position-norm</property>
</dif>
</expression>
</z-factor>
</animation>
The Wiki and all other mentioned sources of information are not really helpful for me yet ...
Any advice ?
Mike-DE