Delete first few primitives and last few primitives

   2473   2   2
User Avatar
Member
70 posts
Joined: March 2015
Offline
Say I wanted to delete primitives procedurally how would I go about deleting the first few and the last few to produce something similar to the below but with the same result on either end;



On that example I'm just deleting 0-29 of primitives and it works well for that end obviously.
User Avatar
Member
443 posts
Joined: Sept. 2012
Offline
Put below expression in blast SOP's group parameter or delete SOP's pattern field.

0-29 `(nprims(opinputpath(“.”, 0))-30)`-`nprims(opinputpath(“.”, 0))`


It will delete first 30 and last 30 primitives. Put any desired number instead of 29 and 30.
User Avatar
Member
70 posts
Joined: March 2015
Offline
Works great, thanks
  • Quick Links