Jump to content

point expression and length.


Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...