Profile Picture

Scripted Bone Rotations Not Showing Up As Motion Or Motion Layer Key Frames

Posted By Lord Ashes 5 Years Ago
You don't have permission to rate!
1
2
3

Scripted Bone Rotations Not Showing Up As Motion Or Motion Layer Key...

Author
Message
4u2ges
4u2ges
Posted 5 Years Ago
View Quick Profile
Distinguished Member

Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)

Group: Forum Members
Last Active: 10 days ago
Posts: 5.3K, Visits: 16.8K
Yes, it is still a bug with CC3+ (default RL characters, converted from CC3 to CC3+ are OK). What enabling Soft Cloth Baking does is adding something to the timeline at the same time as Bones script is running.
It has the same effect as if you add any key (even transform key), after applying the bone script.

This is not the case with regular CC3 characters, which work without baking enabled as Chris has shown.




Lord Ashes
Lord Ashes
Posted 5 Years Ago
View Quick Profile
Distinguished Member

Distinguished Member (22.4K reputation)Distinguished Member (22.4K reputation)Distinguished Member (22.4K reputation)Distinguished Member (22.4K reputation)Distinguished Member (22.4K reputation)Distinguished Member (22.4K reputation)Distinguished Member (22.4K reputation)Distinguished Member (22.4K reputation)Distinguished Member (22.4K reputation)

Group: Forum Members
Last Active: Last Year
Posts: 1.3K, Visits: 1.6K
4u2ges (10/4/2020)
It's Caleb a problem (maybe some other too). If you try it with Caleb first after loading iClone fresh, no other avatars work after that. Need to restart iClone.


I restarted iClone. Loaded Katherine. Ran script. I did not get any key frames until I switched to Bake Animation. Then, upon playing, I got the key frames. The problem I see with this is that if you have a larger scene with other stuff going on, you may not want to bake you animation yet.



"We often compare ourselves to the U.S. and often they come out the best, but they only have the right to bear arms while we have the right to bare breasts"
Bowser and Blue, Busting The Breast
4u2ges
4u2ges
Posted 5 Years Ago
View Quick Profile
Distinguished Member

Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)

Group: Forum Members
Last Active: 10 days ago
Posts: 5.3K, Visits: 16.8K
It's Caleb a problem (maybe some other too). If you try it with Caleb first after loading iClone fresh, no other avatars work after that. Need to restart iClone.

Update: Looks like ANY CC3+ character is a problem :Whistling:




Lord Ashes
Lord Ashes
Posted 5 Years Ago
View Quick Profile
Distinguished Member

Distinguished Member (22.4K reputation)Distinguished Member (22.4K reputation)Distinguished Member (22.4K reputation)Distinguished Member (22.4K reputation)Distinguished Member (22.4K reputation)Distinguished Member (22.4K reputation)Distinguished Member (22.4K reputation)Distinguished Member (22.4K reputation)Distinguished Member (22.4K reputation)

Group: Forum Members
Last Active: Last Year
Posts: 1.3K, Visits: 1.6K
videodv (10/4/2020)
Hi Lord Ashes
Here is the play example as I ran your original script on my system.
Chris



I was not getting the same results until I checked the Bake Animation project setting. Once I did that then it generated the key frames. Are you using that option?  



"We often compare ourselves to the U.S. and often they come out the best, but they only have the right to bear arms while we have the right to bare breasts"
Bowser and Blue, Busting The Breast
videodv
videodv
Posted 5 Years Ago
View Quick Profile
Distinguished Member

Distinguished Member (2.9K reputation)Distinguished Member (2.9K reputation)Distinguished Member (2.9K reputation)Distinguished Member (2.9K reputation)Distinguished Member (2.9K reputation)Distinguished Member (2.9K reputation)Distinguished Member (2.9K reputation)Distinguished Member (2.9K reputation)Distinguished Member (2.9K reputation)

Group: Forum Members
Last Active: 2 Years Ago
Posts: 342, Visits: 12.0K
Hi Lord Ashes

Here is the play example as I ran your original script on my system.



Chris

Lord Ashes
Lord Ashes
Posted 5 Years Ago
View Quick Profile
Distinguished Member

Distinguished Member (22.4K reputation)Distinguished Member (22.4K reputation)Distinguished Member (22.4K reputation)Distinguished Member (22.4K reputation)Distinguished Member (22.4K reputation)Distinguished Member (22.4K reputation)Distinguished Member (22.4K reputation)Distinguished Member (22.4K reputation)Distinguished Member (22.4K reputation)

Group: Forum Members
Last Active: Last Year
Posts: 1.3K, Visits: 1.6K
I have tried both suggestions:
1. To put the stop code at the end. Restart iClone and then run script.
2. To play after running the script.
Neither solution worked for me. In both cases I still not get any key frames or motion indicating that an animation is applied.

BTW, I also discovered that the Play() function does not seem to respect the time provided. The Play() function is supposed to take a start and end time parameter but when I set it for a time interval that should be 150 frames the it plays the whole project time anyway. I am fairly sure that I am providing the correct values since I use the same values to build the animation.



"We often compare ourselves to the U.S. and often they come out the best, but they only have the right to bear arms while we have the right to bare breasts"
Bowser and Blue, Busting The Breast
Lord Ashes
Lord Ashes
Posted 5 Years Ago
View Quick Profile
Distinguished Member

Distinguished Member (22.4K reputation)Distinguished Member (22.4K reputation)Distinguished Member (22.4K reputation)Distinguished Member (22.4K reputation)Distinguished Member (22.4K reputation)Distinguished Member (22.4K reputation)Distinguished Member (22.4K reputation)Distinguished Member (22.4K reputation)Distinguished Member (22.4K reputation)

Group: Forum Members
Last Active: Last Year
Posts: 1.3K, Visits: 1.6K

Hi Lord Ashes
In order to see the keys on the timeline you need to play the sequence this will update the timeline if you just scroll the timeline it will not update the keys, the script addition that I included will do this for you.
Chris.


Thanks. I will give that a try.



"We often compare ourselves to the U.S. and often they come out the best, but they only have the right to bear arms while we have the right to bare breasts"
Bowser and Blue, Busting The Breast
4u2ges
4u2ges
Posted 5 Years Ago
View Quick Profile
Distinguished Member

Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)

Group: Forum Members
Last Active: 10 days ago
Posts: 5.3K, Visits: 16.8K
This whole thing with timeline update is still buggy. I know at least one way to mess it up so that nothing would work with timeline update regardless... until iClone restart.
I am sure there are more ways to screw it up, whenever I have more time I'll do a thorough testing.




videodv
videodv
Posted 5 Years Ago
View Quick Profile
Distinguished Member

Distinguished Member (2.9K reputation)Distinguished Member (2.9K reputation)Distinguished Member (2.9K reputation)Distinguished Member (2.9K reputation)Distinguished Member (2.9K reputation)Distinguished Member (2.9K reputation)Distinguished Member (2.9K reputation)Distinguished Member (2.9K reputation)Distinguished Member (2.9K reputation)

Group: Forum Members
Last Active: 2 Years Ago
Posts: 342, Visits: 12.0K
Lord Ashes (10/3/2020)

Try putting this bit of code after the final loop and before you print "Done" and see if it helps.
#-- Update timeline --#     
RLPy.RGlobal.Stop()
RLPy.RGlobal.SetTime(RLPy.RGlobal.GetTime())

Thanks for the suggestion but it did not help.

Here is a video of what is happening...





Hi Lord Ashes

In order to see the keys on the timeline you need to play the sequence this will update the timeline if you just scroll the timeline it will not update the keys, the script addition that I included will do this for you.

Chris.
4u2ges
4u2ges
Posted 5 Years Ago
View Quick Profile
Distinguished Member

Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)Distinguished Member (22.3K reputation)

Group: Forum Members
Last Active: 10 days ago
Posts: 5.3K, Visits: 16.8K
HI

Try putting this bit of code after the final loop and before you print "Done" and see if it helps.

#-- Update timeline --#     
RLPy.RGlobal.Stop()
RLPy.RGlobal.SetTime(RLPy.RGlobal.GetTime())

Chris


Thanks Chris, worked for me, just had to restart iClone.
Interesting, if you run the script even once, without those 2 lines in freshly opened iClone, then adding them thereafter does not make any difference.
You have to restart iClone and run script with 2 lines added first, then it would work.





1
2
3



Reading This Topic