accessing "$FSTART" "$FEND" and "$NFRAMES" from python

   2563   2   1
User Avatar
Member
72 posts
Joined: Oct. 2018
Offline
I got into trouble accessing "$F" "$FPS" and "$NFRAMES" from python and/or VEX without abusing parameters.

there is hou.frame(), hou.time(), hou.fps() and in VEX @Frame and @Time. Is this all I have?

is there really no hou.startFrame(), hou.endFrame() and @StartFrame @EndFrame ?


I know I could use a parameter with the Variable I want. But I want to do it directly from within VEX/Python. It looks (and IS) cleaner. And there are also cases where I do not have spare parameters available. Especially in python.

$FSTART,$FEND,$TSTART,$TEND
User Avatar
Member
2658 posts
Joined: June 2008
Offline
Check out the playbar module. You should be able to extract the range.
https://www.sidefx.com/docs/houdini/hom/hou/playbar.html [www.sidefx.com]
Using Houdini Indie 20.5
Windows 11 64GB Ryzen 16 core.
nVidia 3060RTX 12BG RAM.
User Avatar
Member
72 posts
Joined: Oct. 2018
Offline
Thanks Enivob !!!

Well this time I obviously didn't follow my own advice.... Coffee'n'Break & Rerun...

But... (*sorry*) No fps there... (but in hou.fps()) Anyways !

Maybe we will notice early enough if SideFX starts hou2 to be heard.

Again Thanks!!

*puttingKettleOnStove*


Have A Nice Day !
  • Quick Links