Python SI Constants Modules available for Download 2004-02-12 - By Rick Walia
Back Hi guys,
Don't know how many use python here but I put 3 modules on my site for download: http://www.rickw3d.com/XSI/Python/Modules/
SiFilter.py SiFamily.py SiUserPref.py
Nothing fancy, just variables with values. You can use these if you want to take advantage of the SiFilter or SiFamily constants:
#Import the module in your local namespace: from SiFamily import * oFound = oRoot.FindChildren("","",siLightPrimitiveFamily)
#If you choose not to import it locally: import SiFamily oFound = oRoot.FindChildren("","",SiFamily.siLightPrimitiveFamily)
If you want to see the contents of the modules from a console(Not XSI):
from pydoc import help import SiFilter help(SiFilter)
It'll list all the variables and values.
If I missed anything, let me know.
/R
--- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
|
|