[script] finding Custom Pset

Date : Fri, 22 Jul 2005 14:51:56 -0400
To : <XSI(at)Softimage.COM>
From : "Biju Ramachandran" <biju.ramachandran(at)ubisoft.com>
Subject : [script] finding Custom Pset

Hi there:

 

After creating a Custom Pset, I would like to see if it was created. Using Find, I am not getting the correct answer. Could someone let me know what I am doing wrong

 

//script

 

var oCustomProperty = Application.ActiveProject.ActiveScene.Root.AddProperty("CustomProperty",0,"LensControls" ) ;

 

oEnum = new Enumerator(Application.ActiveProject.ActiveScene.Root.Properties );

for (;!oEnum.atEnd();oEnum.moveNext()) { 

    logmessage (oEnum.item().fullname);

}

 

var oPSet = Application.ActiveProject.ActiveScene.Root.Properties.Find("LensControls");

if (oPSet == null){

    logmessage ("No");

}else{

    logmessage ("yes");

}  

 

Thanks

 

Biju


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.