scripted version of transform type in box

hello,

I've been trying to make a scripted version of the transform type in that i can dock wherever I want. right now i've got the absolute object position and rotation working by using a callback to link the spinner controller to the object's pos.X_position.controller and rotation.X_Rotation.controller respectively. works just like the status bar type in box. Perfect.

But where i'm having a problem is at subobject level selections. linking the spinner controller to the tmgizmo controller isn't possible because as far as i can tell it isn't exposed to maxscript. So i'm wondering if there's anyone out there who can give me a pointer as to what other solutions are possible, if any.

here's a little script that reads the subobject selection's position and assigns it to the spinner values. Just need it to work in the oposite direction concurrently, subobj position controls spinner and spinner controls subobject position

AttachmentSize
subobjectpositiontest.ms1.42 KB

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
kyle108's picture

yeah i started off by looking

yeah i started off by looking at it, but unfortunately it doesn't replicate what the hardcoded tti in the status bar does entirely. it's capable of applying offset and absolute transform values at object level only, not subobject selection. And ideally as a modeler i'd like the spinner, when in absolute mode, to reflect the current position of $ or any subobject selection. all i would need for my current script to work entirely is a way to link the subobject selection position.x .y .z (as a controller), somehow, to the corresponding spinner controllers through a callback. or maybe there's another method?

miauu's picture

.

You can find scripted TTI here.

I don't know if that script will helps you, but you can test it.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.