3
$\begingroup$

I have a mesh line and I duplicate it to create 5 more lines. However, I want each line to be rotated 45 degrees. The problem is the red line, I am not able to dynamically add input to the node Transform.

$\endgroup$
3
  • $\begingroup$ Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. $\endgroup$
    – Community Bot
    Sep 2 at 7:58
  • $\begingroup$ Probably duplicate? blender.stackexchange.com/a/297889/2214 $\endgroup$
    – vklidu
    Sep 2 at 8:05
  • $\begingroup$ Added image to clarify my issue. The issue is that I am not able to dynamically add input to the Transform Geometry node based on the index of the Duplicate Element. Please advice. $\endgroup$
    – ph_zero
    Sep 2 at 8:11

1 Answer 1

5
$\begingroup$

The node Transform does not work with fields, but with single values. This issue is described here:
Why is there a red line when I try to connect one node to another?

In your use case, however, you have fields and would have to use the node Set Position.

This processes your geometry point by point, so you would have to calculate the individual positions of the points.

Since you want to rotate points around a certain center, the node Vector Rotate will help you.

And a solution could look like this:

$\endgroup$
3
  • $\begingroup$ Can combine xyz be input to transform geometry and used here instead of set position? $\endgroup$
    – ph_zero
    Sep 3 at 1:45
  • $\begingroup$ nvm, the output of duplicate elements is attribute domain and can only be operated/transformed via set position $\endgroup$
    – ph_zero
    Sep 3 at 13:13
  • $\begingroup$ @ph_zero Absolutely correct: You are dealing with Fields here, so Transform Geometry does not work in this case, and you would have to use Set Position instead. $\endgroup$
    – quellenform
    Sep 3 at 13:18

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .