Activity › Forums › Adobe After Effects Expressions › Change selected master properties with ExtendScript
-
Change selected master properties with ExtendScript
Posted by Clara Martin on May 2, 2024 at 1:58 pmHello,
I would like to know how to change the text of a master properties which is selected:
– I select the master property
– I click on a button (that’s it)
– this changes the text
thanks in advance
Clara Martin replied 2 years ago 3 Members · 4 Replies -
4 Replies
-
Hector Vera
May 2, 2024 at 3:57 pmIncase you wish to know more on Master Properties in Master effect, here is a tutorial that I found: https://www.youtube.com/watch?v=H1ZsiQy764Q
First you select the layer of the Master Properties to change, then click on the Master Properties Icon and then select the Master Properties you wish to change by scrolling down. Then you double click it and type in that new text.
You should see the updated text in that Master property layer afterwards.
Some contents or functionalities here are not available due to your cookie preferences!This happens because the functionality/content marked as “Google Youtube” uses cookies that you choosed to keep disabled. In order to view this content or use this functionality, please enable cookies: click here to open your cookie preferences.
-
Clara Martin
May 2, 2024 at 8:15 pmThank you for your replay.
Unfortunetely i know it, i want to do it with script. Is it possible ?
Thank you in advance 🙂
-
David Conklin
May 2, 2024 at 8:52 pmI think this is what you’re asking for. Let me know if not.
This script will update your [first] selected property on your [first] selected layer in your active comp to say “abcd.”
(function(){
app.beginUndoGroup("Updated selected text essential property.");
var comp = app.project.activeItem;
var lyr = comp.selectedLayers[0];
var prop = lyr.selectedProperties[0];
prop.setValue("abcd")
app.endUndoGroup();
})();If you wanted to be more specific you could say
var prop = lyr.essentialProperty.property(1);
or
var prop = lyr.essentialProperty.property("thePropertyName");Hope that helps.
Reply to this Discussion! Login or Sign Up