On 05/11/2016 at 18:35, xxxxxxxx wrote:
I'm writing a script to resize a rig and would like to send c4d.ID_CA_WEIGHT_TAG_SET to a weigh tag.
I found this C++ link:
This does not work:
Traceback (most recent call last) :
File "'active-layer.pypv'", line 515, in CoreMessage
File "'active-layer.pypv'", line 176, in ActiveLayerIsOn
TypeError: C4DAtom.Message expected dict, not c4d.DescID
So I made a guess and this seems to work:
tag = op.GetTag(c4d.Tweights)
data = dict()
data['id'] = c4d.ID_CA_WEIGHT_TAG_SET
Is this the correct way to Message() a C4DAtom with a script?
On 07/11/2016 at 02:38, xxxxxxxx wrote:
there's nothing wrong with your solution.
A bit shorter, the same could be achieved by using CallButton(), but there's really no difference otherwise.
On 07/11/2016 at 07:00, xxxxxxxx wrote: