Hello! I'm creating a bunch of planar patches, some of them from curves, then sowing them together in Vellum Drape. I'd like to reference a resampled amount of points of a curve to have an equal amount of points for when the two planar patches need to be sewn together.
In planar patch parameters I go down to seam options and in the seam points field I enter an expression to get the number of points from a resampled curve
npoints(Resampled_curve)
I'm attaching a screenshot of this setup.
Image Not Found
No matter if I reference points or vertices from the resampled node, I always get a number 2, even if in this setup there are 23 points and vertices.
More likely it's zero since it can't find the node. It just happens to show 2 in that parameter because it forbids values below 2. The screenshot doesn't show what expression has been entered. Going off your pasted snippet, it won't work because there are no quotes around the path, and the path points to a node inside the planar patch node. The node in your screenshot is also called "Collar_resample" and not Resampled_curve.
jsmack the path points to a node inside the planar patch node.
Thanks! That does make sense. How could I plug in the Collar_resample node info into the planar patch to get the point count? There seems to be no obvious way.
jsmack it won't work because there are no quotes around the path.
jsmack the path points to a node inside the planar patch node.
Thanks! That does make sense. How could I plug in the Collar_resample node info into the planar patch to get the point count? There seems to be no obvious way.
jsmack it won't work because there are no quotes around the path.
Also, could you elaborate on this?
Thanks again!
for the parameter expression, use:
npoints("../Collar_resample")
.. means a relative path up one level from the current working level. quotes ("") are needed because the input is a string.