Detect Material Preview in VideoPostData



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 30/07/2008 at 16:55, xxxxxxxx wrote:

    User Information:
    Cinema 4D Version:   9.6+ 
    Platform:   Windows  ;   Mac OSX  ; 
    Language(s) :     C++  ;

    ---------
    Hi all,

    there is a way to detect that the current rendering (I'm inside VP_INNER etc.) is a Material Preview?

    Thanks :)
    renato



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 31/07/2008 at 01:03, xxxxxxxx wrote:

    Hi RenatoT,

    small idea: Can you receive the document from the function parameter? Perhaps you can compare the pointers with GetActiveDocument().

    This can't work perfectly, because it would mean, that a virtual BaseDocument is material Preview, too, but perhaps it's a good way to start from.

    Bye :)



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 31/07/2008 at 03:56, xxxxxxxx wrote:

    Hello Shawni,

    thanks for the idea but i fear that i need a safe way to know it because from a preview material or full render the difference inside ..... uhm.. you gave me another idea.
    I think that i'll mark the preview scene with a unique flag :)

    cheers
    Renato



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 31/07/2008 at 03:59, xxxxxxxx wrote:

    Hi! :)

    I am happy to see that I could help you. hehe..


Log in to reply