Creating a Houdini Clock!!!

   3029   4   1
User Avatar
Member
16 posts
Joined: 7月 2013
Offline
Hi There,

I have been trying to create a Houdini clock with numbers, dashes(big and small) as well as compute animation for the second, minute and the hour hands via expressions.

I have got pretty much everything except the numbers on the clock appear in the reverse order.

I am using a circle with the attribute wrangle to compute numbers increasing in the ascending order based on points of a circle but unfortunately they appear in the reverse. I thought of reversing the U and V in the circle to reverse the numbers but nothing happens.

Please help. Thank you.

Regards,
Shiv

—-
User Avatar
Member
1743 posts
Joined: 3月 2012
Offline
Could you post a HIP file?

It may be as simple as changing something like:

i@number = @ptnum+1;

to something like:

i@number = 12-@ptnum;
Writing code for fun and profit since... 2005? Wow, I'm getting old.
https://www.youtube.com/channel/UC_HFmdvpe9U2G3OMNViKMEQ [www.youtube.com]
User Avatar
Member
16 posts
Joined: 7月 2013
Offline
ndickson
Could you post a HIP file?

It may be as simple as changing something like:

i@number = @ptnum+1;

to something like:

i@number = 12-@ptnum;

Yes, that did it. Sorry, I am a relatively new Houdini user so I was having trouble figuring it out.

Thanks a lot, much appreciated!
User Avatar
Member
1743 posts
Joined: 3月 2012
Offline
No worries! Most relatively new users aren't brave enough to jump right into using Attribute Wrangle, though it is pretty handy.
Writing code for fun and profit since... 2005? Wow, I'm getting old.
https://www.youtube.com/channel/UC_HFmdvpe9U2G3OMNViKMEQ [www.youtube.com]
User Avatar
Member
16 posts
Joined: 7月 2013
Offline
ndickson
No worries! Most relatively new users aren't brave enough to jump right into using Attribute Wrangle, though it is pretty handy.

Thanks for being so nice and kind and knowledgeable.

The Attribute Wrangle node is a really handy node indeed.
  • Quick Links