Announcement

Collapse
No announcement yet.

is this possible in maxscript?

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

  • is this possible in maxscript?

    Hi

    I was wondering if somebody with maxscript experience could give me a pointer before
    I start reading the manual.
    Basically I would like to know if it is possible to control the twist of a loft object using maxscript.
    I max the script this is controlled by using a script

    Thank you

  • #2
    yep, it is possible and pretty simple depending on how you want to derive the twist amount.

    If you open up the Maxscript listener you can get the code to use.
    Eric Boer
    Dev

    Comment


    • #3
      Thank you rerender

      I have done some scripting but I am new to maxscript so please excuse my ignorance

      I have opened maxscript listener and used the twist deformation to twist al loft
      This brings up a graph, however as you modify the graph no new lines of code appear in the maxlistener window

      Comment


      • #4
        I believe the recorder defaults to disabled in 9 so you'll need to pick "enable" in the MacroRecorder menu, also make sure you are seeing the top biege panel of the recorder.

        here is a script that will update the twist at every frame.

        fn twist_it = $.modifiers[#Twist].angle = sliderTime*20

        fn twst = twist_it()

        registerTimeCallback twst

        --unregisterTimeCallback twst
        the remmed out line will disable the callback

        and it will crash unless an object with a twist modifier is selected
        Last edited by RErender; 29-11-2007, 10:20 PM.
        Eric Boer
        Dev

        Comment


        • #5
          I'm afraid that it's not possible.

          The Loft object is old, old, old school & was created before MaxScript was layered on top of Max. So it's next to impossible to gain any control over it via scripting.

          Sorry!



          *EDIT* - Just thought I should clarify that you can access the SubAnims of the points on a deformation curve IF they already contain animation.
          Last edited by AJ Jefferies; 30-11-2007, 03:15 AM.
          MDI Digital
          moonjam

          Comment


          • #6
            Thank you for the pointers, so I can’t do it from inside the loft, but I could do it using the twist modifier like Rerender suggested

            Comment


            • #7
              ah crap, I missed that it was the twist of a loft

              sorry to get your hopes up, I guess all is not wasted though if you can use the modifier.
              Eric Boer
              Dev

              Comment

              Working...
              X