Profile Picture

Camera Dolly Zoom (November Sample Script)

Posted By Chuck (RL) Last Year
You don't have permission to rate!
Author
Message
Chuck (RL)
Chuck (RL)
Posted Last Year
View Quick Profile
Trainer

Trainer (910 reputation)Trainer (910 reputation)Trainer (910 reputation)Trainer (910 reputation)Trainer (910 reputation)Trainer (910 reputation)Trainer (910 reputation)Trainer (910 reputation)Trainer (910 reputation)

Group: Administrators
Last Active: Last Month
Posts: 223, Visits: 1.8K
Camera Dolly Zoom ( Sample Script for November 2019)

In the last Python of the Month, the Reallusion Python Team introduced the Camera Auto-Focus sample script exercise which includes fundamental courses on handling timers, using bounding information, linking controls, utilizing camera DOF, among other useful tasks.

This time we'd like to introduce our fourth Python of the Month: Camera Dolly Zoom.  Through this course and its subsequent fundamental courses, you can learn how to returning object types, creating useful message boxes, validating objects, taking advantage of dialog callbacks, and more.



Dolly Zoom is an in-camera effect that utilizes perspective distortion to make the background appear as if it’s changing its size relative to the subject. The visual appearance for the viewer is that either the background suddenly grows in size and detail to overwhelm the foreground, or the foreground becomes immense and dominates the previous setting, depending on which way the dolly zoom is executed. This script simulates the Dolly Zoom effect by animating the camera's Focal Length and positioning according to the current camera settings and the desired Focal Length. Automatic Depth of Field on the target object is an optional setting.
  • 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.7 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.
  • Object Type - Return the object type for the first selected object.
  • Message Box - Create notifications and warning messages in iClone.
  • Item Lister - Learn how to validate objects for listing and removal.
  • Dialog Callback - Understand dialog callbacks at a deeper level.
  • Local Move - Use matrix math to locally translate an object.
For more courses and links to other Python of the Month activities, please visit here.




Reading This Topic