Motion Blur - Accessing Layer's Transforms
Copy link to clipboard
Copied
Yo
I've been trying for quite some time to make Motion Blur as a normal effect plug-in and I want to ask if it is even possible. Can I access the layer's transforms through a normal effect plug-in? What do I need to use?
I wanna make sure if it is possible or not. The only other way is making it an AEGP, right? I would like to avoid that.
Copy link to clipboard
Copied
you can access any effects param values (anyone's. not only your plugins) using AEGP_GetNewStreamValue.
you get the required streamRefH using AEGP_GetNewEffectStreamByIndex.
you get the required effectRefH using AEGP_GetLayerEffectByIndex.
Copy link to clipboard
Copied
Thanks. I really feel bad for asking so many questions, but trust me when I say that you really helped me. I think I do not have any other question tbh. I'll surely come back and ask if I have thoðŸ˜
Copy link to clipboard
Copied
this is a safe place. (everyone: we love you DKT388448781utv )
Copy link to clipboard
Copied
Lmao and here I am again.
First of all, I managed to get the Motion Blur plugin to work with my plugins. I can make it work with other plugins too, but without their code I can't apply proper blur, I can only assume, so I will make it work only with my plugins.
Second of all, I want to ask you how to properly allow a plugin to move the layer outside of the layer bounds. For example, my own Oscillate plugin, when the layer gets outside the layer's boundaries, that part that is outside is basically invisible. How can I make it not be invisible. Basically like in the screenshot.
And while I am at it, I wanna ask again how to make the plugins not interact weirdly with each other, I know you answered that question once, but I just wanna be sure and have all the info possible. Yk, like my Exposure plugin changes the layer position when I add my Oscillate plugin, for example.
Copy link to clipboard
Copied
Ye another question. I have a problem with the Motion Blur plugin. I can't get it to properly distinguish between a scale change a position change. When I change the Scale, it detects both a scale change and a Position change. How can I separate them?
Copy link to clipboard
Copied
Yep, another question. I am bomarding you with questions atp and I am actually sorry for that, but I really want to do this properly.ðŸ˜
Example: I have a plugin called Circular Ripple. When i add it with Oscillate, or Random Displacement (my plugins), it does not follow the center of the layer if I apply it below them (It basically stays in the original layer position). Is it possible to make it follow the center of the layer even if it is below the other effects?
Copy link to clipboard
Copied
Just letting you know I officially finished my Motion Blur plugin. It works on the layer's transforms and on my plugins too.
Thank you so much for the help man. Would've taken me so long to make it without your help.
I still need help with the other questions tho. I really need to make my plugins interact correctly with each other😅.
Copy link to clipboard
Copied
congrats! now please repeat the question that still stands... i cound't figure out which one it was...
Copy link to clipboard
Copied
Yaayy, shachar is back!!!
First of all, please teach me how to properly expand the buffer/make a layer go out of bounds. My current Motion Blur is "trapped" inside the layer's bounds which makes it weird. I tried changing the SmartPreRender according to what the SmartFX documentation says and it just does not work, do I need to change something else too?
2nd of all, my plugins interact weirdly. Example:
My Circular Ripple plugin interacts weirdly with my Pinch/Bulge plugin and I can only fix it by moving the Circular Ripple above the Pinch/Bulge, how can I make them interact normally regardless of where I put them? It also interacts weirdly with my transform plugins. When I apply it below, the ripple does not follow the center of the layer, only when I apply it above. Is there something I can do to make them interact normally regardless of their position in the Effects panel?
Copy link to clipboard
Copied
Nah, honestly I just can't get it to work, I've been trying for 5 days to get distorion effects(like pinch/bulge or wave warp or circular ripple) and blur effects (like directional blur or inner blur) to go out of bounds and it just does not work. The SDK is honestly very confusing, there is nothing that tells you how to handle effects like these, it's easy to make transform effects to get out of bounds, but what about this kind of effects??
Honestly, without your help, I'll just give up, for my own sanity. Sad that you haven't responded in so long, everything was going so smoothly with your help.
Copy link to clipboard
Copied
I don't know if this will help with what you are trying to achive or not, but the third-party plugin ReelSmart Motion Blur by RE:Vision Effects is well known for applying a natural-looking motion blur via an effect as an alternative to the built-in Motion Blur Switch.
Copy link to clipboard
Copied
I know about RSMB, but I want to code my own Motion Blur plugin. Thanks anyway.


-
- 1
- 2