[CPP] Customdata to Property_Define.

Date : Sat, 17 Dec 2005 23:48:55 +0100
To : XSI(at)Softimage.COM
From : Daniel Collin <emoon(at)home.se>
Subject : [CPP] Customdata to Property_Define.
Hi,

I have a bit complex problem. I want to attach a Property to a Null object and depending on diffrent things the Parametres that will be created in the Property will differ from one object to another (its specified from the "outside" how the gui should look like).

My problem is that I have no good way to send customdata to to the MyProperty_Define(XSI::CRef& ref) function.

One way I have come up with so far is to attach a "UserDataBlob" Property to the object first. Then do

XSI::Application app;

XSI::Selection selection = app.GetSelection();
selection.Clear();
selection.Add(myObject);

then inside the MyProperty_Define(..) i find the selected object and get the properties for the object and finds my UserDataBlob object that I use for the gui creation.

I wonder if there is a better way because this semms a bit "flanky"

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


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.