Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login
    1. Maxon Developers Forum
    2. freeter_e
    F
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 11
    • Best 0
    • Controversial 0
    • Groups 0

    freeter_e

    @freeter_e

    0
    Reputation
    14
    Profile views
    11
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    freeter_e Unfollow Follow

    Latest posts made by freeter_e

    • RE: How to SetKeyframeSelection for Subfield

      Thanks again.@i_mazlov
      I haven't studied C++ yet, but I'm glad to know that it's achievable with C++.

      posted in Cinema 4D SDK
      F
      freeter_e
    • RE: How to SetKeyframeSelection for Subfield

      Hello @i_mazlov
      Thanks for the reply, and the thoughtful extended reading.

      I used the code you provided, but it doesn't seem to change the results.

      posted in Cinema 4D SDK
      F
      freeter_e
    • How to SetKeyframeSelection for Subfield

      Hello,
      I want to know how to SetKeyframeSelection for subfield
      1.jpg

      here is my code

      import c4d
      
      def main():
      
          fields = op[c4d.FIELDS]
          first_layer = fields.GetLayersRoot().GetFirst() 
          first_layer_UniqueID = first_layer.GetUniqueID()
          print (f"first_layer_name: {first_layer.GetName()},  UniqueID: {first_layer_UniqueID}" )
      
          subfield = first_layer[c4d.FIELDLAYER_PROXIMITY_FIELDS]
          subfield_first_layer = subfield.GetLayersRoot().GetFirst() 
          subfield_first_layer_UniqueID = subfield_first_layer.GetUniqueID()
          print (f"subfield_first_layer_name: {subfield_first_layer.GetName()},  UniqueID: {subfield_first_layer_UniqueID}" )
      
      
          parameter_id = 440000260  #layer opacity
          op.SetKeyframeSelection([c4d.FIELDS , subfield_first_layer_UniqueID , parameter_id],True)   #<---- I don't know how to write it for subfield
          #op.SetKeyframeSelection([c4d.FIELDLAYER_PROXIMITY_FIELDS , subfield_first_layer_UniqueID , parameter_id],True)
      
      
      if __name__ == '__main__':
          main()
          c4d.EventAdd()  
      
      posted in Cinema 4D SDK 2024 python
      F
      freeter_e
    • RE: How to change the value here using python

      @ferdinand
      Thanks so much for such a detailed response.
      Learned a lot.
      My problem is solved.
      Thank you very much.

      posted in Cinema 4D SDK
      F
      freeter_e
    • RE: How to change the value here using python

      sorry @ferdinand

      Like in the first half of the video, this can be done in the "bullet".
      I would like to realize it in "simulation" as well.

      So I want to know
      bullet → doc.FindSceneHook(180000100)
      simulation → ?????

      I'm sorry for the trouble. I hope it's understandable.

      posted in Cinema 4D SDK
      F
      freeter_e
    • RE: How to change the value here using python
      doc[c4d.PBDSCENE_SUBSTEPS] = 45
      

      Execute the script and the result feels like it changes the value here
      2.jpg

      posted in Cinema 4D SDK
      F
      freeter_e
    • RE: How to change the value here using python

      @ferdinand said in How to change the value here using python:

      doc[c4d.PBDSCENE_SUBSTEPS] = 45

      @ferdinand
      It's not work.
      substeps is still 20

      posted in Cinema 4D SDK
      F
      freeter_e
    • How to change the value here using python

      1.jpg

      I don't know where to get this object() ( I mean this simulation scene object)

      posted in Cinema 4D SDK 2024 python
      F
      freeter_e
    • RE: Some functions can't be logged by script log, how do I implement?

      @m_adam
      OK.
      Thank you very much.

      Cheers

      posted in Cinema 4D SDK
      F
      freeter_e
    • RE: Some functions can't be logged by script log, how do I implement?

      @m_adam
      Thank you very much.
      For learning, this is a good example.

      But this can only be implemented specific (it needs to be written in a script), I want a more free interaction, more "random" selection, depending on the current mouse selection (highlighted).
      3.jpg

      action "right click --> animation --> add keyframe selection" become a shortcut

      But in the future try to open a topic for each question (in this case one for the KeyFrameSelection and another one for the Asset Browser).

      Alright, received

      Cheers

      posted in Cinema 4D SDK
      F
      freeter_e