Fine/Rough intervals

Return to Scripting Issues

Fine/Rough intervals

Postby panda.egg » Mon Nov 22, 2004 12:33 pm

Is there a way to have an interval that slows near the end instead of just suddenly stopping? I think it's fluid = 1, but I'm not sure. Please send me an example, thanks! :wink:
Current Project:

Panda.egg at ToonTown estates
panda.egg
 
Posts: 99
Joined: Fri Sep 24, 2004 12:17 am

Postby vjawa » Mon Nov 22, 2004 3:23 pm

You can use the blendtype parameter in the Interval.

Code: Select all
nodePath.posInterval(duration, pos, starPos=None, blendtype=None,bakeInStart=1)


The blendtype parameter will get what you want.

The blendtypes are:
BTEaseIn = 1
BTEaseInOut = 3
BTEaseOut = 2
BTInvalid = 4
BTNoBlend = 0

As examples either use the number blendtype = 3
or use blendtype = CInterval.BTEaseInOut
vjawa
 
Posts: 24
Joined: Tue Nov 16, 2004 9:59 pm

Postby drwr » Mon Nov 22, 2004 11:44 pm

Note that the integer value of each blend type is not guaranteed to remain unchanged for future versions of Panda. For this reason (as well as for code readability) it is better to use blendtype = CInterval.BTEaseInOut rather than blendtype = 3.

David
drwr
 
Posts: 11253
Joined: Fri Feb 13, 2004 12:42 pm
Location: Glendale, CA


Return to Scripting Issues

Who is online

Users browsing this forum: No registered users and 0 guests

cron