PDA

View Full Version : Change blur value of all scene bitmaps


cadmonkey33
03-28-2009, 03:37 PM
Hi,
I'd like to be able to change the blur value of all bitmaps in my scene.
Since the bitmaps could be subobjects of multisubs or color corrects or composites or any number of other mat types, is this as complicated as i think its going to be?
or is there a simple way to retrieve an array of all bitmaps?

thanks,
Nat.

Bobo
03-28-2009, 04:31 PM
Hi,
I'd like to be able to change the blur value of all bitmaps in my scene.
Since the bitmaps could be subobjects of multisubs or color corrects or composites or any number of other mat types, is this as complicated as i think its going to be?
or is there a simple way to retrieve an array of all bitmaps?

thanks,
Nat.

The getClassInstances() method will return all instances of a given class in the scene.
Since the only type of map you are interested in is bitmapTexture, you could simply collect those and change their blur properties.

theMaps = getClassInstances bitmapTexture
for m in theMaps do m.coordinates.blur = 12.3

cadmonkey33
03-28-2009, 05:46 PM
The getClassInstances() method will return all instances of a given class in the scene.
Since the only type of map you are interested in is bitmapTexture, you could simply collect those and change their blur properties.


Excellent, thats exactly what i wanted.
Thankyou Sir.

CGTalk Moderation
03-28-2009, 05:46 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.