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. Jonas Mortensen
    J
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 2
    • Best 0
    • Controversial 0
    • Groups 0

    Jonas Mortensen

    @Jonas Mortensen

    0
    Reputation
    2
    Profile views
    2
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    Jonas Mortensen Unfollow Follow

    Latest posts made by Jonas Mortensen

    • RE: Parameter linking aka relative references

      Hello Ferdinand,

      I have now read the Guidelines, I sincerely apologize for that oversight, but nonetheless thank you for taking time to write back to me.

      Yes I obviously have had a big misconception in how cinema4d worked with code and how linking would be done. I should have read what I send twice before doing so.

      My idea is the "Relative references" you have in Houdini, where you can link two values to each other with a relative value to the host. The reason I said it could be done manually was me trying to explain that you can also do it with an Xpresso Driver. The reason for that was because you would have to assign the first driver to the input you would like to control to the other input that you want controlled by the first input. The reason I wanted it to be automatically was so it could be procedural and you would just need the tag and reference the "source" like doing something that clones all values in real time without having to manually set the drivers for each parameter.

      Best regards
      Jonas Mortensen

      posted in General Talk
      J
      Jonas Mortensen
    • Parameter linking aka relative references

      Hello guys, I got a question related to the GetDataInstance() Module in Cinema4d's Python tag. I got this code that I found on an old youtube channel and I wanted to test it out

      import c4d
      
      source = op[c4d.ID_USERDATA,1]; #define user data source
      target = op.GetObject();  #define tag owner
      
      def main():
      
          oDat = source.GetDataInstance(); #get the linked object's data
          target.SetData(oDat) #set tag owner's data to source
      

      The problem with the code is its inconsitency, it only updates the values when either you change the values of the target manually then it pops into place or if you pull the timelinebar away from zero and back to zero then it updates and you can play around sometimes with the source values and it should copy, but this is not the case if you use the same python tag for lets say a helix, it would not update automatically nor if you mess with the timeline bar, and so I was wondering if anyone could figure out if this was due to how cinema4d updates its values/object history over time or anything in particular.

      I am aware parameter linking can be done manually, but GetDataInstance applies it to all parameters instead of you choosing individualy.

      Here is the file:
      ParameterLinking.c4d

      posted in General Talk
      J
      Jonas Mortensen