Sadjad Rabiee

Sadjad Rabiee

About Me

Expertise
VFX Artist
Location
United Kingdom

Connect

Recent Forum Posts

COP file node, load by filePattern? Sept. 15, 2019, 9:09 p.m.

Hi

You can use below python script for doing this :


import glob
subF = "PATH to SUBFOLDER"
file = subF + "*_spec.jpg" #PATTERN
a = glob.glob(file) # SEARCH FOR FILE
return a[0] # RETURN FULL PATH OF THE FILE



check attached project

Scaling Object June 6, 2019, 12:30 p.m.

This is happening in every 3D software not just Houdini !
That's a rule, if you scale everything in one axis, it will deform !
As BabaJ said, you have to consider this in modeling.

pcopen - pcfilter vs attribute transfer June 5, 2019, 2:45 p.m.

Hi
Actually there are lots of ways to do that as other guys said.
All of them are correct and I want to just mention that if you want to find closest points, there is one more vex function which is a little bit faster than PC find. It is nearpoints() which give you list of all closest points to current position.

Also ray sop is faster than relative functions in vex and VOP.(e.g intersect VOP or xyz distance)

About PC filter, it is exactly same as using pcfind and compute average values in the loop, so working with pcopen an pcfiltter maybe is a little simpler. However for this subject because of speed I don't suggest you to use any point cloud methods.

In overall as others said, if you have distance of closest points to current point , you can simply control the fall off by ramp attribute or smooth function.