s@frameNum= sprintf('%04d',clamp((@Frame-1000),0,68));
//s@name = sprintf('%04d',@Frame);
s@textureFile=chs("part1")+@frameNum+chs("end");
slight update on zero padding in vex...
use sprintf to reformat numbers..
s@frameNum= sprintf('%04d',clamp((@Frame-1000),0,68));
//s@name = sprintf('%04d',@Frame);
s@textureFile=chs("part1")+@frameNum+chs("end");
slight update on zero padding in vex...
use sprintf to reformat numbers..
string camera=chs("../camera");
vector campos=toNDC(camera,@P);
vector2 padding =chu("../padding");
if((campos.x+padding.x)<0||(campos.x-padding.x)>1||(campos.y+padding.y)||(campos.y-padding.y)){
i@group_kill=1;}
matrix cam=optransform(camera);
vector camera_position=cracktransform(0,0,0,{0,0,0}, cam);
float distance =distance (camera_position,@P);
float threshold=chf("../distance");
if(distance>threshold){
i@group_kill=1;}
use instancefile to access geo saved somewhere...
in a point wrangle -
s@instancefile=chs("path");
now with the geo node, you gotta add the instance tab and turn on fast instancing.