|
I have a few things I wish to do and I am not entirely sure whether they are at all possible - I’d like some guidance as to whether I should give up trying.
I have a few custom locator nodes ( loaded from my own mll ).
The things I want to do are basically these,
If the user uses the scale tool to change say, the x scale, I want to copy this value to each of the other scales i.e. Y and Z - thus enforcing uniform scaling. I want this since one of my locators is sphere shaped but it must only be scaled uniformily.
I also have a locator shaped like a capsule - for this one when the user scales in Y on the transform node, I want to intercept this and change the drawing of the locator node so that it gets longer but does not stretch i.e. I want the middle section of the capsule to grow but the hemi-spheres at either end to remain unchanged.
To break it down, if the user selects the transform node of the capsule locator and scales in Y, I want this Y value to be picked up inside the draw call of the locator and then use it to extend the length of the capulse.
Prefereably I would like to do all these things and some more inside my c++ code but i am happy not to if needs must.
Thanks in advance for the advice,
Kil.
|