[Bf-python] Getting data that isnt there.
Campbell Barton
cbarton at metavr.com
Thu Apr 21 06:53:21 CEST 2005
Hi, an Issue I have with a python script Im writing is getting data that
might not be there.
image = Image.Get(someImageName)# If the image name isnt there then an
error is returned.
Id prefer Image.Get(someImgName) to return None if the image dosent exist.
Using try/except is an option for now but its a lot slower.
Also Image depth,size etc returns an error when the image is missing
(Pink mesh) - those should probably return None as well,
- Cam
--
Campbell J Barton
133 Hope Street
Geelong West, Victoria 3218 Australia
URL: http://www.metavr.com
e-mail: cbarton at metavr.com
phone: AU (03) 5229 0241
More information about the Bf-python
mailing list