I just used some try/except filth:

    for env in obj.Envelopes:
        try:
            map = env.InputPorts(6).Target2
        except:
            LogMessage("Could not find Envelope Map on %s" % obj.FullName,
constants.siError)
            continue

        path = _buildPath(obj)
        Application.SavePreset(map, path, "", "siDefaultLocation", "", "",
"")




On 9 October 2013 15:05, Szabolcs Matefy <szabol...@crytek.com> wrote:

> Hey folks****
>
> ** **
>
> Anybody have idea how can I export envelope preset from script without
> recycling all clusters looking for the envelop cluster?****
>
> ** **
>
> 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
>
> --------------------------
> To unsubscribe: mail softimage-requ...@listproc.autodesk.com with subject
> "unsubscribe" and reply to the confirmation email.
>
--------------------------
To unsubscribe: mail softimage-requ...@listproc.autodesk.com with subject 
"unsubscribe" and reply to the confirmation email.

Reply via email to