It looks like you have code for a window that comes up with buttons that run other procedures. Depending on those procedures, you might be able to just put them into the for loop and forgo the window entirely // stores current selection (main group)string $mainGroup[] = `ls -sl`;// lists all children (sub groups)string…
Hey, sorry about that error. My code was missing a big dumb dollar sign for a variable, haha! Here's a reformatted code with your buttons integrated into the FOR loop: // stores current selection (main group)string $mainGroup[] = `ls -sl`;// lists all children (sub groups)string $subGroups[] = `listRelatives -c…
Ah, sorry. I've been making mistakes all day. These darn fingers... So, my code works on my end. It creates a render layer and adds each subgroup to that render layer. So for instance, render layer L5 would contain CAMERA_LIGHTING and the lantern:lantern group. It doesn't need to go further than that, as anything contained…
So yeah, the window and the buttons were fine, but they weren't necessary. A couple of other things: Your two procs were doing the exact same thing. Not sure why. I would suggest avoiding naming procs that are also the same as Maya's default commands, such as rename. That'll give you all sorts of errors. A couple notes on…
Hey Guys - iam on a little arrange script: basically i want two things: 1. select a group called "camera - or static name" 2. select first subgroup 3. put these two selections in one renderlayer with the naming l1 4. redo everything until evey subgroup is in its own renderlayer so l1 l2 l3 and so on sturcture is: "camera -…