Modify Sketch&Toon Rendersettings
-
Hello,
How can I modify Sketch&Toon Rendersettings? Following Code does not print the correct vallues. Is this a Bug or something I need to add?rd= doc.GetActiveRenderData() print rd[c4d.OUTLINEMAT_SHADING_BACK] print rd[c4d.OUTLINEMAT_SHADING_QUANTISE_LEVEL]
-
Hi,
The Sketch and Toon render settings are stored in the related video post, not the render data.
The video posts are stored in a list, the first element of that list can be obtained with
GetFirstVideoPost()
on the associated render data.
Then loop trough all video posts simply withGetNext()
and check the type of the current video post.Here is some code:
rd = doc.GetActiveRenderData() if rd is None: return vpost = rd.GetFirstVideoPost() if vpost is None: return found = False while vpost: found = vpost.GetType() == 1011015 if found: print "Found S&T VideoPost" break vpost = vpost.GetNext() if found: print vpost[c4d.OUTLINEMAT_SHADING_BACK] print vpost[c4d.OUTLINEMAT_SHADING_QUANTISE_LEVEL]
-
Hi Holger,
I'm wondering if your question has been answered. If so, please mark this thread as solved.
Cheers,
Yannick