Thanks for the solution and explanation Yannick. It's working perfectly now and I can finish converting my scripts.
0
Reputation
2
Posts
60
Profile views
0
Followers
0
Following
Best posts made by DavidW
This user does not have any upvoted posts yet.
Latest posts made by DavidW
RE: Issue Changing Modeling Axis
posted in Cinema 4D SDK •
Issue Changing Modeling Axis
posted 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()