Frank Lenhard wrote:
was celebrating a bit early because i still dont see what i want. sigh.
take a null for instance. its a easy example because i can dig it up
in the sdk docs but.. the null got paramters like size and
primary_icon... why none of the functions spit these out? do i miss
something fundamental again?
ciao
franky
Hi Frank,
Here's a simple Python snippet that will create a Null and show all the
Properties, Parameters and Nested Objects associated with that Null and
a couple of ways to access/change specific values.
oNull = Application.GetPrim("Null", "", "", "")
for x in oNull.Properties:
print x, 'is a property'
for x in oNull.Parameters:
print x, 'is a parameter'
for x in oNull.NestedObjects:
print x, 'is a Nested Object'
#accessing values using dot notation
print oNull.size.Value
oNull.size.Value = 100
#accessing the same value using a keyword into the parameters array
print oNull.Parameters('size').Value
#accessing values using keywords into the various lists i.e.
Properties/Parameters
print oNull.Properties('display').Parameters('intsel').Value
#combination of keyword index and dot notation
print oNull.Properties('display').intsel.Value
Julian
Men-From-Mars, Ealing, London
Scripts: http://www.exch.demon.co.uk/jj_xsiscripts.htm
E-mail message checked by PC Tools Spyware Doctor (5.0.0.176)
Database version: 5.07020
http://www.pctools.com/spyware-doctor/
========================================
This e-mail (and any attachments) is confidential and may contain personal
views which are not the views of Men-from-Mars unless specifically stated.
If you have received it in error, please delete it from your system. Do not
use, copy or disclose the information in any way nor act in reliance on it
and notify the sender immediately.
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi