Sent from my Virgin Mobile Android-Powered Device

----- Reply message -----
From: "damon shelton" <[email protected]>
To: <[email protected]>
Subject: [Maya-Python] reacting to attribute change
Date: Fri, Oct 19, 2012 10:30 am
Hey Martin,When you create a plugin, as your adding the attributes you can set 
which attribute change affects which output attribute, etc.. Setting your 
keyable attribute to attributeAffects(output attr) then when it changes it can 
trigger the compute function.
Once the compute function is triggered you can run your information from there 
and call other functions, etc...
inside the compute function you can specifyif plug == keyableattributeyouwant:
    dostuff()

On Tue, Oct 16, 2012 at 5:02 PM, mkarlsson <[email protected]> 
wrote:

Would someone please point me to an example where a custom node [Python plugin] 
has a keyable attribute and that has code that executes anytime that attribute 
is changed?

I'm used to getter and setter functions where you can be very explicit about 
what code to execute depending on what change occurs - and I've not been able 
to find an example of this yet.

Thank you!



-- 

view archives: http://groups.google.com/group/python_inside_maya

change your subscription settings: 
http://groups.google.com/group/python_inside_maya/subscribe






-- 
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings: 
http://groups.google.com/group/python_inside_maya/subscribe

-- 
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings: 
http://groups.google.com/group/python_inside_maya/subscribe

Reply via email to