chrisedu Posted August 23, 2006 Share Posted August 23, 2006 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) test.zip Quote Link to comment Share on other sites More sharing options...
mtucker Posted August 23, 2006 Share Posted August 23, 2006 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 Quote Link to comment Share on other sites More sharing options...
chrisedu Posted August 23, 2006 Author Share Posted August 23, 2006 Hello Mike first of all, thanks for the quick reply. I didn't expect it! And yes, you are right. Silly me, I forgot log math basics. maybe I should sleep more often... and no every 48 hours. bests chris 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.