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
    • Recent
    • Tags
    • Users
    • Login

    Xpresso Node Creation (PYTHON NODE) [SOLVED]

    Scheduled Pinned Locked Moved PYTHON Development
    4 Posts 0 Posters 454 Views
    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.
    • H Offline
      Helper
      last edited by

      On 26/04/2015 at 17:49, xxxxxxxx wrote:

      Hello,

      Simple question. I'd like to create a Python code node inside of an xpresso tag using a separate python script.

      I just can't figure out what the Name of the Operator should be...Here is what one would intuitively think it would be called...

      node2 = nm.CreateNode(nm.GetRoot(), c4d.ID_OPERATOR_ PYTHON , insert=None, x=200, y=200)

      The above command does NOT create the node, obviously because it isn't recognised.

      Any idea where I can find some documentation on all the python operators names in the xpool?

      Kind regards

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        On 27/04/2015 at 05:29, xxxxxxxx wrote:

        Update: Ok so I have found this list of nodes in the documentation.

        https://developers.maxon.net/docs/Cinema4DPythonSDK/help/types/gvnodes.html?highlight=id_operator_formula

        There is strangely a COFFEE node, but there does not appear to be a ID_OPERATOR_PYTHON or similar node? Am I missing something?

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          On 27/04/2015 at 06:41, xxxxxxxx wrote:

          Hello,

          the list you discovered lists all of the basic XPRESSO nodes. Additional nodes from modules like MoGraph or Dynamics are not included. Python is a module in Cinema 4D so the ID cannot be found in that list.

          You can get the operator ID of any given node with GetOperatorID(). The ID of the Python operator is 1022471; there seems to be no symbol for that.

          Best wishes,
          Sebastian

          1 Reply Last reply Reply Quote 0
          • H Offline
            Helper
            last edited by

            On 28/04/2015 at 21:12, xxxxxxxx wrote:

            Thank you. 🙂

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