QUOTE(cire @ 07/10/06, 05:01 PM) [snapback]241993[/snapback]
Well getting the uv from the rib snippet was the first thing i explored. Problem is i only get UVs and not uv sets..
You get exactly all thet your rib exporter exports. if its intelligent enough to publish sets it does. If your ultimate goal is rib then this by far makes most sense. Anywwya doing this with API calls is okay even if your api is interpretted by python instead of c++. Its up to you how you balance effect versus effort after all
i tested this on a cube and this is what i got using RAT (i use BOTH rat and delight mainly rat becasue it has some NICE advantages in certain kinds of export customisation areas, altoough delight is flexible in some other areas)
"facevarying float s" [0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 1 2 2 1 -1 0 0 -1]
"facevarying float t" [0 0 1 1 -1 -1 0 0 -2 -2 -1 -1 -3 -3 -2 -2 0 0 1 1 0 0 1 1]
"facevarying float u_extra" [0.95 0.95 0.95 0.95 0.05 0.0499999 0.95 0.95 0.05 0.0499999 0.0499999 0.05
0.95 0.95 0.0499999 0.05 0.95 0.0499999 0.0499999 0.95 0.05 0.95 0.95 0.05]
"facevarying float v_extra" [0.95 0.05 0.05 0.95 0.95 0.0500001 0.05 0.95 0.95 0.05 0.0500001 0.95
0.95 0.05 0.05 0.95 0.05 0.0500001 0.05 0.05 0.95 0.95 0.95 0.95]
wich is to say the first 2 ones are the default set and the next 2 are the set thats bamed extra- The set itsealf does not catain any more data than this.
The connectivity data is not realy present its one for each face vertex so you dot need to identify the connectivity because its not defined in rib but yes it recreates in maya easily and correctly if you auti sew tham all.
But the nice thing about this is that its easily injected to the rib at any stage.
QUOTE
But i had problems parsing maya ascii files cause there is some inconsistencies in the way maya saves scene data to the ascii file.
And what exactly moght that inconssitency be. There should be none in this case!
Also by the way on the contrary to what people say CORE maya can trabsfeer individual uvesets form a node to another with the maya node polyTweakUV tough its a bit tricky to do. So its easy to transfeer individual sets form obejcts to others.
However had you used the ascii file then all youd need to do is inhject the data into one of theese nodes AS IS.