THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 23/11/2008 at 11:45, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 11
Platform:
Language(s) : C++ ;
---------
Hi!
I have a beginner question. I have an object in a document and want to change its position in a ToolData::MouseInput.
> <code>
> Bool MyToolData::MouseInput(BaseDocument *doc, BaseContainer &data;, BaseDraw *bd, EditorWindow *win, const BaseContainer &msg;)
> {
> GetActiveDocument()->GetFirstObject()->SetPos(Vector(100));
> return TRUE;
> }</code>
Currently the objects position is not updated in the editr until I clicked on the object. I guess I have to update the object or document. I tried MSG_UPDATE or MSG_CHANGE which did not work.
Which Message needs to be sent (object? document?) ?
Thanks a lot.