Handle Question
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 10/05/2012 at 15:49, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 13
Platform: Windows ; Mac ;
Language(s) : C++ ;---------
Hey Everyone,I am wondering if this is possible and if so what in the SDK should I look for to achieve it.
I have sweepNurbs object that uses a spline object that I have allocated. I fill the spline object with points and move them to where I want them. I then return the sweep nurbs through GetVirtualObjects();
My question is, I would like to allow the user to have direct access to the points in the spline object which is a child of my sweep nurbs. Is it possible to draw handles that are associated with each point in the spline and then allow the user to move the handle which will move the spline points?
Essentially I would like to allow users to be able to click on the spline points and move them through my Object plugin.
Any help you could provide would be great.
Thanks,
~Shawn
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 11/05/2012 at 01:04, xxxxxxxx wrote:
I can't see why that wouldn't be possible. In R13 you'd need to implement Draw(), GetHandle(), SetHandle() and GetHandleCount(). Then you would get the points array for the spline, and draw a handle at each point location. You then need to move the points in accordance with the movement of the handle.
I recently did a quick tut on my site for an ObjectData plugin which has handles - the code might be useful to you if you haven't done handles before. Here's the link to the relevant page.
Steve
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 11/05/2012 at 03:53, xxxxxxxx wrote:
Thanks Steve,
I'll have a look at it later today and see if I can't get it to work right.
~Shawn