Announcement

Collapse
No announcement yet.

LC pass and MAXScript

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • LC pass and MAXScript

    Hello,

    I'm currently writing a script to gather several things we use in everyday work, and now I'd like to automate a few processes, like LC prepass for camfly for example. I'm not very very skilled with mxs, so I'm facing a problem with maxscript : would anyone know how to collect the first and last keys frames of the active camera and use them to set current animation range to fit them, please ? I'm a bit blocked with this one right now, despite the searches I made in mxs help file ...

    Many thanks in advance for any help !

    Regards.
    Nicolas Caplat
    www.intangibles.fr

  • #2
    Ok, it seems I've made a (little) step forward ... thinking about collecting active camera keyframes in an array, and then use the first and last elements of this array to define new animation range so that LC and IrrMap prepasses are done automatically only on this range. BUT my problem is actually to collect active camera keyframes .... only frames values ! I'm stuck again :s

    Any help would be welcome

    Thanks !
    Nicolas Caplat
    www.intangibles.fr

    Comment


    • #3
      Ok, for those interested, I finally found

      Code:
      actCam = getActiveCamera()
      actCamPosCtrl = actCam.position.controller
      actCamPosMin = amin actCamPosCtrl.keys[1].time
      actCamPosMax = amax actCamPosCtrl.keys[actCamPosCtrl.keys.count].time
      
      animationRange = interval actCamPosMin actCamPosMax
      Nicolas Caplat
      www.intangibles.fr

      Comment


      • #4
        I see you found it out already

        Best regards,
        Vlado
        I only act like I know everything, Rogers.

        Comment

        Working...
        X