meshsmooth Posted December 6, 2004 Share Posted December 6, 2004 I have a vex geometry vop net that I am making multiple groups, and then throwing sets of points into. So I need a bit of vex code I can make into an OT or chuck into a inline vop to make an int value of 1 into Quote Link to comment Share on other sites More sharing options...
AndrewVK Posted December 6, 2004 Share Posted December 6, 2004 Try this: int pointNum = 5; string text = sprintf("vexGroup_%i", pointNum); Quote Link to comment Share on other sites More sharing options...
meshsmooth Posted December 6, 2004 Author Share Posted December 6, 2004 ok well i whacked this code in a OT and an inline vop re wrote it to be input: intVal output: intString $intString = sprintf("vexGroup_%g" ,$intVal); Now it works to a point.... it works displaying the new string with the number on the end if the number doesn Quote Link to comment Share on other sites More sharing options...
meshsmooth Posted December 9, 2004 Author Share Posted December 9, 2004 In an inline vop I have this code $intName = sprintf("intString_%g", $sum); Hooked up to a print and all it outputs is non dynamic numbers if I plug in "ptnum" it returns intString_0 intString_0 intString_0 intString_0 intString_0 intString_0 intString_0 So is this as good as it gets? I have added an example file hopefully we can find an answer, or may label this as a bug. vexString.zip Quote Link to comment Share on other sites More sharing options...
AndrewVK Posted December 9, 2004 Share Posted December 9, 2004 hopefully we can find an answer, or may label this as a bug. 15412[/snapback] I think its a bug :banned: vexString.zip Quote Link to comment Share on other sites More sharing options...
George Posted December 10, 2004 Share Posted December 10, 2004 I'm by no means an expert on this, but I don't believe it's a bug. I think it's because of VEX's SIMD architecture and the fact that strings are shared across the parallel executions. Quote Link to comment Share on other sites More sharing options...
meshsmooth Posted December 11, 2004 Author Share Posted December 11, 2004 maby i need to make that vex vop to build the string after all. I started making it but stoped when i was certen i was reinventing the wheel. 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.