THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 23/03/2009 at 18:13, xxxxxxxx wrote:
Cinema 4D Version: 10.1
Platform: Windows ; Mac OSX ;
Language(s) : C++ ;
When the user uses the scale tool while being in the axis mode (not the object or model mode), he can set the scale of an object without changing its look.
E.g. he has a polygon object scaled to (1.0;0.5;1.0) to flatten it. Then he uses the axis mode to re-set the scale to (1.0;1.0;1.0), and the object stays flat.
How can I do this from code? I guess it's very simple, but I didn't find out yet.
Thanks in advance for help!
On 23/03/2009 at 18:58, xxxxxxxx wrote:
Ah, OK. Got it now
(Thanks again, Dan)
On 13/06/2009 at 16:54, xxxxxxxx wrote:
may i ask where you found the solution? i couldnt get it
cheers and thanks,
On 14/06/2009 at 02:28, xxxxxxxx wrote:
You have to scale the object's matrix (just like normal) and then re-scale the geometry to compensate the different object scale. So just iterate through the points and multiply each point coord with the appropriate matrix.
On 14/06/2009 at 06:19, xxxxxxxx wrote:
thats a pretty complex procedure for a simple c4d action.