THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 03/08/2011 at 15:43, xxxxxxxx wrote:
Here's an example:
import c4d from c4d import gui def main() : obj = doc.GetActiveObject() #Assigns the FFD to a variable obj[c4d.FFDOBJECT_SIZE]= c4d.Vector(10,10,10) #Sets the GridSize obj.Message(c4d.MSG_UPDATE) #Updates the object changes c4d.EventAdd() #Tells C4D that something has changed if __name__=='__main__': main()
You almost always need to use c4d.EventAdd() in order to get a proper update to your code. So you'll see it in just about every script. It tells C4D that something has changed. So do a refresh.
In this case. obj.Message(c4d.MSG_UPDATE) isn't absolutely needed. But it is needed in some cases when doing things like moving the individual verts. of an object or spline around.