I was to quick. Sorry! I did try with your file but it is not work because u and v direction do not match when I convert to Mesh. Perhaps there is better way but I do not know.
I do calculation on arrays in VEX. It is no problem to write function to return one array but how can I return another array? In python this is easy but I do not know how is possible in VEX. Thanks in advance!
The file provided by eetu work very good but if I use expression `primneighbours(opinputpath(".", 0), $PR, 2)`
in AttribCreate-Sop it is very slow for big mesh. Is there other way to find neighbour primitives for every primitive in mesh? Thank you very much!!
Hello all! How can I find all connected primitives to given prim in big polygon mesh? For example if I have prim number 10 and want find surrounding prims. Thank you very much!!!
@Condor29
Thank you, I did try this but it only works with quads. My geometry is not clean because I have triangles, quads and n-gons (picture in my first post is only example). It works good for simple plane but not for more complex geometry.
@freaq
Thank you for tip. I allways forget orbolt. I think the asset is locked and if I want change something it is not possible. And I like to learn from it how something like cut with curve can work
All tips are welcome.
Thank you again.
Hello!
I have question how connect points only vertical through Pointcloud. I want find nearest point and that angle is over 60 degree. Please see picture. I have much Points so it must be fast as possible.
Thank you!!!
Hello all!
I have Python Sop and inside node I have function to split some polygons. But because splitting takes long time I want to do it only if geometry of input does change. I tried to use hou.Node.addEventCallback but it does not work for me. What I have so far is code below:
event_types = (hou.nodeEventType.InputDataChanged, hou.nodeEventType.InputRewired) def split_polygons(geo): "do some splitting" return polygons def onchange(**kwargs): node_in = kwargs["node"] geo_in = node_in.geometry() split_polygons(geo_in) node.addEventCallback(event_types, onchange) polygons = split_polygons(geo) "do something with polygons" [/CODE] This does not work because I do not know how I can get the polygons which are returned by function only if input change. Thank you in advance!!!
Hello!
With right button over node i can use Preview Window just for this node. Is it possible to make same in Python?
I found hou.FloatingPanel and hou.PaneTab and then set to SceneViewer. But how can I make it to show only geometry from specific node?
Thank you!