Skip to content

Instantly share code, notes, and snippets.

@hoorayfor3d
Last active February 25, 2017 01:37
Show Gist options
  • Save hoorayfor3d/8e7c86c41276a9c811a0d32aec66a82e to your computer and use it in GitHub Desktop.
Save hoorayfor3d/8e7c86c41276a9c811a0d32aec66a82e to your computer and use it in GitHub Desktop.
testAttributes = attributes testAttrs
(
rollout testAttr_RO "Test Attributes"
(
button test1_BT "Snap To Zero" width:160 height:30
button test2_BT "Snap To 10" width:160 height:30
on test1_BT pressed do
(
undo "Snap To Zero" on
(
$Box002.pos = [0,0,0]
)
)
on test2_BT pressed do
(
undo "Snap To 10" on
(
$Box002.pos = [0,0,10]
)
)
)
)
CustAttributes.add $.modifiers[1] testAttributes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment