View Full Version : Is layout child a layout or control?
manyoufear2012 05-08-2009, 10:44 PM say i have this
columnLayout "layout";
button "child";
columnLayout "child";
setParent..;
setParent..;
How can I query the children and find out whether each is a control or a layout?
Keep in mind the path to both controls is "layout|child" so how to possibly
differentiate if you even can, maya seems to only want to query the first child
it encounters with that path.
Which leads me to ask why did they allow children with the same name but different types
and not be able to tell them apart.
|
|
claydough
05-10-2009, 08:58 AM
say i have this
columnLayout "layout";
button "child";
columnLayout "child";
setParent..;
setParent..;
How can I query the children and find out whether each is a control or a layout?
Keep in mind the path to both controls is "layout|child" so how to possibly
differentiate if you even can, maya seems to only want to query the first child
it encounters with that path.
Which leads me to ask why did they allow children with the same name but different types
and not be able to tell them apart.
this example would be even worse with more layout types that would be allowed as well.
-without "uniqueness"
fer instance a frameLayout "child" would make that UI unstable fer any external parenting:blush:
lsUI for $[] -long -controls and $[] -long -controlLayouts then string array rename duplicates
do it
do it
I am guessing these non unique names are created dynamically by the end user somehow? As you wouldn't create a clashing naming convention like this?
manyoufear2012
05-11-2009, 06:44 PM
Correct i wouldn't do something so silly,I'm just trying to cater to all possibilities ,maybe the user has some reason for having such a naming convention.
But since Maya doesn't seem to offer any type of disambiguation then i guess it cant be helped.
Thanks.:)
CGTalk Moderation
05-11-2009, 06:44 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.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.