3__ Posted December 3, 2005 Share Posted December 3, 2005 can't use variables and attributes to offset point numbers in sort. just wondering if is this a bug or a limitation of sorting? thanks, -cpb Quote Link to comment Share on other sites More sharing options...
edward Posted December 3, 2005 Share Posted December 3, 2005 Not sure I understand you. What are you trying to do? AFAIK, only the Expression parameters are evaluated per point/prim so that you can use local variables in it. Quote Link to comment Share on other sites More sharing options...
sibarrick Posted December 3, 2005 Share Posted December 3, 2005 Try the reverse sop it lets you shift too. Is that what you mean? Quote Link to comment Share on other sites More sharing options...
3__ Posted December 6, 2005 Author Share Posted December 6, 2005 ok sorry, try the following: 1. place a circle sop, set to poly. 2. append a sort sop, set to shift (points) 3. in the offset field type: $NPT / 2 for me this returns 'unable to evaluate... undefined variable' same when using point() to grab $NPT from elsewhere, and when using an attribute earlier set to $NPT. -cpb Quote Link to comment Share on other sites More sharing options...
edward Posted December 6, 2005 Share Posted December 6, 2005 As mentioned, only the Expresssion parameter is evaluated per point. It doesn't make much sense for the Offset parameter to do so because that parameter dictates the global offset. $NPT is a special case though as that doesn't change per point. Instead, you could use npoints(opinputpath(".",0)). 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.