Thanks for the solution and explanation Yannick. It's working perfectly now and I can finish converting my scripts.
Best posts made by DavidW
This user does not have any upvoted posts yet.
Latest posts made by DavidW
RE: Issue Changing Modeling Axisposted in Cinema 4D SDK •
Issue Changing Modeling Axisposted in Cinema 4D SDK •
I'm trying to convert a working COFFEE script for changing the modeling axis to Python. Updated tool data is printed to the Console but the Axis parameter is not changing.
import c4d def main(): tool_dat = doc.GetActiveToolData() tool_dat[c4d.MDATA_AXIS_MODE] = c4d.MDATA_AXIS_MODE_FREE c4d.EventAdd() if __name__=='__main__': main()