playMaker

Author Topic: Animating CAMERA.RECT[SOLVED]  (Read 2297 times)

Pawel

  • Junior Playmaker
  • **
  • Posts: 93
Animating CAMERA.RECT[SOLVED]
« on: March 16, 2014, 04:36:33 PM »
I am trying to figure out if there is a way to animate the rectangles of of multiple cameras that share a single screen. I know how to do it as a static setup, but I would like to animate the way the screen is divided.

I've attached two images, let's say I'd like to transition from one layout to another  when certain action is triggered... Is there a way to do this with PlayMaker?

I was looking for any action related to camera's Viewport Rect settings, but could not find it anywhere...

Any suggestions?
« Last Edit: March 18, 2014, 08:42:31 AM by jeanfabre »

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4000
  • Official Playmaker Support
    • LinkedIn
Re: Animating CAMERA.RECT
« Reply #1 on: March 17, 2014, 05:05:59 AM »
You can use Set Property to set the Rect property in a Camera component. Drag the Camera component from the Inspector into the Target Object field, the select the Rect property.

You can then use any of the Rect actions under Animate Variables to animate the Rects. E.g., Ease Rect.

EDIT: There are also some videos on the YouTube channel showing how to use Get/Set Property.
« Last Edit: March 17, 2014, 05:07:54 AM by Alex Chouls »

Pawel

  • Junior Playmaker
  • **
  • Posts: 93
Re: Animating CAMERA.RECT
« Reply #2 on: March 17, 2014, 10:14:02 AM »
Thanks Alex. This looks easier then I though and works like a charm!
« Last Edit: March 17, 2014, 10:42:35 AM by Pawel »