How to connect time node to an custom attribute in maya

Hey , i have to connect a time node to an custom object’s attribute , is here any possible way to do it.

Simple:

Write an expression using time:

node.value = time;

More work, more control:

create driven key on the attribute and set it. Watch the pre- and post infinity values to control what happens outside your keys. for a linear time use a key at 0 with a value of zero, a key at time 1.0 seconds with a value of 1, linear tangents and linear pre-and-post infinities.

In the outliner go to Display and uncheck DAG Objects Only and among those DG nodes that are going to show there will be a node called Time1. That is your scenes time node and you can connect its out time attribute to your custom attribute.