PDA

View Full Version : Attribute holder dependency loop problem


ektho
04-12-2012, 06:07 AM
I have a problem with Attribute holder, I'm trying to store a parameter "node" the object that the modifier Attribute holder, but it gives me a dependency problem, why?
What is the right way?

ca = attributes MainTank
attribID:#(102999653, 254224688)

(
parameters Main rollout:RolloutMainTank
(
MyObj type:#node
)
rollout RolloutMainTank "Tank Control Panel"
(
)
)

custAttributes.add $.modifiers[1] ca

$.modifiers[1].MainTank.MyObj = $

-- Error occurred in anonymous codeblock; filename: AH_Main_12.ms; position: 278; line: 16
-- Runtime error: Assignment failed, possible dependency loop, $Editable_Mesh:Sphere001 @ [-2418.831543,271.231934,0.000000]

Thanks!

MrPingouin
04-12-2012, 09:30 AM
Yeah, it's the same thing with scripted extended modifiers.
I remember using something like this in one of my projects, try searching more informations about the nodeTransformMonitor, it might help.

Note that it was on a scripted modifier extending the PointCache one.
on attachedToNode obj do
(
this._node = nodeTransformMonitor node:obj forwardTransformChangeMsgs:false
)

CGTalk Moderation
04-12-2012, 09:30 AM
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.