Updating a Postprocessing effect
I'd like to be able to modify and update a postprocessing effect in a loop for a particular effect. Specifically, I'm wanting to modify BulgeAmount such that it loops and interpolates between -0.5 and 0.5:
Code:
effect = BulgeEffect(BulgeAmount) I tried using the director function to create a new thread and have it loop separately from the main thread but it crashed. This is the code I tried: Code:
import viz |
Here's an example that uses the viztask.waitCall command to call effect.setBulge and waits until the vizact.mix parameters are complete.
Code:
import viz |
Thank you Jeff! This is exactly what I was trying to do. You make my life easy.
|
All times are GMT -7. The time now is 12:37 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC