Jump to content

Measuring Distance?


andriukas19

Recommended Posts

Hi Andrius,

Good to see you on the forum!! :)

You can do this in the with the arclen expression.

For example use an attribCreate node type in the writeValues arclen("../curve1",0,0,$PT/$NPT)

aaa I see, great, thanks Kim :)

I am working on one small procedural asset. Just an idea popped into my head this weekend.

I'll see how it goes.

cheers

Link to comment
Share on other sites

but, be aware of the fact that you will loose the length of the last segment

Hi Andrius,

Good to see you on the forum!! :)

You can do this in the with the arclen expression.

For example use an attribCreate node type in the writeValues arclen("../curve1",0,0,$PT/$NPT)

Link to comment
Share on other sites

but, be aware of the fact that you will loose the length of the last segment

hei Owl, good to see you here :)

thank you all for the tips.

Since I will always have a curve subdivided in equal segments, and I needed the length of one segment, this expression served well for me:

arclen("../line1",0,0,$PT)/($NPT-1)

Link to comment
Share on other sites

oh, my bad as well, missed it to (would've posted a correction instead ;))

Idd you're right, it had to be arclen("../xform__modifyPoint",0,0,$PT/($NPT-1))

Forgotten to add that.

I thought you where measuring a closed shape.

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...