AEGP_LayerFlag_LAYER_IS_3D
Hi!
I got a crazy problem with AEGP_LayerFlag_LAYER_IS_3D in a layer effect. I'm trying to make a layer automatically collapsed when 3D, and uncollapsed when 2D.
Here's my code:
ERR(suites.PFInterfaceSuite1()->AEGP_GetEffectLayer(in_data->effect_ref, &layerH));
ERR(suites.LayerSuite7()->AEGP_GetLayerFlags( layerH, &flags));
if (flags & AEGP_LayerFlag_LAYER_IS_3D) {
if (flags & ~AEGP_LayerFlag_COLLAPSE) {
ERR(suites.LayerSuite7()->AEGP_SetLayerFlag( layerH, AEGP_LayerFlag_COLLAPSE, TRUE));
} else {
if (flags & AEGP_LayerFlag_COLLAPSE) {
ERR(suites.LayerSuite7()->AEGP_SetLayerFlag( layerH, AEGP_LayerFlag_COLLAPSE, FALSE));
Using the same code with AEGP_LayerFlag_ADJUSTMENT_LAYER instead of AEGP_LayerFlag_LAYER_IS_3D works just fine...
Is there something I don't get about 3D layers?
Thanx,
François
PS: I tried with && instead of &, with LayerSuite1() instead of LayerSuite7()...
Hello Shachar! :-)
It works fine with the parameter, but I got a problem with "if (flags & ~AEGP_LayerFlag_COLLAPSE) {DO SOMETHING}" now...
It doesn't work this way, I have to write: "if (flags & AEGP_LayerFlag_COLLAPSE) {} else {DO SOMETHING}"
Is there a mistake in writing "(flags & ~AEGP_LayerFlag_COLLAPSE)", or do we get closer to the issue?
Cheers,
François
Similar Messages
Maybe you are looking for
-
Email link to a pdf with text anchor on web site
I'm trying to create an email with a link to a web site's pdf file with a text anchor. I want the link to take the reader not just to the pdf file but to a certain location in the pdf file. I'm creating the pdf with the text anchor in Indesign 4. It'
-
OS Windows 7 Home Edition. Firefox Version 3,6,16 New tab does not open when clicking on tab on right of tab bar or New Tab in file menu. Have other users experienced this and what is the solution to this problem?
-
o7_dictionary_accessibilty parameter : does it influence the security of the DB ? If yes, how ? If no, why not ? Thanx a lot ! Regards, Luc
-
Do you have to have i cloud to down load your home music library im having a tough time with it
I HAVE ANI PAD 2 ANDI CANT GET MY MUSIC INTO I TUNES. I SYNC IT FROM WMP AND IT WENT MY MUSIC FILE BUT IT WONT PLAY OR GOT I TUNES. CAN SOMEONE HELP
-
The Italics font is extremely frustrating.
Hi guys. I'm a writer, and I'm having a frustrating time with the italics command. I don't use italics often- But when I do, I find that pressing "Command" and the letter "i" sometimes results in the spotlight menu popping up. This is extremely irri