Page Menu
Home
Search
Configure Global Search
Log In
Files
F1901
test.py
Public
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Authored By
Austin Benesh (abtrumpet)
Nov 13 2013, 1:00 PM
Size
294 B
Subscribers
None
test.py
View Options
import
Blender
from
Blender
import
Image
im
=
Image
.
Load
(
"C:\sample.tga"
)
min
=
im
.
getMinXY
()
max
=
im
.
getMaxXY
()
print
(
min
)
print
(
max
)
colors
=
im
.
getPixel
(
50
,
50
)
print
(
colors
)
colors
[
0
]
=
1.0
colors
[
1
]
=
0.0
colors
[
2
]
=
0.0
colors
[
3
]
=
1.0
im
.
setPixel
(
50
,
50
,
colors
)
im
.
Save
()
File Metadata
Details
Mime Type
text/x-python
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
1b/59/4f67641ff712617511951c003ff3
Event Timeline
Log In to Comment