Mailing List
Home
Forum Home
Softimage
Carrara
trueSpace
Dir3d-l
Maya - a powerful 3D animation and visual effects software
Macromedia Flash Development
Subjects
Cameras
scaleDown command
black out solved
Aircraft Tutorial
Mathematical XYZ ?
Its done This vs That
Its done first week
recommendations for screen video captures?
3DExplorer "Oddity "
New Director
ProTeam renewals
Fuel 's new websites (X post)
Blue peter create a make toy
targeting groups question
XPost: Shockwave 3D game ( sort of )
RES: RES: RES: Fish Modeling
Emitting particles from object intersection
Fuel 's new websites (X post)
Texturing
Big Break Contest Videos
New Plugins
Models and Texture on my updated site
Error Installing Patch tS6 6
Plasma?
Looking for Inspiration
Weird EMail Q
It 's done first week ?
Cherry not cranberry
New game
Camera Animation Problem
Particle plugins?
 
Python modules available for download

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