Why does the following:
frame = hou.hscriptExpression('$F')
print frame
print the frame number, but only once and not update as I press play?
$F in python
7636 3 0-
- Soothsayer
- Member
- 875 posts
- Joined: Oct. 2008
- Offline
-
- Ratmann
- Member
- 110 posts
- Joined:
- Offline
Because you're just doing that, defining ‘frame’ as the $F that you where on when you assigned the value.
if you want to make a constantly updated one, you have to make a call tot he timeline so it checks what frame it's on and it prints the frame number it's on.
With this you just made a specific assignment. Scripting 101.
if you want to make a constantly updated one, you have to make a call tot he timeline so it checks what frame it's on and it prints the frame number it's on.
With this you just made a specific assignment. Scripting 101.
-
- Soothsayer
- Member
- 875 posts
- Joined: Oct. 2008
- Offline
-
- graham
- Member
- 1928 posts
- Joined: Nov. 2006
- Offline
-
- Quick Links


