Space Switching in APEX

   600   3   2
User Avatar
Member
8 posts
Joined: 5月 2018
オンライン
Hello,

i am trying to build a Space switch setup in APEX, where i would like to keep the transform of a sphere in it's place when switching parents.
So i was wondering what could be a good approach to do that, or if i am missing something obvious.

For now I did setup some "intlistmenu" control, that switches the parentrelationship of the sphere between 3 different transformdrivers.



Any hints or a "fix" within the attached file would be appreciated.

Thanks,
Dani

Attachments:
spaceswitch_apex.hipnc (536.4 KB)
sphere_spaceswitch.png (595.9 KB)

User Avatar
スタッフ
146 posts
Joined: 10月 2023
オフライン
Hi,
For this you have to set up a custom property on the controls to enable snapping.
Snapping will set one control to another controls position on end drag.

I have set up a helper node that floats in space that stores the world space position, every time to drag any of the controls the helper and sphere will by synced to each other.

Hope this helps

Attachments:
snapping.gif (1.7 MB)
spaceswitch_apex_wh.hipnc (552.7 KB)

User Avatar
Member
8 posts
Joined: 5月 2018
オンライン
Wow, this is amazing, thank you!
I guess it's time to study your additions in the script to understand exactly what's going on there.
User Avatar
Member
8 posts
Joined: 5月 2018
オンライン
One thing that came up now is, that i need the snapping operation to work even when moving a parent of the joint that the positionhelper is supposed to be snapped to on enddrag. Is there a way this could work?
  • Quick Links