Turn Down Opacity or Hide Layer

Hi @ everybody,
1) I would like to turn on/off the layer (toggle hide) or turn down the opacity to 100%. Can you explain me how i can do that?
I did a littl research and found just one forum post about opacity:
PF_compositeMode
    compositeMode.opacity   = PF_MAX_CHAN8; // 0 - 255
would be nice if someone could give me a hint
2) I've played around with the "resize"-example by adding currentframenumber (in-data->current_time / in-data->time_step) to the border-size to give it a dynamic changement. I've recognized that it only works when i add keyframes to that effect. I think i did not totally understand how to handle with specific variables.
the change i've made:
out_data->width  = 2 * static_cast<A_long>(border_x) + params[0]->u.ld.width +  6* (in_data->current_time / in_data->time_step);
out_data->height = 2 * static_cast<A_long>(border_y) + params[0]->u.ld.height + 6* (in_data->current_time / in_data->time_step) ;
i thought, that as soon as i click play, the timeline is increasing, that the changes will be made.
by the way what is
u.ld.width

You can use the AEGP_SetLayerFlag like every other suite function. Have a look at the following code snippet.
AEGP_SuiteHandler suites(in_data->pica_basicP); //the suite handler
AEGP_LayerH your_layer = whatever your layer is
A_Boolean valueB = FALSE; //True if you want to turn it on
suites.LayerSuite6()->AEGP_SetLayerFlag(your_layer,AEGP_LayerFlag_VIDEO_ACTIVE,valueB);
Looking at your expression, there is no way you can achieve that using layer flags, because they are not keyframed. So you have to use the opacity of the layer and streams. To understand streams, there are many example projects in the SDK like Streamie etc etc.,
But, I highly suggest you to do this using AE Scripting instead of going in the plugin route. Trust me, it saves you a lot of time and debugging.
If you are that particular of creating a plugin, another way is to calculate your time interval based on the time given by the In_data and then fill the image buffer with NULL (Basically, transparent pixels) so that it gives you a zero opacity effect. That'll save you from using streams.
BTW, I didnt see your expression in great detail, but isn't that similar to the "Strobe Light" effect that comes with AE by default. I am not sure, but you might wanna have a look at it.

Similar Messages

  • Opacity & transparency related layer styles lost on rasterize/flatten/merge down (cs6)

    So I'm working on a project and I'm making a button and I have come across an issue that I don't normally have with this particular button...I'm not sure why it's happening or how to fix it...but it's pretty annoying. I'm wondering if anyone can help out or if it's a known bug or anything like that!
    So, I have three folders for the three different states, and within each folder are multiple layers, some with layer styles (it seems to be gradients that are playing up here, and opacity related), some with no layer styles but just lowered opacity. I need to flatten each of the folders to create the button sprites. The problem is...I go to flatten the folder and it appears to turn off any gradient related layer styles, and anything at a lowered opacity is ramped up to 100%. I tried going through and rasterizing the invidiual offending layers. Same problem. I tried creating blank layers and merging down the offending layers. Same problem.
    I'm stumped! Image examples below:
    This problem is messing with my mojo! Any help appreciated!! (and yes, my adobe is all patched up and updated)... I feel like I haven't had to deal with problems flattening transparency for many versions....

    Generally speaking you can't expect to collapse groups of adjustment layers into a single layer and hope for much of anything useful to come of it.
    If you've gotten Photoshop showing what you want to see, what's the problem with leaving the groups as they are, then just doing Save As (e.g., PNG) to store your work products?
    Can you save a small PSD file and make it available online, so we can look carefully inside it to see what you're doing?
    -Noel

  • Hide layer preview thumbnails in .ai 18.1.0?

    I cannot hide layer preview thumbnails in illustrator 18.1.0 anymore (in layerpanel options). Since it slows things massively down I would be glad to have a workaround. Does anybody know?
    Kind regards
    Patrick

    Looks like a bug to me.
    Adobe - Feature Request/Bug Report Form

  • How to capture show layer and hide layer event in photoshop through a plugin???

    How to capture show layer and hide layer event in photoshop through a plugin???for mac

    Use the Listener plug-in found in the SDK to see how you can monitor the show/hide layer event. You can also use the Getter plug-in to show what information you can find out about the current state of Photoshop.

  • Am I the only one who keept turning down Infinity?

    With all the posts on these forums from people complaining that the Infinity roll-out in their area has been delayed again, I wonder if I'm the only one who repeatedly turns down BT's offers to upgrade to Infinity?
    The trouble is that I re-contracted earlier this year to get a better deal on my broadband and phone.  In addition to tweaking the package I was on, BT gave me a £6 per month discount on every bill.
    At the time, I didn't consider that Infinity was likely to arrive on my exchange any time soon, because it's a small edge-of-town one, and not even upgraded to 21CN yet.  Nevertheless, while BT Wholesale have dithered over upgrading the exchange to ADSL2/2+, Openreach have been busily laying fibre and upgrading cabinets.  So my exchange now has Infinity, but only 8M ADSL.
    I've now had three phone calls from BT salespeople, in addition to the letters and emails, all trying to sell me Infinity.  And all expect me to pay the full price with no discount.
    Quite frankly, I don't really need more than 8M at the moment, and I'd rather keep the discount.  With any luck, the exchange will be upgraded at the end of this year (it's due to be done in December), so I may be getting close to 20M anyway by the time renewal comes around.

    For years my average download speed was approx` 5Mb to 6Mb. Then unexpectedly a few weeks back whilst doing a random BT-Speed Test I was surprised (nicely surprised) to find that my connection speed was up to 19Mb and my new download speed was nearly 17Mb. I`d no emails from Bt. The exchange where I live is not in line for infinity for years (according to the engineer I spoke to who works there). But with the connection/download speed I have now, I`m not bothered, plus the new negotiated contract with BT (which runs for another six months yet) I`m a very happy chappy
    . . . it must be remembered that the sea is a great breeder of friendship. Two men who have known each other for twenty years find that twenty days at sea bring them nearer than ever they were before, or else estrange them.

  • Creative Audigy 2 and Windows Vista: Sound volume turns down when I try to turn it

    I have a strange problem with my audio in Vista. I have a Creative Audigy 2 and Creative 6700 speakers. My full system specification is below but please note I did not have this issue in my previous Vista build - its only happening since I did a reinstall. Anyway, when I swich on the speakers using the remote control unit for the 6700 speakers the sound comes on but then it turns down. I have to then increase the volume by a large amount for it to start playing sound again and then turn it down to listening volume. This issue is not application specific - it happens in everything: Winamp, WMP, games, etc etc?I'm using [color="#000000"]Creative Sound Blaster Audigy series Vista Driver 2.2.0002 and I've tried reinstall several times. I've tried doing diagnostic startup etc using msconfig in case something was conflicting and its still happening.
    Has anyone got any ideas whats going on?Many thanks for your help!?System specifications:?MSI K8N SLI (MS-785 v..0) nForce4 Rev. A3
    BIOS Phoenix Technologies 6.00PG
    AMD FX-60 with Thermalright Ultra-20 Heatsink &?Scythe?20mm fan
    Bus speed: 20MHz, Multiplier: x.0, Core Speed: 22 MHz
    Corsair 2Gb: 2x Gb PC3200 RAM 28 bit dual channel mode & T command rate (2.5-3-3-8) with Thermaltake heatsinks
    XFX 8800 GTS 640Mb XXX Edition
    Hauppauge Nova T-500 dual tuner digital TV card
    Seagate Barracuda 7200.9 500Gb
    Optiarc AD-770S SATA DVD Writer
    Xclio X2S4P4 750WModular SLi U-Quiet PSU
    Lian Li PC-A0A aluminum case
    Dell E228WFP (Two in dual display)
    Microsoft Wireless Laser Mouse 8000
    Microsoft Digital Media Pro keyboard
    Windows Vista Ultimate 32bit Edition?Message Edited by DistortedVision on 05-25-200706:4 PM

    Have you checked the volume button? It might be physically stuck. To determine whether a hardware repair is needed, you need to follow these steps:
    1. Try doing a hard reset:
    Press and hold both the Home button and the Sleep/wake button simultaneously for about 15 seconds and release when the Apple logo appears.
    After that: test the device to see whether the issue is solved.
    2. If the issue is not solved, you should backup the device and restore it as new.
    In that case, use: http://support.apple.com/kb/HT4137
    NB: set up as a NEW device because a software issue will be in the backup.
    If the issue persists after restoring as new, you should offer the device for service.
    If you get specific error messages/codes in iTunes when updating/restoring, check this: http://support.apple.com/kb/ts3694 for causes and solutions
    Good luck
    Stijn

  • I hate the new operating system. Can't connect to wifi in home anymore even after a restore. Rhapsody no longer works on my phone either. Plus the brighth graphics are bothering my eyes even with brightness turned down. Any ideas on why rhapsody doesn't w

    I hate the new operating system. Can't connect to wifi in home anymore even after a restore. Rhapsody no longer works on my phone either. Plus the brighth graphics are bothering my eyes even with brightness turned down. Any ideas on why rhapsody doesn't why rhapsody doesn't work anymore?

    Contact Rhapsody to see if they have or plan to release an update for the app. Try uninstalling and reinstalling the app. Have you tried resetting your device by pressing and holding the Home button and power button until the silver apple appears?

  • HT1305 how can i turn down the fan rpm that's between the optical drive and hdd in my power mac g5 dual 2.3?

    how can i turn down the fan rpm that's between the optical drive and hdd in my power mac g5 dual 2.3?

    Ok, I saw that error in your logic. A Dual G5 2.3 or even a Dual Core 2.3 does NOT use LCS at all. Its air cooled and if anything if the OP is experiencing this problems could be due to possible heatsink paste drying up. He might have to re-apply MX 7 or Arctic Silver.
    The only G5's that use LCS are: G5 dual 2.5 from Late 2004, the G5 Dual 2.7 from Early 2005, and lastly the G5 Quad-Core from Late 2005-end of September 2006.
    Hope this helps.

  • Do you have any ideas on how I may resume my TV volume to full capability after disconnecting the HDMI cable and Macbook Pro to watch DVD's somehow my tv volume got turned down and I can't get it to restore fully. Any constructive ideas?

    I  used the HDMI cable from my Macbook Pro to my Panasonic TV to watch DVD's but I had no sound, so I used the community suggestion in going to system preferences>sound etc. followed the instructions and got great sound in fact very loud to my TV so I turned down the volume from my TV remote control. After watching the DVD's I disconnected the HDMI from my TV and realized for some reason my TV volume now is not returning to it's full volume even though I've tried to turn it to it's maximum. Any constructive assistance is truly appreciated. Thanks.

    Hey, it's a simple fix that should give most people what they want until there is full VZW support: the ability to use their card with the VZAM software.  I didn't see anyone else offering that suggestion...  If you don't want to use it, you don't have to.
    At the very least, this does seem to prove the theory that this is an issue with the 32/64bit compatability that some have refuted.

  • After reset the SMC, my screen and the keyboard backlighting turn down at the same time when I cover the sensor.

    The keyboard backlighting is still on under the lit. What can I do? Thanks! (MacBook Pro 2011 13' ; Mac OS X; 2.3 GHz Interl Core i5; 4GB 1333 MHz DDR3)

    After reset the SMC, my screen and the keyboard backlighting turn down at the same time when I cover the sensor.
    That's precisely what they're supposed to do.

  • Mac Mini sound continually turning down

    My mac mini sound is continually turning down. When I hit the sound up button, the sound goes up for a millisecond and then goes back down. It is really annoying because the sound up icon is in the middle of my screen. This problem has been occurring on and off for a week now.

    Ok I found out how to fix it. I deleted my audio cache and it hasn't done it again.

  • Turn down the volume of built-in speaker before playing music

    So I was wondering if there was any way to turn down the volume of the built in speaker prior to playing music/video. I imagine that if I'm REALLY quick and pause the action, I can turn it down, but I'd rather not have to race against time.
    The context for this, is the desire to show someone else video on the iPhone (say a National Geographic video podcast) without the audio blasting forth.
    Any ideas?

    So you're saying the phone doesn't remember the previous setting you had it at and jumps up or something...?
    ..or you want to hit play and have it not play so you can adjust the volume first...sorry can't help if that's the case. It kind of doesn't make sense from a UI perspective, when I press play or start a video I want it to play....different strokes for different folks tho

  • How do i stop muting people during my conversations? i don't mean to hit mute but it always happens. can i turn down the sensitivity?

    how do i stop muting people during my conversations? i don't mean to hit mute but it always happens. can i turn down the sensitivity?

    The iPhone includes a proximity sensor which puts the screen to sleep or turns it off when the iPhone is held to your ear and face during a call.
    Do you have a screen protector installed and/or are you using a case that might be blocking or partially blocking the proximity sensor?
    If you are using a case, remove the case before the next call. If the same does not occur without the case, you need to get another case that doesn't block the proximity sensor.

  • Podcasts volume turned down...

    I've uploaded several podcasts- they download fine to iTunes and appear to work- but when you try to watch/listen to them on the .mac page, the volume in the quicktime controls is turned all the way down. I spent a lot of time playing with my speakers before I realized that the volume control ON THE QT controls was there and it was turned all the way down. Turn it up, and all is well. Why would all of our podcasts be turned down? Is the a setting in iweb/.mac to turn them up globally? thanks
    http://web.mac.com/beachschool/BeachSchool/Human_Body_PSA/Human_BodyPSA.html

    Stephanie Griffin wrote:
    I realized that the volume control ON THE QT controls was there and it was turned all the way down.
    When you add the video to your podcast page (in iweb), you see the same controller bar with the little speaker on the left (it's QT volume control); you can set the volume there too.

  • Does turning down volume in app always have to turn down ringer?

    I have missed several calls because I turn down apps and it make the ringer equally as quiet.  I have the same problem on my iPad.  Any fixes?

    When installing Vista or Windows 7, I always advice people to remove their OS X drive so that Windows doesn't touch, tag, or know about OS X (also makes the install easier).
    Not sure why, but have you booted from another hard drive and run Disk WARRIOR - or at least Apple DU and tried doing disk repair? not sure it would help. Then zap PRAM and see if that changes this at all.

Maybe you are looking for

  • Saving to a folder that is password protected

    I've got a script that saves artwork to a public folder but I also need a script that saves the artwork to a folder that is password protected.  The username and password is something I would need illustrator to be able to type in before saving is th

  • Mac Mail accounts showing "offline"

    Hi: I am using MacMail (6.6 1510) on 10.8.5. I have two gmail acounts, a yahoo, and two non-web based emails (one is POP, one is IMAP). For several days now, all of the accounts, except the POP (it works fine) are not allowing me to send email. It sa

  • Sending HTML file as body of email message

    Hello everybody, I am trying to send a HTML file as body of an email message using JAVA mail API. If anybody has more insides pls let me know...... Waiting for your reply!!!!!!!!!

  • Managing Data Backupss?????? Please help me out in this :)

    Hey all, I have created a software for a school, and yes I am managing it quite well. I am not very well versed with the latest technologies and the latest design patterns. My software is functioning well but I am facing two problems in it, one of wh

  • Overruling inherited access rights does not work properly

    Hello everybody, I have encountered an issue when I tried to overrule "Home" level access rights on SSRS (Verion 2009.0100.1600.01). The situation is as that there is a third party company which has to setup and edit reports. I created a folder for t