1
$\begingroup$

is there a possibility to say: if the object choosen by my input is "X", then use this group of nodes. But if it is "Y" use the other group?

Because I want to use this my setup to speed up my planning process and I have to use different object depending on the project.

I hope my explanation makes sense :)

Blend file: https://we.tl/t-zt1axfrEhF

Node Setup

$\endgroup$
4
  • 1
    $\begingroup$ Yes, it is possible. It has a Greater Than/Less Than option in the math node. $\endgroup$
    – X Y
    Apr 21 at 11:33
  • $\begingroup$ SO how could i compare the names or objects themselves? Because the node only takes mathematical values and not strings or objects $\endgroup$
    – Kr3o
    Apr 21 at 13:13
  • 1
    $\begingroup$ It is not possible to do that kind of filtering. If both objects have a different number of vertices you can try filtering with that $\endgroup$
    – Gorgious
    Apr 21 at 13:48
  • $\begingroup$ Hey @Gorgious thanks for the hint, it worked. Thank you very much :) $\endgroup$
    – Kr3o
    Apr 22 at 8:27

1 Answer 1

1
$\begingroup$

Today, you cannot get object name as string in geometry-nodes.

But, if your two object have different number of vertices, first get the object vertices amount, for example 8, and then the node setup:

enter image description here

You also can do a switch

enter image description here

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.