Itoo Software Forum

Author Topic: Arithmetic pull data from unconnected spline?  (Read 1169 times)

IT1371

  • Full Member
  • ***
  • Posts: 187
Arithmetic pull data from unconnected spline?
« on: October 30, 2023, 09:45:59 AM »
So I have a rather simple yet complicated for me question.
I have two generators inside a single RC object:
  • Linear 1S - with line001 connected to the Spline slot.
  • Array 2S - with line002 connected to the Clipping area slot.

I need an Arithmetic operator which controls a segment on Linear1S to pull data from line002 and run a calculation on it. Yet it doesn't seem to recognize it because in no point they are connected.
Is there a way to make it work? to reference the Arithmetic operator to a different spline within the RC object?

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2993
Re: Arithmetic pull data from unconnected spline?
« Reply #1 on: October 30, 2023, 10:32:35 AM »
Hi,

I am afraid that's not currently possible, an arithmetic array can only evaluate the attributes of a generator to which it is attached. Depending on what you want to achiever there may be a hack. For example you can create a third generator that uses Line001 with a simple box in the Default input, wire this to a Transform node so that it doesn't actually create any geometry and you can then export the X,Y, or Z size and use that anywhere in the graph. This would give you spline length, but only if the spline was straight.

If you can provide more details of what you want to achieve, I might be able to help further.

Best,
Paul
Paul Roberts
iToo Software

IT1371

  • Full Member
  • ***
  • Posts: 187
Re: Arithmetic pull data from unconnected spline?
« Reply #2 on: October 30, 2023, 10:37:22 AM »
you mean it won't work is the spline is closed?
Because i'm interested specifically in data from Line002 which is a closed spline and I need 1/2 of one of its Y sections.

-edit-

your hack suggestion worked great! thank you!
« Last Edit: October 30, 2023, 10:45:51 AM by IT1371 »

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2993
Re: Arithmetic pull data from unconnected spline?
« Reply #3 on: October 30, 2023, 11:08:36 AM »
Great! Glad to hear that helped out :)

Best,
Paul
Paul Roberts
iToo Software