PDA

View Full Version : Time In MEL & API


Spireite
11-23-2006, 01:19 PM
Hi,

Ok heres my problem, Im using the api to dvelop a few custom nodes for a project im working on, i need to have some of the attributes on one of these nodes recalculated everytime Time increases. I swear ive read read how to do this somewhere but i cant find it now i want it.

If anyone knows how to write something like this in the API (or mel for that matter as i can use the MEL from within the API) let me know it driving me mad and im at a stand still till i figure it out

Cheers

Starrider
11-24-2006, 09:12 AM
hey!
you have to create an inTime-attribute which is connected to your scene's time-node out. then you make an attributeAffects inTime -> attributeToCalculate. that's it.
if you only want to calculate when the time increases you have to create another attribute in which you store the last computet time and if inTime > lastTime you do your calculation.
good luck!

CGTalk Moderation
11-24-2006, 09:13 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.