Scaling 'sweep' spline sub-object.
As part of the Tyre-Tire script I wanted to include an option which would scale the 'Sweep Modifier' custom shape in proportion to changing the radius of the created object.
Whilst a simple 'scale' on the whole object would have done the job perfectly well I was intrigued to see if I could replicate the really easy 'manual' method with some mxs code.
The end result was to add a Linked XForm modifier to the spline object and apply the scale to 'it'......thus scaling the spline sub-object and also updating the 'sweep' modifier.....in real-time.
I have since been reliably informed that this can also be achieved without using the Linked XForm modifier for a more elegant solution.....cue barigazy!
So although a solution is found I very much look forward to seeing the alternative.
Cheers.....(esp barigazy)
Comments
Very nice.....
Sorry its been a while since you posted that code....had to do some 'real' work for a change.
Nice code there Barigazy, much cleaner than I had managed.
I'll implement it and tidy up my sloppy code with all haste......once I've had a coffee.
Thanks again.
Regards.
...
Yup. It's been a while :)
My pleasure
Cheers!
bga
...
I already post the solution how to manually extract custom profile from sweep modifier but just in case...
bga
,,,
This is the one of few solutions (maybe someone have better idea) that can solve your problem
Next example shows how to scale star shape 50% that is used as sweep profile
bga