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!
hou.playbar <-> frange
5944 2 1- sdugaro
- Member
- 380 posts
- Joined: 7月 2005
- Offline
- graham
- Member
- 1908 posts
- Joined: 11月 2006
- Online
- whalerider
- 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.
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