On 07/03/2017 at 01:08, xxxxxxxx wrote:
Hi folks,
I am new (so please don't kill me if I overlooked something in the forum search
We are producers of 180° fulldome content for a planetarium. I used to develop with python, so I started building tools to make our artists' work as easy as possible. We are using 2 camera post effects - WideField Cam 4D and CV-VR. I figured out the IDs, and I've been able to switch them on and off once they are in the effects list, but I'd like to make some improvements, so I need a little help:
- How can I add a post effect if it is not in the list?
- How can I get a list of the effect's parameters and change them? Guess it has something to do with a container instance?
Thank you very much!
Bastian
ScienceDome, experimenta Heilbronn
This is the way I change the camera effect:
---
CV_VR = 1036331
WFCAM = 1019517
CAMERA_POST_EFFECTS = (CV_VR, WFCAM)
def SetActiveCamera(self, post_id) :
post = renderdata.GetFirstVideoPost()
while post:
if post.GetType() in CAMERA_POST_EFFECTS and not post.GetType() == post_id:
post.SetBit(c4d.BIT_VPDISABLED) #disable
if post.GetType() == post_id:
post.DelBit(c4d.BIT_VPDISABLED) #enable
post = post.GetNext()
c4d.EventAdd()
---