How do I scale every fifth copy in a copy SOP?

   1422   3   1
User Avatar
Member
25 posts
Joined: Nov. 2016
Offline
Simple question: I want to make lines like on a ruler where every fifth line is longer than the others, there should be an easy way to do this but I can't seem to find it.

Cheers!
User Avatar
Member
65 posts
Joined: Feb. 2013
Online
Hi Aaron,

try using a copy sop. In the left branch you just put the line that will be duplicated. On the right branch you should plug the points where the line will be placed. This way you'll have identical copies of the first line. The easiest way you can modify the scale is changing the pscale attribute in the right branch whit something like this:
if(@ptnum%5==0){
    f@pscale=2;
}
else{
    f@pscale=1;
}
User Avatar
Member
25 posts
Joined: Nov. 2016
Offline
Hi Merlino,

This works fine, I was trying something with stamp copy but couldn't wrap my head around it. Very helpful, thank you!
User Avatar
Member
483 posts
Joined: Dec. 2006
Offline
whenever you need it….
but the solution from merlino3d is much faster ;-)
Edited by matthias_k - May 22, 2017 12:42:21

Attachments:
copy_scale.hip (89.0 KB)

English is not my native language, sorry in advance for any misunderstanding :-)
  • Quick Links