View Full Version : C++ developer needed quickly for small controller / plugin
09-04-2007, 10:54 PM
I'm in a need of a C++ plugin developer within the next few days for a project I'm working on next week. I know development on a compiled plugin is significantly longer than a scripted plugin, but depending on the estimate I'm hoping my client will budget for this.
Essentially, I need a recompile / extension of the path controller to take a real world distance input, as opposed to a percentage input. I've done some scripted-controller tests and it works well, but I need the stability / ease of use of a compiled plugin.
I don't need multiple weighted splines supported, just the first one in the list if that makes it any easier.
Any takers, please reply to the thread!
09-05-2007, 11:24 AM
I know you've asked for a plugin but do you really need one?
I have a script that should do what you need via a floating dialog. A video demo can be downloaded from here: Download Link (http://www.speedyshare.com/763774781.html) (only 5.5 meg)
The video demo is in swf format. I strongly recommend using Swiff player to watch it as it works best. Swiff player is free and can be downloaded from here: Link (http://www.globfx.com/products/swfplayer/)
09-05-2007, 11:44 AM
The key thing here is not the units of measurement; it's the distance along the spline as units not a percentage.
By having everything relative to 0 - 100 % ratio (as it is now), changing a spline's length results in an object's derived position changing. Not good when making adjustments to a spline on which there is an object that has already been animated!
If, however, the object's position along the path is calculated with regards to units along a path, the animator (me, in this case!) is free to adjust the spline's points after the object's current position along the spline and NOT have the object move.
Does that make what I want clear?
As I said, I already have a max scene with some wired CAs etc that proves this point - I just want it wrapped in a plugin to make animating easier.
09-05-2007, 01:00 PM
ah I see. Your idea would be quite useful. Unfortunatly i'm not a C++ dude at this stage though. Best of luck finding someone to help you out
09-05-2007, 01:16 PM
I"m looking at the code right now. Luckily for you the code is in the public SDK, so anyone can modify it use it. i.e.
Anyhow, it looks like the underlying SDK already exposes some methods that I'll need, i.e. getting the Spline Length, interpolated poistions etc... So perhaps what is needed is a radio button that switches from percentage to absolute position along spline. And when switched to absolute position along spline, I think the weighting calculations should be left out.
I'll have to work on it tonight, since I have to go to work right now. PM me if you want to chat on IM during the day.
09-05-2007, 01:58 PM
Nice to hear from ya!
I was doing some ideas-crunching before and supposed that the toggle thing may not work, as in the track view, the vertical scale would need to to go up as high as there were units in the spline.
Essentially (with regards to percentage) the fcurve is scaled inversely in the vertical axis as the spline is lengthened. Suppose you start with a 100 unit spline and an animation from end to end:
Spline length = 100
fcurve values = 0 - 100
Then if you changed the spline length to 200 units:
Spline length = 200
fcurve values = 0 - 50
Does that make sense?
I don't know if you would/could dynamically scale the values with the radio toggle, or if you'd need a separate track (I suspect you would).
Anyway, I really appreciate you taking a look at it, and I can't wait to see what you come up with!
With curve math, your basically asking for a value along the curve to stay at that value even if it changes. This is remarkably easy to do, you take the value you want and divide it by curvelength() of the curve. So:
10/100 = 0.1
10/200 = 0.05
Then take this value and multiply it by 100 - The 10 value could be animated.
09-05-2007, 07:35 PM
Yeah, as I said the maths is pretty straightforward. It's just the SDK dependancies I'm hoping won't throw a spanner in the works.
Nice site BTW :)
09-06-2007, 02:12 PM
Ok, here is the progress so far. I got back pretty late last night, so I had to work on it this morning. I have hooked up the UI, and plugged the options into the parameter block. I have attached an image showing the results. I'll have to work on it tonight when I get home again, I just have really limited time, but I'll see if I can't finish it up tonight again.
09-06-2007, 03:00 PM
Very exciting results Chris!
How does it look in the track view? I'm looking forward to actually editing that fcurve in real units!
One thing I would say is how does it work with a freehand spline when you edit one of the points? Does the object's position update on the fly, or do you need to scrub the timeslider or such like?
Looking great so far though! Your efforts will be very much appreciated,
09-07-2007, 07:40 AM
Well, it looks like it's finished. However there is a pesky little hurdle I have to overcome to finish implementing it. More tomorrow, I'm tired.
09-07-2007, 08:20 AM
Argh! There's always pesky hurdles to overcome, aren't there?
If you want to ping me the dlc I'll PM you with my email.
All good Robin Hood.
09-08-2007, 02:53 AM
Ok, I have implemented the distance parameter, and it works well. Pesky little snag was easily overcome. So... peruse the attached picture for the new layout. The controller now has both a percentage and distance parameter that work at the same time.
However... (suprised huh? )
It's integration into trackview is not complete. More tomorrow then.
 Ok, after a little more testing, it looks like integration into the trackview is more complete than I thought. See other attached picture. :)
09-08-2007, 10:16 AM
You're going to have a seriously useful little controller here when you're done, Chris... I'm really looking forward to it.
Damn I wish I had the time to learn C++. There's so many things I'd like to make!
Things never "just take an evening" do they!?
09-11-2007, 11:38 AM
Dave, I'm still figuring out issues in the track view. Hopefully I'm almost there.
Send me and I.M. anytime you get back online, and I'll give you more details.
09-11-2007, 11:38 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.