Message 1 of 8
Scripting Newbie: Scripts tests, questions, etc. (color by position, etc.)

Not applicable
01-09-2010
08:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
So here are some random tests I'm doing just trying to get a good grasp at scripting. Never programmed/scripted before, so it's a fun learning experience. :)
For one is to change the object's color (wire color) based on its position in world space.
Currently it's changing the whole selected group to one color, so how do I get it to correctly loop through each individual object to do this instead of all the selection going to one color? Thanks :)
I'll go ahead with another test after I get this one solved. I'll try to solve it before anyone answers, but don't hesitate to answer this question. :)
So here are some random tests I'm doing just trying to get a good grasp at scripting. Never programmed/scripted before, so it's a fun learning experience. :)
For one is to change the object's color (wire color) based on its position in world space.
for o in selection do
(
$.wirecolor = color (o.pos.x) (o.pos.y) (o.pos.z)
)
Currently it's changing the whole selected group to one color, so how do I get it to correctly loop through each individual object to do this instead of all the selection going to one color? Thanks :)
I'll go ahead with another test after I get this one solved. I'll try to solve it before anyone answers, but don't hesitate to answer this question. :)