Python modules available for download 2004-02-11 - By Rick Walia
Back I sent this to the list earlier but it apparantly didn't come through, so here it is again. Pardon the duplication if you got this already.
I don't know how many XSI Python scripters are out there(I gather soon to be much more), but here are 3 modules with the SI Constants. I'll add more as time permits.
http://www.rickw3d.com/XSI/Python/Modules/
SiFilter.py SiFamily.py SiUserPref.py
Note: These are simple variables with values, not classes or functions as I didn't think there was any point in OOPing them.
Usuage Import into local namespace: #-- ---- ---- ---- ---- -- from SiFamily import * oRoot = Application.ActiveProject.ActiveScene.Root oFound = oRoot.FindChildren("","",siLightPrimitiveFamily) #-- ---- ---- ---- ---- --
Alternatively you can import the object way: #-- ---- ---- ---- ---- -- import SiFamily oRoot = Application.ActiveProject.ActiveScene.Root oFound = oRoot.FindChildren("","",SiFamily.siLightPrimitiveFamily) #-- ---- ---- ---- ---- --
To see what the constants applies to, I've included it in the doc string: #-- ---- ---- ---- ---- -- import SiFamily Application.LogMessage(SiFamily.__doc__) #-- ---- ---- ---- ---- --
For a list of all the variables without manually opening the file: In a console(Not XSI SE) type: #-- ---- ---- ---- ---- -- from pydoc import help import SiFilter help(SiFilter) #-- ---- ---- ---- ---- --
Let me know if I missed anything,
/R
--- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
|
|