Profile Picture

Does anyone know how to apply a transition type of Linear to an existing key frame?

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

Does anyone know how to apply a transition type of Linear to an...

Author
Message
Data Juggler
Data Juggler
Posted 4 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: 9 Months Ago
Posts: 1.8K, Visits: 5.6K
I added a free prop and python script to the marketplace today.

https://marketplace.reallusion.com/newton%27s-cradle

The content uploader showed me a message one or more files is missing, so someone tell me if the prop works or not.

The Python script is located here:
https://github.com/DataJuggler/PythonScripts

And the file you want is called Newton's Cradle.py.

I added code to try and apply a transition of Linear, but I had to comment it out because it messed up everything.

def ChangeTransitionType(control, currentTime):
    key = RLPy.RTransformKey()
    key.SetTime(RLPy.RTime(currentTime))
    key.SetTransitionType(RLPy.ETransitionType_Linear)
    
    # add this key
    control.AddKey(key, 0)

But this messed up the scale of the Cylinder1 and Cylinder5 later in the video.

https://forum.reallusion.com/uploads/images/12cd3cb4-b56e-4659-9000-9119.png


Is there a way to update an existing key, or is there something I am missing?

I noticed the Transform values for the scale of the cylinder after the "mess up" is all set to 100, so I guess I may need to apply the existing scale with it, but I am not sure.

Here is a short video:


Any help is appreciated. 

Thanks



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





Reading This Topic