{"payload":{"allShortcutsEnabled":false,"fileTree":{"scripts":{"items":[{"name":"Add 3D Break.jsx","path":"scripts/Add 3D Break.jsx","contentType":"file"},{"name":"Add Camera With Controller.jsx","path":"scripts/Add Camera With Controller.jsx","contentType":"file"},{"name":"Add Expression to Selected Properties.jsx","path":"scripts/Add Expression to Selected Properties.jsx","contentType":"file"},{"name":"Add Fill With Color Cycle.jsx","path":"scripts/Add Fill With Color Cycle.jsx","contentType":"file"},{"name":"Add Markers At Out Points.jsx","path":"scripts/Add Markers At Out Points.jsx","contentType":"file"},{"name":"Add Markers to Selected Layers.jsx","path":"scripts/Add Markers to Selected Layers.jsx","contentType":"file"},{"name":"Add Posterize Time.jsx","path":"scripts/Add Posterize Time.jsx","contentType":"file"},{"name":"Add Selected Properties to Essential Graphics Panel.jsx","path":"scripts/Add Selected Properties to Essential Graphics Panel.jsx","contentType":"file"},{"name":"Add Visibility Controller.jsx","path":"scripts/Add Visibility Controller.jsx","contentType":"file"},{"name":"Calculate Difference Between Keyframe Values.jsx","path":"scripts/Calculate Difference Between Keyframe Values.jsx","contentType":"file"},{"name":"Calculate Distance Between Layers.jsx","path":"scripts/Calculate Distance Between Layers.jsx","contentType":"file"},{"name":"Center Composition.jsx","path":"scripts/Center Composition.jsx","contentType":"file"},{"name":"Change Nested Composition Background.jsx","path":"scripts/Change Nested Composition Background.jsx","contentType":"file"},{"name":"Change Nested Composition Duration.jsx","path":"scripts/Change Nested Composition Duration.jsx","contentType":"file"},{"name":"Change Nested Composition Frame Rate.jsx","path":"scripts/Change Nested Composition Frame Rate.jsx","contentType":"file"},{"name":"Change Nested Composition Layer Colors.jsx","path":"scripts/Change Nested Composition Layer Colors.jsx","contentType":"file"},{"name":"Change Nested Composition Layer Names.jsx","path":"scripts/Change Nested Composition Layer Names.jsx","contentType":"file"},{"name":"Change Nested Composition Resolution.jsx","path":"scripts/Change Nested Composition Resolution.jsx","contentType":"file"},{"name":"Clean Render Queue.jsx","path":"scripts/Clean Render Queue.jsx","contentType":"file"},{"name":"Clean Selected Folder.jsx","path":"scripts/Clean Selected Folder.jsx","contentType":"file"},{"name":"Copy Composition Work Area.jsx","path":"scripts/Copy Composition Work Area.jsx","contentType":"file"},{"name":"Create Eye Rig.jsx","path":"scripts/Create Eye Rig.jsx","contentType":"file"},{"name":"Create Text Layers From File.jsx","path":"scripts/Create Text Layers From File.jsx","contentType":"file"},{"name":"Cycle Composition Background Color.jsx","path":"scripts/Cycle Composition Background Color.jsx","contentType":"file"},{"name":"Disable Specified Effects.jsx","path":"scripts/Disable Specified Effects.jsx","contentType":"file"},{"name":"Expose Essential Properties to Essential Graphics Panel.jsx","path":"scripts/Expose Essential Properties to Essential Graphics Panel.jsx","contentType":"file"},{"name":"Force Composition Panel Refresh.jsx","path":"scripts/Force Composition Panel Refresh.jsx","contentType":"file"},{"name":"Hard Solo Layers.jsx","path":"scripts/Hard Solo Layers.jsx","contentType":"file"},{"name":"Invert Selected Keyframes.jsx","path":"scripts/Invert Selected Keyframes.jsx","contentType":"file"},{"name":"Lock All Layers.jsx","path":"scripts/Lock All Layers.jsx","contentType":"file"},{"name":"Lock All Null Layers.jsx","path":"scripts/Lock All Null Layers.jsx","contentType":"file"},{"name":"Make Hold Keyframes.jsx","path":"scripts/Make Hold Keyframes.jsx","contentType":"file"},{"name":"Match Selected Layer Start Time To Below.jsx","path":"scripts/Match Selected Layer Start Time To Below.jsx","contentType":"file"},{"name":"Matte Selected Layers to Layer Above.jsx","path":"scripts/Matte Selected Layers to Layer Above.jsx","contentType":"file"},{"name":"OCD Expression Fix.jsx","path":"scripts/OCD Expression Fix.jsx","contentType":"file"},{"name":"Parent Selected Layers to Layers Below.jsx","path":"scripts/Parent Selected Layers to Layers Below.jsx","contentType":"file"},{"name":"Posterize Keyframes.jsx","path":"scripts/Posterize Keyframes.jsx","contentType":"file"},{"name":"Posterize Start Time.jsx","path":"scripts/Posterize Start Time.jsx","contentType":"file"},{"name":"Randomize Layer Start Time.jsx","path":"scripts/Randomize Layer Start Time.jsx","contentType":"file"},{"name":"Randomize Selected Keyframe Values.jsx","path":"scripts/Randomize Selected Keyframe Values.jsx","contentType":"file"},{"name":"Remove All Proxies.jsx","path":"scripts/Remove All Proxies.jsx","contentType":"file"},{"name":"Rename Composition to File Name.jsx","path":"scripts/Rename Composition to File Name.jsx","contentType":"file"},{"name":"Rename First Layer to Composition Name.jsx","path":"scripts/Rename First Layer to Composition Name.jsx","contentType":"file"},{"name":"Rename Layer Source.jsx","path":"scripts/Rename Layer Source.jsx","contentType":"file"},{"name":"Rename Project Items.jsx","path":"scripts/Rename Project Items.jsx","contentType":"file"},{"name":"Rename Selected Layers With Text.jsx","path":"scripts/Rename Selected Layers With Text.jsx","contentType":"file"},{"name":"Rename Selected Layers.jsx","path":"scripts/Rename Selected Layers.jsx","contentType":"file"},{"name":"Rename Source to Layer Name.jsx","path":"scripts/Rename Source to Layer Name.jsx","contentType":"file"},{"name":"Replace Text in Project Item Name.jsx","path":"scripts/Replace Text in Project Item Name.jsx","contentType":"file"},{"name":"Reset Composition Work Area.jsx","path":"scripts/Reset Composition Work Area.jsx","contentType":"file"},{"name":"Round Position.jsx","path":"scripts/Round Position.jsx","contentType":"file"},{"name":"Save Frame as PNG.jsx","path":"scripts/Save Frame as PNG.jsx","contentType":"file"},{"name":"Select All Children.jsx","path":"scripts/Select All Children.jsx","contentType":"file"},{"name":"Select All Non-Null Layers.jsx","path":"scripts/Select All Non-Null Layers.jsx","contentType":"file"},{"name":"Select Unparented Layers.jsx","path":"scripts/Select Unparented Layers.jsx","contentType":"file"},{"name":"Set New Color.jsx","path":"scripts/Set New Color.jsx","contentType":"file"},{"name":"Set Proxies From Folder.jsx","path":"scripts/Set Proxies From Folder.jsx","contentType":"file"},{"name":"Set Selected Layer Track Matte To Layer Above It.jsx","path":"scripts/Set Selected Layer Track Matte To Layer Above It.jsx","contentType":"file"},{"name":"Set To Average Position.jsx","path":"scripts/Set To Average Position.jsx","contentType":"file"},{"name":"Shift Selected Layers.jsx","path":"scripts/Shift Selected Layers.jsx","contentType":"file"},{"name":"Stick Effect to Layer.jsx","path":"scripts/Stick Effect to Layer.jsx","contentType":"file"},{"name":"Swap Property.jsx","path":"scripts/Swap Property.jsx","contentType":"file"},{"name":"Toggle Difference Blend Mode.jsx","path":"scripts/Toggle Difference Blend Mode.jsx","contentType":"file"},{"name":"Toggle Maintain Scale Expression.jsx","path":"scripts/Toggle Maintain Scale Expression.jsx","contentType":"file"},{"name":"Toggle Onion Skinning.jsx","path":"scripts/Toggle Onion Skinning.jsx","contentType":"file"},{"name":"Toggle Puppet Pin Type.jsx","path":"scripts/Toggle Puppet Pin Type.jsx","contentType":"file"},{"name":"Toggle Selected Property Expressions.jsx","path":"scripts/Toggle Selected Property Expressions.jsx","contentType":"file"},{"name":"Zero Position.jsx","path":"scripts/Zero Position.jsx","contentType":"file"}],"totalCount":68},"":{"items":[{"name":"scripts","path":"scripts","contentType":"directory"},{"name":"README.md","path":"README.md","contentType":"file"}],"totalCount":2}},"fileTreeProcessingTime":7.5109520000000005,"foldersToFetch":[],"reducedMotionEnabled":null,"repo":{"id":410606410,"defaultBranch":"master","name":"after-effects-scripts","ownerLogin":"kyletmartinez","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2021-09-26T16:40:50.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/91428108?v=4","public":true,"private":false,"isOrgOwned":false},"symbolsExpanded":false,"treeExpanded":true,"refInfo":{"name":"master","listCacheKey":"v0:1683432364.0","canEdit":false,"refType":"branch","currentOid":"188a2c3950bda53349a9fb4d10aa893bb86bd16b"},"path":"scripts/Add Expression to Selected Properties.jsx","currentUser":null,"blob":{"rawLines":["/**"," * @title Add Expression to Selected Properties"," * @version 1.0"," * @author Kyle Martinez <www.kyle-martinez.com>"," *"," * @description Add an expression to all selected properties."," *"," * @license This script is provided \"as is,\" without warranty of any kind, expressed or implied. In"," * no event shall the author be held liable for any damages arising in any way from the use of this"," * script."," *"," * In other words, I'm just trying to help make life as an animator easier"," * \"A rising tide lifts all boats.\" - John F. Kennedy, 1963"," */","","(function() {"," app.beginUndoGroup(\"Add Expression to Selected Properties\")"," var comp = app.project.activeItem;"," var properties = comp.selectedProperties;"," var numProperties = properties.length;"," for (var i = 0; i < numProperties; i++) {"," var property = properties[i];"," if (property.canSetExpression == true) {"," property.expression = 'posterizeTime(12); loopIn(\"cycle\") + loopOut(\"cycle\") - value;'"," }"," }"," app.endUndoGroup();","})()"],"stylingDirectives":[[{"start":0,"end":3,"cssClass":"pl-c"}],[{"start":0,"end":47,"cssClass":"pl-c"},{"start":3,"end":9,"cssClass":"pl-k"}],[{"start":0,"end":15,"cssClass":"pl-c"},{"start":3,"end":11,"cssClass":"pl-k"}],[{"start":0,"end":48,"cssClass":"pl-c"},{"start":3,"end":10,"cssClass":"pl-k"}],[{"start":0,"end":2,"cssClass":"pl-c"}],[{"start":0,"end":61,"cssClass":"pl-c"},{"start":3,"end":15,"cssClass":"pl-k"}],[{"start":0,"end":2,"cssClass":"pl-c"}],[{"start":0,"end":99,"cssClass":"pl-c"},{"start":3,"end":11,"cssClass":"pl-k"}],[{"start":0,"end":99,"cssClass":"pl-c"}],[{"start":0,"end":10,"cssClass":"pl-c"}],[{"start":0,"end":2,"cssClass":"pl-c"}],[{"start":0,"end":74,"cssClass":"pl-c"}],[{"start":0,"end":59,"cssClass":"pl-c"}],[{"start":0,"end":3,"cssClass":"pl-c"}],[],[{"start":0,"end":1,"cssClass":"pl-kos"},{"start":1,"end":9,"cssClass":"pl-k"},{"start":9,"end":10,"cssClass":"pl-kos"},{"start":10,"end":11,"cssClass":"pl-kos"},{"start":12,"end":13,"cssClass":"pl-kos"}],[{"start":4,"end":7,"cssClass":"pl-s1"},{"start":7,"end":8,"cssClass":"pl-kos"},{"start":8,"end":22,"cssClass":"pl-en"},{"start":22,"end":23,"cssClass":"pl-kos"},{"start":23,"end":62,"cssClass":"pl-s"},{"start":62,"end":63,"cssClass":"pl-kos"}],[{"start":4,"end":7,"cssClass":"pl-k"},{"start":8,"end":12,"cssClass":"pl-s1"},{"start":13,"end":14,"cssClass":"pl-c1"},{"start":15,"end":18,"cssClass":"pl-s1"},{"start":18,"end":19,"cssClass":"pl-kos"},{"start":19,"end":26,"cssClass":"pl-c1"},{"start":26,"end":27,"cssClass":"pl-kos"},{"start":27,"end":37,"cssClass":"pl-c1"},{"start":37,"end":38,"cssClass":"pl-kos"}],[{"start":4,"end":7,"cssClass":"pl-k"},{"start":8,"end":18,"cssClass":"pl-s1"},{"start":19,"end":20,"cssClass":"pl-c1"},{"start":21,"end":25,"cssClass":"pl-s1"},{"start":25,"end":26,"cssClass":"pl-kos"},{"start":26,"end":44,"cssClass":"pl-c1"},{"start":44,"end":45,"cssClass":"pl-kos"}],[{"start":4,"end":7,"cssClass":"pl-k"},{"start":8,"end":21,"cssClass":"pl-s1"},{"start":22,"end":23,"cssClass":"pl-c1"},{"start":24,"end":34,"cssClass":"pl-s1"},{"start":34,"end":35,"cssClass":"pl-kos"},{"start":35,"end":41,"cssClass":"pl-c1"},{"start":41,"end":42,"cssClass":"pl-kos"}],[{"start":4,"end":7,"cssClass":"pl-k"},{"start":8,"end":9,"cssClass":"pl-kos"},{"start":9,"end":12,"cssClass":"pl-k"},{"start":13,"end":14,"cssClass":"pl-s1"},{"start":15,"end":16,"cssClass":"pl-c1"},{"start":17,"end":18,"cssClass":"pl-c1"},{"start":18,"end":19,"cssClass":"pl-kos"},{"start":20,"end":21,"cssClass":"pl-s1"},{"start":22,"end":23,"cssClass":"pl-c1"},{"start":24,"end":37,"cssClass":"pl-s1"},{"start":37,"end":38,"cssClass":"pl-kos"},{"start":39,"end":40,"cssClass":"pl-s1"},{"start":40,"end":42,"cssClass":"pl-c1"},{"start":42,"end":43,"cssClass":"pl-kos"},{"start":44,"end":45,"cssClass":"pl-kos"}],[{"start":8,"end":11,"cssClass":"pl-k"},{"start":12,"end":20,"cssClass":"pl-s1"},{"start":21,"end":22,"cssClass":"pl-c1"},{"start":23,"end":33,"cssClass":"pl-s1"},{"start":33,"end":34,"cssClass":"pl-kos"},{"start":34,"end":35,"cssClass":"pl-s1"},{"start":35,"end":36,"cssClass":"pl-kos"},{"start":36,"end":37,"cssClass":"pl-kos"}],[{"start":8,"end":10,"cssClass":"pl-k"},{"start":11,"end":12,"cssClass":"pl-kos"},{"start":12,"end":20,"cssClass":"pl-s1"},{"start":20,"end":21,"cssClass":"pl-kos"},{"start":21,"end":37,"cssClass":"pl-c1"},{"start":38,"end":40,"cssClass":"pl-c1"},{"start":41,"end":45,"cssClass":"pl-c1"},{"start":45,"end":46,"cssClass":"pl-kos"},{"start":47,"end":48,"cssClass":"pl-kos"}],[{"start":12,"end":20,"cssClass":"pl-s1"},{"start":20,"end":21,"cssClass":"pl-kos"},{"start":21,"end":31,"cssClass":"pl-c1"},{"start":32,"end":33,"cssClass":"pl-c1"},{"start":34,"end":98,"cssClass":"pl-s"}],[{"start":8,"end":9,"cssClass":"pl-kos"}],[{"start":4,"end":5,"cssClass":"pl-kos"}],[{"start":4,"end":7,"cssClass":"pl-s1"},{"start":7,"end":8,"cssClass":"pl-kos"},{"start":8,"end":20,"cssClass":"pl-en"},{"start":20,"end":21,"cssClass":"pl-kos"},{"start":21,"end":22,"cssClass":"pl-kos"},{"start":22,"end":23,"cssClass":"pl-kos"}],[{"start":0,"end":1,"cssClass":"pl-kos"},{"start":1,"end":2,"cssClass":"pl-kos"},{"start":2,"end":3,"cssClass":"pl-kos"},{"start":3,"end":4,"cssClass":"pl-kos"}]],"csv":null,"csvError":null,"dependabotInfo":{"showConfigurationBanner":false,"configFilePath":null,"networkDependabotPath":"/kyletmartinez/after-effects-scripts/network/updates","dismissConfigurationNoticePath":"/settings/dismiss-notice/dependabot_configuration_notice","configurationNoticeDismissed":null,"repoAlertsPath":"/kyletmartinez/after-effects-scripts/security/dependabot","repoSecurityAndAnalysisPath":"/kyletmartinez/after-effects-scripts/settings/security_analysis","repoOwnerIsOrg":false,"currentUserCanAdminRepo":false},"displayName":"Add Expression to Selected Properties.jsx","displayUrl":"https://github.com/kyletmartinez/after-effects-scripts/blob/master/scripts/Add%20Expression%20to%20Selected%20Properties.jsx?raw=true","headerInfo":{"blobSize":"1021 Bytes","deleteInfo":{"deleteTooltip":"You must be signed in to make or propose changes"},"editInfo":{"editTooltip":"You must be signed in to make or propose changes"},"ghDesktopPath":"https://desktop.github.com","gitLfsPath":null,"onBranch":true,"shortPath":"59a9941","siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2Fkyletmartinez%2Fafter-effects-scripts%2Fblob%2Fmaster%2Fscripts%2FAdd%2520Expression%2520to%2520Selected%2520Properties.jsx","isCSV":false,"isRichtext":false,"toc":null,"lineInfo":{"truncatedLoc":"28","truncatedSloc":"27"},"mode":"file"},"image":false,"isCodeownersFile":null,"isPlain":false,"isValidLegacyIssueTemplate":false,"issueTemplateHelpUrl":"https://docs.github.com/articles/about-issue-and-pull-request-templates","issueTemplate":null,"discussionTemplate":null,"language":"JavaScript","languageID":183,"large":false,"loggedIn":false,"newDiscussionPath":"/kyletmartinez/after-effects-scripts/discussions/new","newIssuePath":"/kyletmartinez/after-effects-scripts/issues/new","planSupportInfo":{"repoIsFork":null,"repoOwnedByCurrentUser":null,"requestFullPath":"/kyletmartinez/after-effects-scripts/blob/master/scripts/Add%20Expression%20to%20Selected%20Properties.jsx","showFreeOrgGatedFeatureMessage":null,"showPlanSupportBanner":null,"upgradeDataAttributes":null,"upgradePath":null},"publishBannersInfo":{"dismissActionNoticePath":"/settings/dismiss-notice/publish_action_from_dockerfile","dismissStackNoticePath":"/settings/dismiss-notice/publish_stack_from_file","releasePath":"/kyletmartinez/after-effects-scripts/releases/new?marketplace=true","showPublishActionBanner":false,"showPublishStackBanner":false},"renderImageOrRaw":false,"richText":null,"renderedFileInfo":null,"shortPath":null,"tabSize":8,"topBannersInfo":{"overridingGlobalFundingFile":false,"globalPreferredFundingPath":null,"repoOwner":"kyletmartinez","repoName":"after-effects-scripts","showInvalidCitationWarning":false,"citationHelpUrl":"https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-citation-files","showDependabotConfigurationBanner":false,"actionsOnboardingTip":null},"truncated":false,"viewable":true,"workflowRedirectUrl":null,"symbols":{"timedOut":false,"notAnalyzed":false,"symbols":[]}},"copilotInfo":null,"csrf_tokens":{"/kyletmartinez/after-effects-scripts/branches":{"post":"cQPMGHl90wxdtgQstdZK5au_tA_pdRBHkse8SZentQZ2HR-kABXEp_UU_gNx-lwOlyVuhvPGtNI3D6L7xI2f0A"},"/repos/preferences":{"post":"M07tgNUAI5RWp2o8olb0wDa75MSwBFitRO8VbJGKT07JTt0fnGcJ4TKylAhN_zxB2NikN7OfV3dr84CK-d1iMw"}}},"title":"after-effects-scripts/scripts/Add Expression to Selected Properties.jsx at master · kyletmartinez/after-effects-scripts"}