Skip to main content
Known Participant
May 6, 2010
Answered

How can we hide the items (like camera, composition)?

  • May 6, 2010
  • 1 reply
  • 1296 views

Hi,

I have created a camera by programatically using AEGP_CompSuite6::AEGP_CreateCameraInComp( ) in my effect type plug-in. I dont want to be show this camera to User. So, I want to hide the camera from displaying on time panel. I have searched for this in SDK doc, but didn't get anything. can you please tell me is it possible to hide the camera in AE? If yes, how can we do it?

This topic has been closed for replies.
Correct answer shachar carmi

this is all theory.

never tried it.

use AEGP_GetNewStreamRefForLayer for the camera layer.

now that you have a stream ref you could use AEGP_SetDynamicStreamFlag along with AEGP_DynStreamFlag_HIDDEN.

it's intended to work on effect params. maybe it will do the same for your camera layer.

consider not making that layer invisible.

it might be accidentally selected and deleted without the user noticing.

other effects such as "particular" add elements to the comp, but keeps the shown and locked.

perhaps that's the best way to go.

1 reply

shachar carmiCommunity ExpertCorrect answer
Community Expert
May 6, 2010

this is all theory.

never tried it.

use AEGP_GetNewStreamRefForLayer for the camera layer.

now that you have a stream ref you could use AEGP_SetDynamicStreamFlag along with AEGP_DynStreamFlag_HIDDEN.

it's intended to work on effect params. maybe it will do the same for your camera layer.

consider not making that layer invisible.

it might be accidentally selected and deleted without the user noticing.

other effects such as "particular" add elements to the comp, but keeps the shown and locked.

perhaps that's the best way to go.

Known Participant
May 10, 2010

Thanks shachar,

Im able to hide the camera layer from time-panel using the below code

AEGP_StreamRefH   streamPH     = NULL;

err = suites.DynamicStreamSuite3()->AEGP_GetNewStreamRefForLayer(NULL, layerPH, &streamPH);
err = suites.DynamicStreamSuite3()->AEGP_SetDynamicStreamFlag(streamPH, AEGP_DynStreamFlag_HIDDEN, false, true);

I have written the above code in SequenceSetup( ) function under PF_Cmd_SEQUENCE_SETUP command.

Do I need to dispose the strem using AEGP_DeleteStream( ) under PF_Cmd_SEQUENCE_SETDOWN command? is it must and should?

Community Expert
May 13, 2010

the newly created composition is hidden in the time-panel, but it is still visible in Project. How can we hide the composition in the Project ?


you can't.

the best thing you could do is create a folder in the project and call it "TEMP ITEMS" and put your comps in it.

this way even 20 comps will create a minimal clutter for the user to see.