  | | | avoiding using get value with python | avoiding using get value with python 2005-03-17 - By kim@(protected)
Back Check out Brad Gabe's excelent article 'Looping Lizards' at www.cg-soup.com for fast and efficient ways to get objects using the OM.
softimage@(protected) writes:
> You may use Application.dictionary.getobject() > > You may also iterate the ConstructionHistory and check each operators > individually. The docs have a good example about this. Once you have found the > operator you can simly access its parameters: > iValue = oOperator.parameters( 'EmitterMeshSubdlevel' ).value > > > Cheers > Bernard > > > Quoting benp <benp@(protected)>: > >> hello xsiList! >> I haven't tried to get operator objects before, so this may be a larger >> problem than just using GetValue ... >> in python and with a hair object selected: >> oTo = Application.Selection(0) >> > Application.GetValue(oTo.ActivePrimitive.ConstructionHistory.Find("hairGenOp" )).Parameters("EmitterMeshSubdlevel").Value >> = 0 >> >> how can i avoid using GetValue to get the hairGenOp object properly? >> I often find i can't get objects without using GetValue. >> >> thanks list. >> >> >> --- >> Unsubscribe? Mail Majordomo@(protected) with the following text in body: >> unsubscribe xsi >> > > > > --- > Unsubscribe? Mail Majordomo@(protected) with the following text in body: > unsubscribe xsi >
--- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
|
|
 |