C4DtoA : Add Arnold Parameter tag to object via python script ?

C4DtoA : Add Arnold Parameter tag to object via python script ?

nicholas_yue
Participant Participant
358 Views
1 Reply
Message 1 of 2

C4DtoA : Add Arnold Parameter tag to object via python script ?

nicholas_yue
Participant
Participant

The C4D python API has both InsertTag and MakeTag.


I need some example snippet how to create a BaseTag subclass of Arnold Parameters so that I can attached them to objects I am creating programmatically.


Cheers

0 Likes
359 Views
1 Reply
Reply (1)
Message 2 of 2

peter.horvath6V6K3
Advisor
Advisor

The id of the Arnold tag is 1029989. Here's a simple code snippet:

ARNOLD_TAG = 1029989

def main():
    obj = doc.SearchObject("Cube")
    obj.MakeTag(ARNOLD_TAG)
    c4d.EventAdd()
0 Likes