puma.snyder Posted September 29, 2003 Share Posted September 29, 2003 So the next aligning problem Again the setup is a font sop copy sop combination, producing following text 1000 10 if i use the translate parameter in the copy sop, all texts are seperate by the same amount of space, 0 Quote Link to comment Share on other sites More sharing options...
puma.snyder Posted September 29, 2003 Author Share Posted September 29, 2003 I just changed above example as I discovered it didnt describe the problem correctly. Hope its more clear now Quote Link to comment Share on other sites More sharing options...
David Gary Posted September 29, 2003 Share Posted September 29, 2003 hmm. that's much trickier! The cumulative transform in the Copy SOP is a good solution to eeh!... cumulate the transforms but the pb is: to work properly, the Copy Sop should know all the bbox sizes for each stamped geometry in the same time, but an expression in it's /tx channel evaluate for one single stamped geometry. Everything depends on how your text is procedurally generated... Knowing that, i think i can help. Otherwise, i've got no solution for an arbitrary text. Quote Link to comment Share on other sites More sharing options...
edward Posted September 30, 2003 Share Posted September 30, 2003 What about using some sort of deformer like a Lattice? Just off the top of my head. Quote Link to comment Share on other sites More sharing options...
puma.snyder Posted September 30, 2003 Author Share Posted September 30, 2003 well, the text is not procedurally generated, its stored in string attributes inside a geo file, which is exported from another application. The textlength varies between 0 and around 70 characters. The font sop uses the points expression to get the string attribute (the point to be used is determined via stamping (using the current copy number variable) Hey edward, could you maybe describe your idea a bit more detailed, I have no idea how a deformer could help in this scenario Thanks again Quote Link to comment Share on other sites More sharing options...
David Gary Posted September 30, 2003 Share Posted September 30, 2003 The thing is to store somewhere the list of bbox sizes ( or just lengths) of each object, as an attribute for example, without thinking about stamping, and then you can use the cumulative transform. Inscribe theparameters in the geometry of an object... Because the Copy SOP produce a single object, all the parameters from the stamped geometry are lost... you have to inscribe them in the geometry of another object. it's hard to explain.. Look at what i've just done It does the right job aligntext.hipnc Quote Link to comment Share on other sites More sharing options...
puma.snyder Posted September 30, 2003 Author Share Posted September 30, 2003 hey FrenchOP thanks very much for the file!! Unfortunatly there is still a problem (hope this didnt arise when I changed it to work with my setup) It works fine when the text is 1 10 100 but it wont work with 100 10000 1 (for example) I attached a file where you can use the switch sop to see the problem. aligntext_2.hipnc Quote Link to comment Share on other sites More sharing options...
puma.snyder Posted September 30, 2003 Author Share Posted September 30, 2003 got it working, I had to change the copy2 sops translate expression to prim("../attribpromote1", $CY-1, "textlenght", 0) and it worked You rock!! Thanks !!! 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.