Navigation

    • Register
    • Login
    • Search
    1. Home
    2. gheyret
    gheyret

    gheyret

    @gheyret

    0
    Reputation
    73
    Posts
    117
    Profile views
    1
    Followers
    5
    Following
    Joined Last Online

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

    Best posts made by gheyret

    This user does not have any upvoted posts yet.

    Latest posts made by gheyret

    RE: How to get the object newly added in current scene?

    Hi @ferdinand , I get it ! Thanks again to your reply!

    posted in Cinema 4D SDK •
    RE: How to get the object newly added in current scene?

    @ferdinand
    I mean i Get the Object Data using BaseList2D.GetData() and SetDatato another object, it's only change the parameter of "Object" Tab in Attributes Manager.
    Hera is a exmaple:

    from typing import Optional
    import c4d
    
    doc: c4d.documents.BaseDocument  # The active document
    op: Optional[c4d.BaseObject]  # The active object, None if unselected
    
    def main() -> None:
        new = doc.GetFirstObject()
        old = new.GetNext()
        
        old.SetData(new.GetData())
        
        c4d.EventAdd()
    
    if __name__ == '__main__':
        main()
    

    Before run the script
    01.png

    After run the script
    02.png

    As you can see, the object name, visibilitys and display color is not changed by SetData

    posted in Cinema 4D SDK •
    RE: How to get the object newly added in current scene?

    Hi @ferdinand , thanks to your reply.
    There is another quession; the basic property (like Name, Viewport visibility, Enabled, e.t.c) of object is not in the data container? I mean the c4d.BaseContainer returned by c4d.BaseList2D.GetData()

    posted in Cinema 4D SDK •
    RE: How to get the object newly added in current scene?

    @dunhou
    Cool man ! That's what i want !
    I actually thought about traverse everything in the scene, but I felt it would be a waste. for example, if there were a lot of objects in the scene, so I think if there was another way to do that. But based on your post, that's the only way to do.
    Anyway , thank you and @ferdinand
    Cheers~🥂

    posted in Cinema 4D SDK •
    How to get the object newly added in current scene?

    Hi plugincafe~
    I want to get the object newly added in to current scene in my Dialog plugin and update something in my dialog.

    For example:
    Add something in the scene(like a null object), how do i get this object? and how to get this Message?

    I find c4d.EVMSG_CHANGE in SDK and i can get some document changed message in CoreMessage. But I don't know what to do next.

    posted in Cinema 4D SDK •
    RE: How to get and create redshift light groups with python?

    @manuel
    Cool ! Thank you ~

    posted in Cinema 4D SDK •
    How to get and create redshift light groups with python?

    Hi everyone~
    How did i create and get redshift light groups with python ?

    posted in Cinema 4D SDK •
    RE: Can i get global input event ?

    @ferdinand
    Wow~ Thank you so much bro

    posted in Cinema 4D SDK •
    Can i get global input event ?

    Hello everyone~
    I have a GeDialogwindow now. and i want to close it when my mouse click in anywhare.
    I can get the mouse click event in GeDialog.Message(), but it's just work inside of dialog.
    So i think maybe i need to get the global input event . But i can't find any method in SDK.
    How do i do that?

    posted in Cinema 4D SDK •
    RE: Material and Shader Questions

    @m_adam
    OK~ Thank you so much!

    posted in Cinema 4D SDK •