Navigation

    • Register
    • Login
        No matches found
    • Search
    1. Home
    2. WDP
    W

    WDP

    @WDP

    0
    Reputation
    36
    Posts
    16
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    • Profile
    • More
      • Following
      • Followers
      • Topics
      • Posts
      • Best
      • Groups
    WDP Follow

    Best posts made by WDP

    This user hasn't posted anything yet.

    Latest posts made by WDP

    RE: Modul import

    Thank you very much!

    posted in Cinema 4D SDK •
    Modul import

    How can I import and run modules I've written in Nodepad++ in Cinema Python?

    posted in Cinema 4D SDK •
    RE: Script Befehl

    Thank you very much!!

    posted in Cinema 4D SDK •
    RE: Script Befehl

    Hi!
    Sorry I'm new to Python and still have to learn a lot, I've tested the Github example thanks for that, but I still can't get a keyframe to control my object visibility in Stage Animation?
    It would be very nice of you if you could help me again.
    Thank you very much!

    posted in Cinema 4D SDK •
    RE: Script Befehl

    Thanks for the script that deletes a key frame, but do you also have a script that adds the key frame?

    posted in Cinema 4D SDK •
    RE: Visibility Toggle

    Hello tried the script it switches from off to undef, how do I switch from off to on?


    import c4d
    from c4d import gui
    
    def main():
    
        allobj = doc.GetActiveObjects(c4d.GETACTIVEOBJECTFLAGS_CHILDREN)
        for obj in allobj:
            obj.SetEditorMode(obj.GetEditorMode() % 2 + 1)
            obj.SetRenderMode(obj.GetRenderMode() % 2 + 1)
    
    
    if __name__=='__main__':
        main()
        c4d.EventAdd()
    

    and how do i add the key frame?

    Thank you very much!

    posted in Cinema 4D SDK •
    RE: Script Befehl

    allmost alll functions in C4D have a Script ID and there is no script command for editor visibility and rendering visibility of Renderer( Key Frame) for a Animation? I have an animation and would like to only undef objects from the keyframe for editor visibility and render visibility per Key Frame, why isn't there a script command for these two functions?
    Tried the Git Hub sample that only creates new objects.
    I just want a script command that lets you control the (attributes base editor visibility and render visibility / Key Frame).
    Do you also have a tip for me why can I only control individual objects and not several with this script?
    Thank you very much!

    import c4d
    
    def main():
        """ Toggles both the render and editor visbilty of the active object.
        """
        if op is None:
            return
    
    
        if op.GetEditorMode() == c4d.MODE_UNDEF:
            op.SetEditorMode(c4d.MODE_ON)
            op.SetRenderMode(c4d.MODE_ON)
    
        elif op.GetEditorMode() == c4d.MODE_OFF:
            op.SetEditorMode(c4d.MODE_UNDEF)
            op.SetRenderMode(c4d.MODE_UNDEF)
    
        else:
            op.SetEditorMode(c4d.MODE_OFF)
            op.SetRenderMode(c4d.MODE_OFF)
    
        c4d.EventAdd()
    
    
    if __name__=='__main__':
        main()
    
    posted in Cinema 4D SDK •
    RE: Script Befehl

    I mean the adtribute palette / base / editor visibility and render visibility key frame i can't find a script command for this click function?
    Thank you very much!

    posted in Cinema 4D SDK •
    RE: Script Befehl

    M_Magalhaes Thank you for your answer, I'm sorry that I expressed myself so wrongly and asked the same question again.
    Have you a tip for me, how the keyframe command is for a Python Script?
    Thank you very much!

    posted in Cinema 4D SDK •
    RE: Script Befehl

    Thank you kudos! for the nice Answer!

    posted in Cinema 4D SDK •