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

    get rotation value

    Scheduled Pinned Locked Moved PYTHON Development
    2 Posts 0 Posters 273 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 09/12/2013 at 10:31, xxxxxxxx wrote:

      hi

      i generate a bunch of objects with that function - but i don`t get the right rotation values - the object will effect by a AlignToSpline Tag.

      even if i drag the values into the Console it get a Fail

      hope one can give me a advice - Thanks

      newclone = plate[1].GetClone(c4d.COPYFLAGS_NO_BITS)
                              doc.InsertObject(newclone, parent=bruchobejct)
                              #newclone.InsertUnderLast(bruchobejct)
                              newclone.SetName(Splinetarget.GetName()+' '+str(plate[0])+str(i))
                              nc_as = newclone.GetTag(5699)
                              nc_as[c4d.ALIGNTOSPLINETAG_LINK] = Splinetarget
                              nc_as[c4d.ALIGNTOSPLINETAG_POSITION] = ncas_pos
                              nc_as[c4d.ALIGNTOSPLINETAG_TANGENTIAL] = 1
                              nc_as[c4d.ALIGNTOSPLINETAG_AXIS] = 0
                              print newclone.GetRelPos()
        
      
      
      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        On 09/12/2013 at 11:57, xxxxxxxx wrote:

        whats a 'fail' in the console for you ? however, if you do instantiate an object any tags on it won't
        take effect until the next pass.

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