Slow down Font node speed?

   1483   6   1
User Avatar
Member
48 posts
Joined: Sept. 2016
Offline
Hi,

In Font node the expression $F is tied to frame numbers, but I want to slow it down, say, by half. How can I achieve this?
User Avatar
Staff
3455 posts
Joined: July 2005
Offline
$F/2
?
Michael Goldfarb | www.odforce.net
Training Lead
SideFX
www.sidefx.com
User Avatar
Member
48 posts
Joined: Sept. 2016
Offline
Thx “goldfarb” for your reply,

yes, the way you wrote is a common approach, `$F/2` should slow down the speed. But in this case with the Font SOP, it does not give exactly what it should, because it also gives intermediate values, such as 1.5, 2.5 an so on. How can I get only whole values, i.e. between whole values it could only stick to wholes?
User Avatar
Member
555 posts
Joined: Feb. 2017
Offline
`rint($F/10)`

where 10 is increment every 10 frames…
User Avatar
Member
48 posts
Joined: Sept. 2016
Offline
Thank you “vusta” for your reply,

yes it helped, I am so grateful.

Can you tell me what does “r” mean in the beginning of the line?
User Avatar
Member
555 posts
Joined: Feb. 2017
Offline
rint is round int…which is wrong…my bad….it should be just int…..so take out the r at the start…
User Avatar
Member
48 posts
Joined: Sept. 2016
Offline
Thank you “vusta” for clarifying it.
  • Quick Links