PDA

View Full Version : Maya Python API - adding checkbox


sabungero
11-05-2011, 12:11 PM
Hello, I am revising one of the plugins that I made using the Maya Python API, and then I figured that I needed a checkbox/radio button to add to it's functionality. Can anybody please point out to me as to which class I need to look into in the documentation? All this time, I am only using the one for floats and vectors and enum list. Thank you very much.

sabungero
11-05-2011, 04:42 PM
MFnNumericData.kboolean

thisNode.shaded = OpenMaya.MFnNumericAttribute().create("shaded", "shd",OpenMaya.MFnNumericData.kBoolean)

Thanks, I solved it just now. time to sleep

CGTalk Moderation
11-05-2011, 04:42 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.