Dear all coders/masters,
I just recently started learning mel scripting and i barely scrape the basics. But for now, i am able to write my own script which enables showing/hiding of objects in maya 2015. The problem i am facing now is that i want a master checkbox that checks/unchecks other checkbox. The method i have now only enables me to change 1 children checkbox but not the rest.
ETC- "None" checkbox is on. All other children checkbox is off. "None" checkbox is off. All other children is on. Right now i can manage to get 1 children checkbox to be toggle on and off with the master "None" checkbox.
Here's my code. checkBox -label "None" -align "center" -v false -onCommand "OnNoneProcedure" -offCommand "offNoneProcedure" -changeCommand "checkBox -edit -value (!#1) checkboxNurbsCurves"; checkBox -label "NurbsCurves" -align "center" -v true -onCommand "OnNurbsCurvesProcedure" -offCommand "offNurbsCurvesProcedure" checkboxNurbsCurves;
Am i doing the right way with the changecommand method? if yes, how do i get the other children checkbox to on and off? or do i query the master "None" checkbox -v then use the -v of "None" to toggle the -v of children checkbox?
Aucun commentaire:
Enregistrer un commentaire