Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Customize Camera Behavior?

Community Beginner ,
Apr 27, 2017 Apr 27, 2017

Adobe Support threw me to the forums for help here.  I enjoy the idea of the Camera view to Pan/Zoom for my animation, saves an enormous amount time.  Except that I also need buttons on the animation to control it.  Play and Continue.  The animation zooms into a detail, stops and explanation is listed for the detail.  When user is done reading, they would then click 'continue'

Issue is!  The Camera zooms/pans all elements, all layers.

Wouldn't it be great if you could have a layer that isn't affected by the Camera?

Anyone have a clue how to customize (Adobe Support's words, not mine) Animate to do this?

428
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Apr 27, 2017 Apr 27, 2017

The thing that gets zoomed around is MainTimeline. That has a parent of Stage. I tried this:

this.parent.addChild(box);

where box was something on the main timeline. If I scrub the timeline the box gets zoomed and panned with everything else, but when I test movie, the box stays where it is.

That could be a work around.

Translate
Community Expert ,
Apr 27, 2017 Apr 27, 2017

i don't understand the problem, but you can't control individual layers.  layers don't exist in the published files.   they exist for content creation convenience.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 27, 2017 Apr 27, 2017

The thing that gets zoomed around is MainTimeline. That has a parent of Stage. I tried this:

this.parent.addChild(box);

where box was something on the main timeline. If I scrub the timeline the box gets zoomed and panned with everything else, but when I test movie, the box stays where it is.

That could be a work around.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 27, 2017 Apr 27, 2017

You're genius Colin!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Apr 28, 2017 Apr 28, 2017

Thanks so much for the help! 

If I'm reading that correctly, this.parent is equal to Stage, then addChild(box); is making 'box' a child of Stage instead of being a child of MainTimeline.

Currently, this isn't working for me. 

You are applying the script to a frame of the Timeline, correct?  Or, where am I missing the ball on this one.

Anymore insight is greatly appreciated!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 28, 2017 Apr 28, 2017

Your code is different to the code I gave. Doing addChild(box) would do nothing, other than make the box be the top most object on MainTimeline, which is where the code goes. this.parent.addChild(box) would add the box to the parent of where the code is, and the parent of MainTimeline is Stage. So, this.parent.addChild() is much the same as stage.addChild(), which does also work.

It could be that stage.addChild(box) would be a safer way to work, that way the code can live anywhere.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 28, 2017 Apr 28, 2017

Man, thar thread title is not at all descriptive of what you actually wanted.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Apr 28, 2017 Apr 28, 2017

What would have been a better title so I can do a better job in the future?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 28, 2017 Apr 28, 2017

I think your title was ok, given that Adobe support had told you that it was custom camera behaviour that you wanted. Your first post explained things well.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 28, 2017 Apr 28, 2017

One that actually describes what you want. Like in this case, "Exclude clips from camera zooming". Or "Overlay clips on camera view".

Y'know, you don't even need the camera to do what the camera does. It's just a convenience for animators. You can nearly as easily put your content in a movie clip, then put that clip on the main timeline and use tweens on it to pan/zoom/whatever to your heart's content. That way you retain full control over where all your other clips are displayed.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Apr 28, 2017 Apr 28, 2017
LATEST

Colin and Clay, thank you both.  ClayUUID I didn't think of that approach and will try, that may solve a lot of hassle in the end.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines