orinfitchett Posted May 17, 2020 Share Posted May 17, 2020 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 Quote Link to comment Share on other sites More sharing options...
anim Posted May 17, 2020 Share Posted May 17, 2020 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 Quote Link to comment Share on other sites More sharing options...
konstantin magnus Posted May 17, 2020 Share Posted May 17, 2020 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_curve.hipnc 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.