Forum: Carrara


Subject: Selections in VM - Symetry and Naming questions

alias59 opened this issue on Oct 07, 2006 ยท 13 posts


nomuse posted Sun, 08 October 2006 at 1:53 PM

Lemme see if I can make it simple. Lightwave "Obj" format is an ascii text file. As exported by Carrara basically in three sections; list of vertices as a long table of numbers in sets of 3 (the xyz world coordinates), a description of faces as a staggered list of vertices in the face, and a list of surface normals. The list of faces is interrupted by two kinds of delineators; these take the form of a short line or pair of lines. Everything after one of these lines takes on the property described, up until another line of the same form changes that property. The two properties we are concerned with are "group" and "materials zone." The former has the format "g (name of group)." The latter has the format "usemtl (name of material)." Okay, sounds more complicated than it is. Say you are making a Poser item; say, a pair of men's two-tone shoes. As you create the item in Carrara you will have four materials zones, which you might name "rFootTan, rFootBlack, lFootTan, lFootBlack." Export. Now in a text editor, do a search for "usemtl." When the search turns up "usemtl rFootTan," change it to "usemtl tan." Now right above it, insert a new line reading "g rFoot." Continue searching down. If the next thing you run into is "usemtl rFootBlack" just edit it to "usemtl Black." The "g rFoot" will automatically continue through this change of materials. Alternatively (depending on the order you modeled things in), if the next item your downwards search turns up is "usemtl lFootTan," then change that line to "g lFoot." Since the last material named was "usemtl Tan" that material definition will continue to cover this new group as well. Does this make any sense? Sorry, but my morning coffee is still in the filter, and not yet in me. Trust me....it sounds much more complicated than it is. If I could find a really simple obj file to show you I'd do that instead. Let me add. If you do as above and create a Poser figure using that edited obj file, you will have two body parts (lFoot and rFoot) and two Poser materials (Tan and Black). The actual materials definitions are found elsewhere; these are just handles for the area that takes that named material.