$modx->runSnippet())
$scriptProperties[]
This question has been answered by BobRay. See the first response.
<?php
/* get the default properties of the snippet being run with runSnippet() */
$snippet = $modx->getObject('modSnippet', array ('snippet' => 'SnippetName'));
$props = $snippet->getProperties();
/* get the properties from the property set */
$propertySet = $modx->getObject('modPropertySet', array ('name' => 'propertySetName'));
$properties = $propertySet->getProperties();
/* combine those two. The property set properties will take precedence */
$props = array_merge($props, $properties);
/* add in the properties from your snippet (these will take precedence) */
$props = array_merge($props, $scriptProperties);
/* call runSnippet with the merged properties */
$modx->runSnippet('SnippetName', $props);getProperties()
getOne()
getMany()
[[MySnippet@[[!selectPropertySet]]? &override=`overridden`]]
$mySnippet = $modx->parser->getElement('modSnippet', "MySnippet@{$propertySet}");
return $mySnippet->process($scriptProperties);