Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python 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

    Why does dragging parameters into the script window now also carry the object types name beforehand?

    Cinema 4D SDK
    2
    2
    438
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • jenandesignJ
      jenandesign
      last edited by

      R20

      Hello I was wondering why this addition... when you drag an attribute/parameter from the attributes panel into the scripting window to copy the proper baseselect value for a given object, the object type is now added to the beginning....

      I thought it was better the way before- when you could drag the parameter and it would only add the baseselect's label "[xxxxxxx]" which meant there was no need to go back and delete the object name because it wasn't copied.

      For example now in R20 I make a Python Generator, add a user data link to it, and type on the first line of the main code:

          obj = op
      

      After this, I drag the userdata field into the script window after "op", now I have:

          obj = opPythonGenerator[c4d.ID_USERDATA,1]
      

      What a mess. It used to be clean.. I would type obj=op, drag in the user data field and it would have added [c4d.ID_USERDATA,1] with no need to delete "PythonGenerator". With R19 and earlier I would have had "obj=op[c4d.ID_USERDATA,1]" with no need to remove the superfluous object type text.

      Just wondering if there was a reason to add this, it has been irking me for the last few months of heavy scripting use in C4D and it would be awesome if that was rolled back to the way it was- unless of course there is a reason why it's important to keep that I am missing.

      1 Reply Last reply Reply Quote 0
      • r_giganteR
        r_gigante
        last edited by

        Hi Jenandesign, thanks for reaching us.

        With regard to your request, the reason of the change is due to the new Python console brought out since R20 where by dragging a parameter from the UI in the console provides the user with the complete "route" to propelry evaluate the parameter.

        This is by design and won't be reverted back in future releases.

        Best, Riccardo

        1 Reply Last reply Reply Quote 0
        • First post
          Last post