tymznd
03-21-2003, 12:09 AM
Hopfully Jason is out there somewhere as his DVD stirred some thoughts...
I am writing a script that is attaching a face rig. The face rig consists of wire deformers and therefore splines and sets. I have been struggling with how to optimally name objects/parent objects/create custom attributes/create nodes?? in order to facilitate proper scanning and processing of the structure.
The workflow is somthing like this:
1 - select pts on the face geometry
2 - run a script that creates a set for that selection, and create a curve using the selected points
3 - select the curves that were previously created that will make up the wire def.
4 - run a script that selects the sets for each curve, group them (for organizational purposes), create wire deformers, group the control wires.
5 - create expressions to drive the envelope of the wire def.
Now I want to mirror this setup:
The only way that I have come up with re-creating sets for a subDMirror is to first select the level 0 pts, and then use the refineselection command to scan the lower level pts of the subD, in order to re-create the sets. (Any easier thoughts on how else to do this are welcome)... so I need to be able to get all the pts on a certain level, organized by sets.
ONTO THE QUESTIONS:
1 - I can't decide if it is best to name things what they actually are, or leave that to the relative parenting... for example.
L_eye_corner_upper_level_2_set
L_eye_corner_upper_level_3_set
R_eye_corner_lower_level_2_set
vs something like.
L_sets|eyes|corner|level2|upper_sets
L_sets|eyes|corner|level2|lower|set
R_sets|eyes|corner|upper|level2|set1
In the above, trying to identify the upper vs. lower in context of the L vs. R could be tricky. But the second example forces you to identify the hier when trying to "select set1"... and also implies parenting relationships that may not be right.
2. How do you guys typically scan through sets that can contain sets and have no defined depth(meaning set within set within set within???) ? I mean I can create the loop... thats not my issue.... my issue is that if I want to get all the level "2" sets.... then I first have to get all the sets, token them, scan for the "2", and rebuild the list.
3. Do you guys simply create custom attributes to do this type stuff. Like say a node or attribute that contains a list of all sets for a given geometry?
I am writing a script that is attaching a face rig. The face rig consists of wire deformers and therefore splines and sets. I have been struggling with how to optimally name objects/parent objects/create custom attributes/create nodes?? in order to facilitate proper scanning and processing of the structure.
The workflow is somthing like this:
1 - select pts on the face geometry
2 - run a script that creates a set for that selection, and create a curve using the selected points
3 - select the curves that were previously created that will make up the wire def.
4 - run a script that selects the sets for each curve, group them (for organizational purposes), create wire deformers, group the control wires.
5 - create expressions to drive the envelope of the wire def.
Now I want to mirror this setup:
The only way that I have come up with re-creating sets for a subDMirror is to first select the level 0 pts, and then use the refineselection command to scan the lower level pts of the subD, in order to re-create the sets. (Any easier thoughts on how else to do this are welcome)... so I need to be able to get all the pts on a certain level, organized by sets.
ONTO THE QUESTIONS:
1 - I can't decide if it is best to name things what they actually are, or leave that to the relative parenting... for example.
L_eye_corner_upper_level_2_set
L_eye_corner_upper_level_3_set
R_eye_corner_lower_level_2_set
vs something like.
L_sets|eyes|corner|level2|upper_sets
L_sets|eyes|corner|level2|lower|set
R_sets|eyes|corner|upper|level2|set1
In the above, trying to identify the upper vs. lower in context of the L vs. R could be tricky. But the second example forces you to identify the hier when trying to "select set1"... and also implies parenting relationships that may not be right.
2. How do you guys typically scan through sets that can contain sets and have no defined depth(meaning set within set within set within???) ? I mean I can create the loop... thats not my issue.... my issue is that if I want to get all the level "2" sets.... then I first have to get all the sets, token them, scan for the "2", and rebuild the list.
3. Do you guys simply create custom attributes to do this type stuff. Like say a node or attribute that contains a list of all sets for a given geometry?
