Profile Picture

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

Posted By Data Juggler 5 Years Ago
You don't have permission to rate!
Author
Message
Data Juggler
Data Juggler
Posted 5 Years Ago
View Quick Profile
Distinguished Member

Distinguished Member (12.5K reputation)Distinguished Member (12.5K reputation)Distinguished Member (12.5K reputation)Distinguished Member (12.5K reputation)Distinguished Member (12.5K reputation)Distinguished Member (12.5K reputation)Distinguished Member (12.5K reputation)Distinguished Member (12.5K reputation)Distinguished Member (12.5K reputation)

Group: Forum Members
Last Active: 5 hours ago
Posts: 1.7K, Visits: 5.4K
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
https://forum.reallusion.com/uploads/images/6e6663e2-0ecf-447a-ab3d-d49d.png

Edited
5 Years Ago by Data Juggler
SeanMac
This post has been flagged as an answer
SeanMac
Posted 5 Years Ago
View Quick Profile
Distinguished Member

Distinguished Member (5.0K reputation)Distinguished Member (5.0K reputation)Distinguished Member (5.0K reputation)Distinguished Member (5.0K reputation)Distinguished Member (5.0K reputation)Distinguished Member (5.0K reputation)Distinguished Member (5.0K reputation)Distinguished Member (5.0K reputation)Distinguished Member (5.0K reputation)

Group: Forum Members
Last Active: Last Year
Posts: 416, Visits: 3.4K
"please educate me as I only know enough to know I do not know very much."
@Data Juggler

That's as educated as anybody can get. :-)

Regards SeanMac


videodv
This post has been flagged as an answer
videodv
Posted 5 Years Ago
View Quick Profile
Distinguished Member

Distinguished Member (2.8K reputation)Distinguished Member (2.8K reputation)Distinguished Member (2.8K reputation)Distinguished Member (2.8K reputation)Distinguished Member (2.8K reputation)Distinguished Member (2.8K reputation)Distinguished Member (2.8K reputation)Distinguished Member (2.8K reputation)Distinguished Member (2.8K reputation)

Group: Forum Members
Last Active: Last Year
Posts: 342, Visits: 12.0K
You may want to have a look at these scripts as well Here

Chis.



Reading This Topic