Jump to content

Expression In Sweep Sop ?


Recommended Posts

Hello list

I am modeling a kind of tentacle using a curve > resample > convert > sweep and using a circle ( polygon ) as a cross-section.

I am having this issue with sweep SOP. Using an expression on "scale" parameter on sweep, I can't realize how to make smooth transition on the geometry (skin ) generated by the expression.

sweep scale parameter:

if($PT<=29,log($PT/60),(rand($PT)+2)*.5)

post-1178-1156303150_thumb.jpg

test.zip

Link to comment
Share on other sites

If $PT < 29, then $PT/60 < 1. The log of a value < 1 will be a number < 0. So at the transition point, your scales are going from a negative value to a positive value. That's why all the lines cross. You can just -log($PT/60) for the first part to get rid of the flip. Or you might want to make it -log(($PT+1)/60) since log(0) returns 0, which means you'll hav another discontinuity at point 0. Unless thats' what you want there...

Mark

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