Profile Picture

Can all the keyframes for a prop be found using Python?

Posted By Data Juggler 6 Years Ago
You don't have permission to rate!

Can all the keyframes for a prop be found using Python?

Author
Message
Data Juggler
Data Juggler
Posted 6 Years Ago
View Quick Profile
Distinguished Member

Distinguished Member (13.9K reputation)Distinguished Member (13.9K reputation)Distinguished Member (13.9K reputation)Distinguished Member (13.9K reputation)Distinguished Member (13.9K reputation)Distinguished Member (13.9K reputation)Distinguished Member (13.9K reputation)Distinguished Member (13.9K reputation)Distinguished Member (13.9K reputation)

Group: Forum Members
Last Active: Last Year
Posts: 1.8K, Visits: 5.6K
As with all my Python questions, I will preface with if IClone handles this, please educate me as I only know enough to know I do not know very much.

Here is my current need, and I will write a Python script if it can be done (I just like to know what I am trying is possible before I waste extra time, my specialty).

I have a scene that I have spent a lot of time on already. I have lots of keyframes regarding a drone, and all the sub props and parent props that go with it.

About 3 weeks after the scene is all built, I got to the camera place of seeing my drone next to a character and / or a 'shop' prop and the drone was too big.

So, I decide to change the scale from 60% to 40% that applies to x, y and z due to the scale being locked, and I thought I had solved my issue.

All the keyframes previously applied to this drone are still at 60%, so what am I doing for the 20th time is finding every keyframe for this prop and correcting the scale value. 

So what I need is a Python script that lets me find all keyframes for a given prop, and modify a given attribute at every keyframe after the keyframe specified, or the IClone built in way that I am just not in the know about because all the suggestions here are from well intended book learnin' types, that expect me to read the directions and this is not how my old brain files new information.

Currently I am finding every keyframe and manually changing the Scale value, and this is where being a programmer it makes one feel very inferior to a machine. I know machines are going to take my job in the next 20 to 30 years, but in the mean time I would like to still tell it what to do in this case, and not waste 20 minutes setting the scale at every keyframe.

I also cannot remove the object animation as it has many other things like ducking out of the way of another prop that are pretty important.

And this brings up a bonus question. I probably know less about game programming than most living people unless the subject is pong, however even pong had collision detection and I am wondering if IClone has anything to that extent?

To be clear, if I am moving a prop a long a path, whether it be an IClone Path or just moving the prop from point x,y,z to x2,y2,z2, it would be super awesome if there was an 'avoid collisions' option that the prop smoothly avoided so it doesn't try to go through walls or under the entire world, etc?

Even if it ran into a collision and a popup window asked 'Go Around Left, Go Around Right, Go Above, Stop, etc.

The more I have used IClone, the more I realize the less I do and the more it does, the more realistic it looks, so this seems like a cool feature if not already thought of by someone.

Thanks

Here is a one minute preview of the Drone, you can stop listening after the animation part unless you code in C# / SQL you might find it interesting. (the audio is inconsistent, this is a temporary video until the full one is done):

https://www.youtube.com/watch?v=v0-W7bJR_WA















Creator of the free website:
PixelDatabase.Net
A Free Online Text Based Image Editor
75% of original size (was 670x19) - Click to enlargehttps://forum.reallusion.com/uploads/images/6e6663e2-0ecf-447a-ab3d-d49d.png


Threaded View

Threaded View
Forum Post Can all the keyframes for a prop be found using Python? By Data Juggler ( 6 Years Ago )
Forum Post To the question of scale reset for all created keyframes. Do you have... By 4u2ges ( 6 Years Ago )
Forum Post To answer the question, no I do not have a curve editor. The way you... By Data Juggler ( 6 Years Ago )
Forum Post Yes, it is an add on. A little bit on expensive side, but well worth... By 4u2ges ( 6 Years Ago )
Forum Post I remember seeing that when I first started having my paychecks... By Data Juggler ( 6 Years Ago )
Forum Post Not really that hard. The interface it pretty much intuitive and there... By 4u2ges ( 6 Years Ago )
Forum Post I purchased Curve Editor this morning, and I was all excited to use... By Data Juggler ( 6 Years Ago )
Forum Post "please educate me as I only know enough to know I do not know very... By SeanMac ( 6 Years Ago )
Forum Post @SeanMac I have a cousin named Sean McDonald. Is that your name also?... By Data Juggler ( 6 Years Ago )
Forum Post Hi Data Juggler thanks for that. I also have fifty years at it if... By SeanMac ( 6 Years Ago )
Forum Post @Sean Thanks. Yes, honesty and a good work ethics go a long way. By Data Juggler ( 6 Years Ago )
Forum Post @Data Juggler. Check my edit re Curve Editor wonderful software that... By SeanMac ( 6 Years Ago )
Forum Post You may want to have a look at these scripts as well Here Chis. By videodv ( 6 Years Ago )
Forum Post Thanks Chris, those are actually the scripts I was wanting, all in one... By Data Juggler ( 6 Years Ago )
Forum Post I tried curve editor again on new project, and it works. When I open... By Data Juggler ( 6 Years Ago )
Forum Post Hi Data Juggler. Thanks for persevering. It does, as you hint, sound... By SeanMac ( 6 Years Ago )
Forum Post When an App crashes there is normally a crash dump file saved by... By wires ( 6 Years Ago )
Forum Post Next weekend I will see if it works on a smaller size project.... By Data Juggler ( 6 Years Ago )
Forum Post Posting an update. I got Curve Editor to work by uninstalling the... By Data Juggler ( 6 Years Ago )
Forum Post I have 32 gig of memory, and 11.1 video memory. By Data Juggler ( 6 Years Ago )



Reading This Topic

0 active, 0 guests, 0 members, 0 anonymous.
No members currently viewing this topic!