PDA

View Full Version : custom attributes or something else?


pecan
02-08-2008, 04:07 PM
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

Zbuffer
02-08-2008, 11:24 PM
Hi,

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

pecan
02-09-2008, 04:18 PM
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.

CGTalk Moderation
02-09-2008, 04:18 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.