find the translate Attribute or position of Special objects in different frames

19 views
Skip to first unread message

email...@gmail.com

unread,
Jul 21, 2020, 7:17:41 AM7/21/20
to Python Programming for Autodesk Maya

hi. How do I find the translate Attribute or position  of Special objects in different frames while I am on frame one?

The point is that The position of our object depends on several nodes connected to it.

Roland Reyer

unread,
Jul 21, 2020, 5:08:03 PM7/21/20
to Python Programming for Autodesk Maya


Am Dienstag, 21. Juli 2020 13:17:41 UTC+2 schrieb email...@gmail.com:

hi. How do I find the translate Attribute or position  of Special objects in different frames while I am on frame one?

The point is that The position of our object depends on several nodes connected to it.


Hi, you could just set the time and then query the values.

 

Simon Payne

unread,
Jul 22, 2020, 2:34:04 AM7/22/20
to python_in...@googlegroups.com
Hi Roland,

What is it exactly that you want to achieve? There are multiple answers to this. If you want to trigger something on pre-defined frames, you can just query the frame/time, either in script or an expression. If its a more constant dynamic effect/calculation, you can just use getAttr -t. If animation curves already exist on the items in question, thats even easier as it can be queried via keyframes, getAttr or returning animGraph values, as opposed to there being no keyframes yet, and thus a runtime expression will be the answer. You can also use a frame cache node which can be fun.

Simon

Sent from my iPhone

On 21 Jul 2020, at 22:08, Roland Reyer <rey...@gmail.com> wrote:


--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/b04283c5-5c51-405f-b8ec-d730563e0a51o%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages