Hi, quick way:

## Python script
xsi = Application

oSel = xsi.Selection
## select all clones
oColl = XSIFactory.CreateObject("XSI.Collection")
for oObj in oSel:
    oColl.Add(oObj)

## pick master object with uv
oPick = xsi.PickObject()
xsi.CopyUVW(str(oPick(2))+".polymsh.cls.Texture_Coordinates_AUTO.Texture_Projection",
str(oPick(2))+".sample[*]")

## duplicate uvs to objects
for oObj in oColl:
    xsi.CreateProjection(oObj, "siTxtPlanarXY", "siTxtDefaultSpherical",
"Texture_Support", "Texture_Projection", "", "siRelDefault", "")

xsi.PasteUVW(str(oObj)+".polymsh.cls.Texture_Coordinates_AUTO.Texture_Projection",
str(oObj)+".sample[*]", "siDefaultPasteUVsMode")


Cheers, Petr


2013/3/12 Szabolcs Matefy <[email protected]>

> Hey guys****
>
> ** **
>
> I made a plenty of geometries via cloning. Now I UV mapped the master
> object, and realized, that the clones didn’t inherit the UV mapping…is
> there any quick way to copy to UV to the clones?****
>
> ** **
>
> ** **
>
> Cheers****
>
> ** **
>
> ** **
>
> Szabolcs****
> ___
> This message contains confidential information and is intended only for
> the individual named. If you are not the named addressee you should not
> disseminate, distribute or copy this e-mail. Please notify the sender
> immediately by e-mail if you have received this e-mail by mistake and
> delete this e-mail from your system. E-mail transmission cannot be
> guaranteed to be secure or error-free as information could be intercepted,
> corrupted, lost, destroyed, arrive late or incomplete, or contain viruses.
> The sender therefore does not accept liability for any errors or omissions
> in the contents of this message, which arise as a result of e-mail
> transmission. If verification is required please request a hard-copy
> version. Crytek GmbH - http://www.crytek.com - Grüneburgweg 16-18, 60322
> Frankfurt - HRB77322 Amtsgericht Frankfurt a. Main- UST IdentNr.:
> DE20432461 - Geschaeftsfuehrer: Avni Yerli, Cevat Yerli, Faruk Yerli
>

Reply via email to