Jump to content

turbid

Regular Member
  • Content Count

    12
  • Joined

  • Last visited

Community Reputation

0 Noble Beginner

About turbid

  • Rank
    C4D Cafe Junior

Profile Information

  • First Name
    bart
  • Last Name
    dabr
  • Location
    warsaw, poland

Hardware | Software Information

  • C4D
    None
  • OS
    win10
  • GPU
    intel/nvidia

Recent Profile Visitors

779 profile views
  1. I was thinking along the lines of : obj[c4d.ID_BASEOBJECT_REL_POSITION, c4d.VECTOR_X].SetKey() Instead of writing all the mess in my post above I guess setting keyframes from a script is not really that common to justify SDK bloat Cheers!
  2. # Set keyframe on object "obj" parameter DescID "par_id", at a specific time and with a specific value # If there is no track, add one # If there is no key, add one based on the default project settings # If the keyframe is already there, then just set the value def set_k(obj, par_id, time, val): track = obj.FindCTrack(par_id) if track is None: track = c4d.CTrack(obj, par_id) obj.InsertTrackSorted(track) curve = track.GetCurve() found_key = curve.FindKey(time) if found_key: key = found_key['key'] else: defkey, dub = doc.GetDefaultKe
  3. Hi, Is there a simple way to just set a keyframe on a given parameter that will do the equivalent of clicking the bullet on the left of the param name in the attribute editor? I know I can do it "the hard way" by getting the actual parameter value and then checking if a track exists, then add the track and set the keyframe from the value that I have retrieved earlier.... i.e. 1. 1. get value 2. see if there is a track and create if not, create curve 3. get track 4. get curve 5. add key 6. set curve back etc. Is there a method that just
  4. Hi, Just a quick question so I don't waste time on drilling into the issue... It seems that joint rotation limits stop working as soon as I enable joint dynamics on the IK tag. Is that how it's supposed to be, or I'm missing something obvious? Cheers!
×
×
  • Create New...