Re: Connecting a specific custom property to a SCOP group

Date : Tue, 1 Aug 2006 09:33:12 +1000
To : XSI(at)Softimage.COM
From : "Aloys Baillet" <aloys.baillet(at)gmail.com>
Subject : Re: Connecting a specific custom property to a SCOP group
Hi Andy,

If you're writing a Self-Installable Custom Operator, there's a limitation on the ConnectToGroup method where you can only connect one object to a portgroup at a time... It's quite annoying.
The other way around this is to use the UpdateConnectOnOp command to connect whatever you need to the port group (thanks to Jonathan Mc Dermott for that!).
You can also have a look at
http://softimage.wiki.avid.com/index.php/Custom_Operators_%28XSISDK%29
A lot of useful info there!

Cheers,

Aloys

On 7/31/06, Andy Nicholas <andy(at)andynicholas.com> wrote:
Brill. Thanks for your help guys :-)


> Hi Andy,
>
> Testing my memory here, but I think the fix to this is to make to your
> two in ports seperate groups. (i.e. one group per port).
>
> Cheers,
>
> Alan.
>
> On 7/31/06, Andy Nicholas <andy(at)andynicholas.com> wrote:
>> Hi guys,
>>
>> I'm having a major problem trying to connect a specific custom property
>> to
>> a scripted operator. My ports look like this:
>>
>> <obj>.kine.global   (IN)
>> <obj>.MyProperty    (IN)
>> <obj>.kine.global   (OUT)
>>
>> When I first create the operator, it's not a problem to specify the
>> exact
>> connections because I use the ApplyOperator command like this:
>>
>> ApplyOperator("KineOperator",
>>               "[sphere.kine.global,sphere.MyProperty,sphere.kine.global]");
>>
>> This allows me to specify the custom property "MyProperty" to be used.
>> If
>> I don't do that, I have the problem where it will just connect to the
>> first CustomProperty that exists underneath the object, rather than the
>> one I want it to connect to.
>>
>> My issue, is that I want to be able to connect multiple objects to this
>> operator. So I want to be able to do this:
>>
>> operator.ConnectToGroup(0, box_obj);
>>
>> to connect other objects to the same operator after I've created it.
>>
>> The problem with this, is that I'm not able to specify the exact
>> connection set. As a result, the first custom property underneath the
>> object gets connected instead of the one I want.
>>
>> Does anyone know of a way round this problem?
>>
>> BTW, my property is a self installed custom property. Is it possible to
>> create a custom property with an SPDL? If I could, then I'd be able to
>> specify the custom property's GUID in the port definition and all would
>> be
>> fine.
>>
>> Thanks
>>
>> Andy
>>
>>
>>
>> ---
>> Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in
>> body:
>> unsubscribe xsi
>>
> ---
> Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
> unsubscribe xsi
>


---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi



--
Aloys Baillet - XSI Technical Director
Character Dpt - Animal Logic
--

Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.