Jump to content

Copy primitives to specific points on a curve


orinfitchett

Recommended Posts

Hi all,

I have a font node with each letter of the alphabet and want to copy the letters individually to a curve with 26 points:

the letter "A" has the primitive number of 1, "B" is 2, etc. and need to be copied to point 1, 2, etc respectively.

I'm using a for-each primitive loop at the moment but it copies the whole string of text and i can't seem to work out how to split them up

 

Any help is much appreciated

 

Link to comment
Share on other sites

create attribute on your points that specifies which primitive or named piece you want to copy on that point and specify that attribute in use Piece Attibute parameter in Copy To Points SOP, no need for for loop

Link to comment
Share on other sites

More specifically:

  • Activate 'text attributes' on the font node to create the 'textindex' primitive attribute.
  • Put each letter to the center by entering -$CEX in a primitive node.
  • Enter nprims('../font1') in a resample node on the curve to match the number of points.
  • Enumerate a corresponding 'textindex' attribute on the points of the curve.
  • Set the 'piece attribute' on the copy node to 'textindex' accordingly.

font.gif.03b272cff31a522578ff199b862055c2.gif

font_curve.hipnc

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...