Wanted to show some details of my first script I have been working on since I decided to dive into python for iClone which turned out to be a deep, deep dive.
I've worked out most of the issues but am waiting the next iClone python update to fix some functions that are not working so that I can complete this.
On the right is the color change list where you would create a list of color changes.
Each color change has a starting color and transition and a duration.
Clicking on the color box brings up a color dialog to select your color.
So you would end up with a list of color changes:
For the color changes you can REORDER them by dragging and dropping them within the list, REMOVE them, or ADD another color change.
You can also SAVE the list to a file and LOAD a previously save list from a file or CLEAR the current ist.
At the bottom of the list is the total duration time, for all color changes, in seconds and frames as well as the number of changes in the list.
On the left is the prop list.
This list will automatically update as props are added or deleted from the scene.
As you select props in the scene the they will also be selected in the prop list.
I plan on having selections in the prop list also select the prop in the scene but ... waiting on updated python API.
Once you've created a color change list, selected your prop(s), you would then select the start and end time (via spinbox or slider), select the number of times to repeat the changes and then click the ADD button to add the diffuse color keys.
The "Remove all keys prior" will delete any color diffuse keys (once that function is exposed) prior to adding the new keys.
This project is about 90% completed and already pushing 950 lines.
Doing this project covered many aspect of python and the RL API, which was the point of this project: Learn Python and the iClone API.
It even uses Qt ui files for the layouts (main dialog and color change).
There is still some cleanup to do and then the final coding, once the functions are fixed and exposed.
It was an interesting experience and there is still much to learn about this.
Jeff
Get my Plugin Manager and TaskNotes plugins for iClone.
Check out EZColors and Other products for CTA/CA. EZColors: the easy way to change Render Styled (RS) colors!
See my CTA Tutorials on the YouTube channel CTAStepByStep