Custom Anchors Via Script


I am trying to build a demo similar to the furniture tutorial except with multiple objects. Some forum posts and the documentation allude to the ability to create custom anchors.
I am trying to place an object but then continue hit-testing so that I can place another object relative to the new anchor.
Are custom anchors at runtime currently possible and how would you create one via script?