hou.playbar <-> frange

   5944   2   1
User Avatar
Member
380 posts
Joined: 7月 2005
Offline
the textport help on frange indicates that it is replaced
by hou.playbar. however hou.playbar doesnt appear to
be implemented, nor are there methods to call other than
isRealTime().

hou has frame() to get the current frame…
but im looking for a way to query the playbar's
start and end frames.

can anyone point me in the right direction? thanks!
User Avatar
Member
1908 posts
Joined: 11月 2006
Online
Unfortunately about the only thing I can suggest is to either parse the output of hou.hscript(“frange”) of use hou.hscriptExpression() using $RFSTART and RFEND to get start and end frames.
Graham Thompson, Technical Artist @ Rockstar Games
User Avatar
Member
194 posts
Joined:
Offline
parsing frange:

frange = hou.hscript('frange')
fstart, fend = frange.strip('Frame range: ‘).strip(’\n').split(' to ‘)
fstart = int(fstart)
fend = int(fend)
print fstart, fend

ps: i have this code as a function in one of the Python modules, who’s source code you can download. see the thread on particle and camera transfer tools or the asset i uploaded on Houdini Exchange.
  • Quick Links