Skip to content

Instantly share code, notes, and snippets.

@xcloudx01
Created June 6, 2017 03:34
Show Gist options
  • Save xcloudx01/1d93f8e84aa50275f5d56b1d48c55e6f to your computer and use it in GitHub Desktop.
Save xcloudx01/1d93f8e84aa50275f5d56b1d48c55e6f to your computer and use it in GitHub Desktop.
3dsmax animate rotate objects 90° on all axis
//Creates animation moving the object(s) 90 degrees on x y z to help with skinning
macroScript AutoAnimatedSkinHelp
category:"Animation Tools"
buttonText:"AutoAnimatedSkinHelp"
tooltip:"AutoAnimatedSkinHelp"
Icon:#("Bip_Curve",19)
(
frame = 0
sliderTime = 0f
set animate on
for obj in selection do (
deleteKeys obj #allKeys
addNewKey obj (frame)
addNewKey obj (frame-10) --just incase
addNewKey obj (frame+20)
addNewKey obj (frame+40)
addNewKey obj (frame+60)
addNewKey obj (frame+80)
addNewKey obj (frame+100)
addNewKey obj (frame+120)
at time (frame+10) obj.rotation.controller[1].value += 100
at time (frame+30) obj.rotation.controller[1].value -= 100
at time (frame+50) obj.rotation.controller[2].value += 100
at time (frame+70) obj.rotation.controller[2].value -= 100
at time (frame+90) obj.rotation.controller[3].value += 100
at time (frame+110) obj.rotation.controller[3].value -= 100
frame += 120
)
set animate off
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment