Animating pocket doors with the Interact tool

The animatecustom function consist of 6 or more parameters.
The first is the attribute which to be animated, the second is the timeframe in seconds of the animation.
The third and fourth are controlling the speed within the timeframe, easein the speed of the begin, easeout the speed at the end. These are calculated in percentage (value 0-100)
The last parameters are just an array of values that the attribute jumps to after a click, if there are only two, it’s basically a switch.

For true animation, you need to alter the easein and easeout, because when you open the door, the rotation should be quicker than the sliding backwards, but when you want to close the cabinet, you probably want to draw the door first, before rotating it.

This can also be done by adding some custom attributes as you did with the second parameter (timeframe), switching ease in and out based on the current state of the door (open or closed)

See the other thread:

(It’s not a good idea to spread your questions over different topics)