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

    Creating Splines & sticking points to Objects

    Scheduled Pinned Locked Moved SDK Help
    1 Posts 0 Posters 142 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 01/11/2010 at 15:52, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   12.028 
      Platform:    Mac  ;  Mac OSX  ; 
      Language(s) :       PYTHON  ;

      ---------
      hey!

      based on http://forums.cgsociety.org/showthread.php?f=182&t=929169 this thread, i came up with a similar idea to dive little more into python development.

      my idea was, that i have a parent object. Under this partend Objects, you can than put your child objects you want to connect to the parent object via splines. (see screenshot 1).

      At the moment i took a python generator as the parent object, and put 5 cubes beneath it, to test the stuff. When i m hitting the "update generator" button in the python generator ... it creates 5 splines exactly the way i want them to be created. (screenshot 2).

      now to my question: a) at the moment those splines are created everytime i m doin some changes in the generator, how do i get rid of this?
      and b) (the main question) what i m aiming for, would be the following:
                -when i want to animate one of this cubes (after the splines where created) i want the splinepoint (the one at the position of the cube) to stick to the cube´s position. but i dont have any idea how to realize that. especially as i need some things to just get executed once (the spline creation) and other things (comparing and sticking the point and the cube´s position) on a per frame basis.

      any help very welcome 🙂

      cheers

      alex

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