Get the font read the Point Number.

   3225   2   1
User Avatar
Member
4 posts
Joined: Oct. 2016
Offline
Hey Guys, I've been trying to do something that maybe is quite simple but I can get my head around it.
I have a circle with 12 points around it, and I want to use the Font SOP to read each of the points and have that appear next or bellow the numbers, just like a clock.
I was trying to use the For loop and copy sop, using the stamp and setting the value to $PT
then write the stamp expression to get that but I only get 0's for everything.

I was wondering maybe someone has a better solution or can put me in the right path telling me what I'm missing or doing wrong…
User Avatar
Member
1738 posts
Joined: May 2006
Online
I think this is the new approved method with a for loop. Iterate over the points, use a metadata node to get the current iteration, and reference it using a spare input.

If this is all new to you then that sentence won't make much sense (it barely makes sense to me), watch Jeff Lait's masterclass for details.

https://www.sidefx.com/tutorials/h15-masterclass-loops/ [www.sidefx.com]


-matt

Attachments:
clock_face.hip (61.3 KB)
for_loop_clock.JPG (67.6 KB)

http://www.tokeru.com/cgwiki [www.tokeru.com]
https://www.patreon.com/mattestela [www.patreon.com]
User Avatar
Member
4 posts
Joined: Oct. 2016
Offline
Thank you so much!! this is exactly what I've been trying yo figure out
  • Quick Links