Script or method to Autokeyframe/Autorecord

User avatar
Draise
Captain
Posts: 3200
Joined: 21 Sep 2009, 19:33
Type the number ten into the box: 0
Location: Bogota, Colombia

Script or method to Autokeyframe/Autorecord

Post by Draise »

Does anyone have a method/script to auto keyframe/record keys in WS of trueSpace?
User avatar
trueBlue
Captain
Posts: 5548
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Script or method to Autokeyframe/Autorecord

Post by trueBlue »

Yes, here is one that uses FPN as a camera:
viewtopic.php?p=13972#p13972"
User avatar
Draise
Captain
Posts: 3200
Joined: 21 Sep 2009, 19:33
Type the number ten into the box: 0
Location: Bogota, Colombia

Re: Script or method to Autokeyframe/Autorecord

Post by Draise »

Sorry to bring this back up, but I still haven't found something that will auto keyframe anything on the timeline, other than the FPN camera.

It would be awesome that everytime I move the timeline, it would create a keyframe of the selected key attributes, without having to kit "record keyframe".

What is the keyframe bit of code? And how can I get another bit of code to read the timeline frame, do an "if changed" action to then activate the "record keyframe" action?
User avatar
trueBlue
Captain
Posts: 5548
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Script or method to Autokeyframe/Autorecord

Post by trueBlue »

Here you go. I took out the Camera and commands that activated FPN. I recomend you set your Animation - Play Range "End" to a very larger number. IE 3000 or more as it will not record beyond that value. Timer set at 300 and a Mutiplier of 5 seems the best for me.
Keyframer.zip
(31.36 KiB) Downloaded 242 times
After reading your post again, you could do this too.
Hook a Timer to a script with this command:
RsAnim.SetKeyFrame("", RsTime.CurrentTime())
Attachments
Capture.PNG
Capture.PNG (10.06 KiB) Viewed 4860 times
User avatar
Draise
Captain
Posts: 3200
Joined: 21 Sep 2009, 19:33
Type the number ten into the box: 0
Location: Bogota, Colombia

Re: Script or method to Autokeyframe/Autorecord

Post by Draise »

Thanks trueBlue! It's nearrrrrly the weekend so I can experiment with it!

So the current script has an auto keyframe for every keyframe? Dammit, I'm too curious, I'm gonna experiment with it now.

Thanks. Where do you learn or find all these commands?
User avatar
trueBlue
Captain
Posts: 5548
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Script or method to Autokeyframe/Autorecord

Post by trueBlue »

Here:
:? LE.OpenLocation("/Toolbar Prototypes Encapsulator")
User avatar
Draise
Captain
Posts: 3200
Joined: 21 Sep 2009, 19:33
Type the number ten into the box: 0
Location: Bogota, Colombia

Re: Script or method to Autokeyframe/Autorecord

Post by Draise »

Thanks trueblue!

I'll be trying it out today, now that I have some time to myself!

You must think I'm dumb or something, but learning how to find these commands and script them is theoretically easy, but.. ehm....... :oops: not.. for me.
User avatar
trueBlue
Captain
Posts: 5548
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Script or method to Autokeyframe/Autorecord

Post by trueBlue »

I do not think your are dumb at all, but I do think you really cleaver. I've followed your progress with tS7 and I am impressed with what you have acomplished and your art. My last statement is true. Anytime I need to find a command, I look in the toolbars.
stan
Master Chief Petty Officer
Posts: 584
Joined: 21 May 2009, 17:20

Re: Script or method to Autokeyframe/Autorecord

Post by stan »

is the ts 7.6sdk class list not posted anywhere? That is where most commands and data classes are with examples by Norm. Some classes not listed as it was not finished. run RsApp.Help(); to generate the command and node xmls in the ts folder if you what to use the runcmd versions.

Return to “Animation”