THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 13/03/2011 at 22:25, xxxxxxxx wrote:
Cinema 4D Version: 12
Language(s) : C.O.F.F.E.E ; PYTHON ;
When I try to execute the Character->Paint Tool "Apply All" button to change the values of a vertex map tag. Nothing happens.
There are no errors. But the vertex map tag doesn't update the strength value changes.
I haven't tested all the options in the paint brush yet. But so far they all seem to work except for the two Apply buttons. So I'm wondering if I'm either not updating it properly, or if it's a bug?
Here's the code:
var obj = doc->GetFirstObject();
var mytag = obj->GetFirstTag(); //The first tag is a Vertex Map tag
tool()#ID_BRUSH_BASE_TOOL_STRENGTH=1; // Works fine
tool()#ID_CA_PAINT_TOOL_MODE=2; // Works Fine
tool()#ID_CA_PAINT_TOOL_APPLY_ALL; //Does not seem to work
//CallButton(mytag,ID_CA_PAINT_TOOL_APPLY_ALL); //Also does not seem to work
I've tried the tool() method and the CallButton() method and neither one seems to work.
Are we really supposed to go digging through the res->modules *.h files to get the ID's for theses things?
Every time I do this I feel like I'm hacking into something that Maxon never intended for us to know about and use.
On 18/03/2011 at 02:50, xxxxxxxx wrote:
There is an error in your CallButton() call. You have to pass the active tool.
On 18/03/2011 at 09:04, xxxxxxxx wrote:
Thank you sir.