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 in Python. Possible?

    Scheduled Pinned Locked Moved PYTHON Development
    7 Posts 0 Posters 563 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 30/05/2014 at 05:51, xxxxxxxx wrote:

      Is is possible to create an Xpresso node in Python?

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

        On 30/05/2014 at 06:19, xxxxxxxx wrote:

        Hi Rui,

        you can create a node with this code:

          
          XP=c4d.BaseTag(c4d.Texpresso) # create the xpresso tag  
          
          op.InsertTag(XP) # add the xpresso tag   
          
          Node_M=XP.GetNodeMaster()  
          
          # now create the object node  
          
          Bas_Node=Node_M.CreateNode(Node_M.GetRoot(), c4d.ID_OPERATOR_OBJECT, None, 330, 200 )  
        

        you´ll find more informations here:
        <[URL-REMOVED]#GvNode.SetOperatorContainer>

        Cheers
        Martin


        [URL-REMOVED] @maxon: This section contained a non-resolving link which has been removed.

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

          On 30/05/2014 at 07:18, xxxxxxxx wrote:

          I don't mean creating an already existing node inside an Xpresso tag.
          I mean, is it possible to create a new node, just like I can create new tags and objects plugins?

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

            On 30/05/2014 at 08:01, xxxxxxxx wrote:

            With this you have to define your ports an stuff like this by yourself than:

            Bas_Node=Node_M.CreateNode(Node_M.GetRoot(), c4d.ID_GV_OPERATOR_DUMMY, None, 330, 200 )

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

              On 30/05/2014 at 08:07, xxxxxxxx wrote:

              But how can I create a python plugin that is placed in the plugins folder that will appear as a new node in the nodes list of Xpresso?

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

                On 30/05/2014 at 09:44, xxxxxxxx wrote:

                It's not possible with Python (state R15).

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

                  On 31/05/2014 at 04:48, xxxxxxxx wrote:

                  Damn!! 😞

                  Thank you, Niklas.

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