|
Chuck (RL)
|
Chuck (RL)
Posted 7 Years Ago
|
|
Group: Administrators
Last Active: 4 Years Ago
Posts: 227,
Visits: 2.1K
|
Camera Auto-Focus ( Sample Script for September 2019)
In the last Python of the Month, the Reallusion Python Team introduced the Audio Driven sample script exercise which includes fundamental courses on creating progress bars, animating materials, making audio visualizers, among other useful tasks.
This time we'd like to introduce our third Python of the Month: Camera Auto-Focus. Through this course and its subsequent fundamental courses, you can learn how to manage a timer, query an objects bounding information, linking controls, and much more.
Auto-Focus can be used to automatically calculate the DOF (Depth of Field) distance and range for the current camera according to the viewing distance of a selected object. This script operates and updates in near real-time.- You can download the script from the Marketplace.
- To explore how it works, please visit the Python Wiki.
- To get the source code, please visit our GitHub.
Important Notice: iClone 7.6 is Required!If you have any questions about the plug-in and the sample code, please feel free to let us know by replying to this post.
Relevant Fundamental Courses
Please be sure to start from the fundamental courses to help you understand how this sample plug-in works.- Stopwatch - Demonstrates the usage of the timer class and handling the timer callback events by creating a stopwatch inside iClone.
- Bounding Info - Goes over the handling of bounding area data in iClone and how to derive useful bounding box size information from it.
- Linked Controls - How to link custom user controls made with QT with those of the native iClone interface, where changes to one will be reflected on the other.
- Blurry Vision - Detailed explanation on creating, setting, and keying the DOF settings for the camera.
- Align to Camera - How to align props in front of the current camera based on a user defined distance.
For more courses and links to other Python of the Month activities, please visit here.
Contest Update

We would like to take the time to thank each and everyone one of you who have participated in the Ultimate Script Mode Contest. However, due to the low number of contestants, we have decided not to continue these prize events for the time being. That being said, please stay tuned for possible events in the future and keep the buzz alive around the forums. Everyone is encouraged to openly discuss the iClone Python API so that we at Reallusion can continue to improve upon it and deliver the features you want. To keep abreast with the latest news and resources on iClone OPEN, click here.
|
|
toystorylab
|
toystorylab
Posted 7 Years Ago
|
|
Group: Forum Members
Last Active: 3 Months Ago
Posts: 4.6K,
Visits: 29.9K
|
Cool, sounds interesting, will check that out right now... Maybe this will convince me to start using DOF in my animations ;)Thanx!
Toystorylab on Vimeo : Crassitudes (my "Alter Ego") on Youtube: 
|
|
3dtester
|
3dtester
Posted 7 Years Ago
|
|
Group: Forum Members
Last Active: Last Year
Posts: 999,
Visits: 2.2K
|
Oh yes, that sounds good :) Thank you!
|