Go to: Return value. Flags. Examples.
break, isValid, make, query, queryObject, texture, uvSet
uvLink -uvSet pSphereShape1.uvSet[2].uvSetName -texture checker1; // causes a UV link to be created between uvSet[2] on pSphereShape1 // and the checker1 texture. // Note that no make, break or query flag is specified so make is // assumed since both uvSet and texture are specified. uvLink -make -uvSet pCubeShape2.uvSet[0].uvSetName -texture file8; // causes a UV link to be created between uvSet[0] of pCubeShape2 and // the file8 file texture. uvLink -uvSet pCubeShape2.uvSet[0].uvSetName -texture file8; // causes a UV link to be created between uvSet[0] of pCubeShape2 and // the file8 file texture. Note: no make, break or query flag is // specified so the make flag is assumed since both uvSet // and texture are specified. uvLink -query -uvSet pCubeShape2.uvSet[0].uvSetName; // will return a string array of textures which use the UV set // pCubeShape2.uvSet[0].setName. For example, the return value might // be: // file8 file9 checker4 slimeMap uvLink -query -texture checker4; // will return a string array of the UV sets that are used by the // texture. For example, the return value might be // pCubeShape2.uvSet[0].setName pCylinderShape1.uvSet[4].setName // pCylinderShape2.uvSet[3].setName uvLink -texture checker4; // will return a string array of the UV sets that are used by the // texture. For example, the return value might be // pCubeShape2.uvSet[0].setName pCylinderShape1.uvSet[4].setName // pCylinderShape2.uvSet[3].setName // Note that no make, break or query flag is specified, so query is // assumed since no uvSet was specified. uvLink -break -uvSet pCylinderShape2.uvSet[3].uvSetName -texture checker4; // causes the checker4 texture to no longer use the UV set // pCylinderShape2.uvSet[3].setName. // The texture will use the default UV set on pCylinderShape2 instead. // If checker4 wasn't using pCylinderShape2.uvSet[3].setName, // nothing changes and a warning is produced. uvLink -isValid -texture myTexture; // Returns true if myTexture is a texture to which a UV set can be // linked, or false otherwise. string $myPlug = `getSomePlugFromSomewhere`; uvLink -isValid -uvSet $myPlug; // Returns true if $myPlug is a UV set, or false otherwise.