Hello all.
I've had a heck of a time getting something (apparently) simple to work and would appreciate any pointers:
I'm trying to display the elapsed seconds on my animation using a COP Network.
Using $T in the Text field produces too many significant digits so I was trying to find a way to get, say %3.2f (in sprintf talk). That is, tenth and hundredth places.
My great idea was to use hou.time() in the following:
“%3.2f”%hou.time()
I had a bit of an issue getting this to work at first since I seemed to need a keyframe that didn't exist at first.
But, after adding a keyframe at 1 and using this (along with switching the interpreter to python from hscript) it did work in the viewer.
But..the renders hung on the first frame.
Moving to version 10 seemed to fix this but then certain frames were getting garbled.
I also found that the file would hang upon loading “some” of the time.
In conclusion: Lots of weird issues springing up after adding this font node with that expression. Switched to XP and same issues, more or less.
Any thoughts?
I'm going to just leave it as frames or look for a formatting solution in HScript for now but I really am dismayed to bump into such trouble on such a simple part of my project and not have much of an idea of how to fix it or why it's happening.
The OSX console showed “No Drawable” during the file load hanging.
System: Macbook Pro, Houdini 9.5.379 and 10.0.249.5, Windows XP (32) and OSX (both versions, both OSes).
Thanks!
Formatting Time in Font COP
6124 7 1- Len
- Member
- 133 posts
- Joined: 7月 2007
- Offline
- Len
- Member
- 133 posts
- Joined: 7月 2007
- Offline
- edward
- Member
- 7899 posts
- Joined: 7月 2005
- Offline
- Len
- Member
- 133 posts
- Joined: 7月 2007
- Offline
When you say “create a channel on my string parameter”, do you mean create a keyframe on the existing text parameter or something else?
I wasn't using back ticks with python. I just returned to back tick expressions when my python code made things go haywire as per my original post.
Thanks for your idea.
I wasn't using back ticks with python. I just returned to back tick expressions when my python code made things go haywire as per my original post.
Thanks for your idea.
- goldfarb
- スタッフ
- 3464 posts
- Joined: 7月 2005
- Offline
you may want to have a look at this:
http://www.sidefx.com/index.php?option=com_content&task=view&id=1500&Itemid=132 [sidefx.com]
04 Building a Time Code -
http://www.sidefx.com/index.php?option=com_content&task=view&id=1500&Itemid=132 [sidefx.com]
04 Building a Time Code -
- Len
- Member
- 133 posts
- Joined: 7月 2007
- Offline
- edward
- Member
- 7899 posts
- Joined: 7月 2005
- Offline
- tallen
- Member
- 16 posts
- Joined: 7月 2005
- Offline
-
- Quick Links