cloudfx Posted July 2, 2008 Share Posted July 2, 2008 Hi all, I am trying to use point expression to reference a point of a polygon. I put an add sop and put point("../sphere1",28,"P",1) for pt0x,pt0y,pt0z. But what I want to do is sphere1 's point number 28's position of x,y, and z through point expression. And I have attribcreat sop under the add sop, value as "length($TX,$TY,$TZ)" to get the points length from 0,0,0. Hmm I uploaded hip file, Thanks!; pointexpression_H91244_001.hip Quote Link to comment Share on other sites More sharing options...
eetu Posted July 3, 2008 Share Posted July 3, 2008 I put an add sop and put point("../sphere1",28,"P",1) for pt0x,pt0y,pt0z. You need to put point(,,,0) for x, 1 for y and 2 for z. And I have attribcreat sop under the add sop, value as "length($TX,$TY,$TZ)" to get the points length from 0,0,0. You can either get the coords thru point(), or put down a point SOP after the attribCreate and use length($TX,$TY,$TZ) there. Hm, I'm not exactly sure why it doesn't work the way you tried, AttribCreate does seem to offer $TX etc.. eetu. pointexpression_H91244_002.hip Quote Link to comment Share on other sites More sharing options...
cloudfx Posted July 3, 2008 Author Share Posted July 3, 2008 You need to put point(,,,0) for x, 1 for y and 2 for z. Yeah, that was what I missed. It confused me, but I got it now Thanks a lot 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.