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

    SplineGUI questions

    Scheduled Pinned Locked Moved PYTHON Development
    2 Posts 0 Posters 297 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

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 03/12/2011 at 12:20, xxxxxxxx wrote:

      Here's a simple example of using the splineGUI:https://sites.google.com/site/scottayersmedia/MySplineGUItag.zip

      #Edit:
      Never mind guys. I kept working on it until I finally got it all working.
      My brain is totally fried from starring at this thing all weekend. 🤢

      I'll leave the file posted here in case anyone needs a boost getting started with the splineGUI.
      I don't even want to think about splineGUI's for the next few days😂

      -ScottA

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

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 03/12/2011 at 14:45, xxxxxxxx wrote:

        I don't have much time to test your plugin now, but I did take a quick look into the source.

           def Execute(self, tag, doc, op, bt, priority, flags) :  
          
          bc = tag.GetDataInstance()     #Get the tag's container so we can use the various gizmos in it  
         **     mysplineGUI = c4d.SplineData()**  
            if mysplineGUI:   
            mysplineGUI.SetKnot(index=0, vPos= c4d.Vector(0,0,0)) #<-------Does not work!!!  
            
          return True
        

        Why do you create a new SplineData instance here ? It does not have any reference to the one in the gui, of course this will not work. 🙂 Make the SplineData created in the Init method an attribute and access it where you need it.

        Cheers, !

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