Yunus Balcioglu

animatrix_

About Me

Expertise
VFX Artist
Location
Canada

Connect

My Tutorials

obj-image Advanced
Pragmatic VEX: Volume 1

Recent Forum Posts

pcopen restricted to connected splines? Sept. 21, 2020, 2:27 a.m.

Hi,

You can use pcfind, which is faster than pcopen along with adhoc groups to limit lookups of each point to its original curve. But I would still filter it post-lookup using connectivity information on points:

int pts [ ] = pcfind ( 0, "P", @P, ch("r"), chi("maxpts") );
int samecurvepts [ ] = { };
foreach ( int pt; pts )
{
    int primid = point ( 0, "class", pt );
    if ( i@class == primid )
        append ( samecurvepts, pt );
}

i[]@pts = samecurvepts;

Match other deformers. Sept. 16, 2020, 2:34 p.m.

converting This entagma Vex to VOPS Sept. 16, 2020, 2:31 p.m.

Hi,

Sample Sphere is the VOP you need. You can view its code via RMB -> Type Properties -> Code tab to see which option calls which VEX function.