Notifications
Clear all

[Closed] custom attributes or something else?

A node is path constrainted to a spline. I’d like to read the percent along path value and do some math on this and then make the result available as a custom attribute (for wiring etc.). I can make the custom attribute but I don’t know how to make it appear when wiring:sad:

I know this code is wrong- just to give an idea of what im trying to achieve

def=attributes test
(

– I need to assign this var to a controller- but I don’t know how
–myVar = $myNodeOfInterest.pos.controller.path_constraint.percent.controller.value * –“some math”
)
b=Box()
custAttributes.add b def

2 Replies

Hi,

Why need a custom attribute ?
You can wire the ‘percent along path’ and do the math in the wire expression.

Yes that would work on a single occasion, but I’d like to make it available for other people to use, and I think if it is possible to have the result available for wiring it would be simple and clean.