Copy UV to cloned copies

34 views
Skip to first unread message

Szabolcs Matefy

unread,
Mar 12, 2013, 9:42:42 AM3/12/13
to soft...@listproc.autodesk.com

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

Petr Zloty

unread,
Mar 12, 2013, 11:14:49 AM3/12/13
to soft...@listproc.autodesk.com
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 <szab...@crytek.com>

Szabolcs Matefy

unread,
Mar 13, 2013, 3:34:12 AM3/13/13
to soft...@listproc.autodesk.com

Thanks!

 

I use it J

Reply all
Reply to author
Forward
0 new messages