- Posts: 92
- Joined: Thu Feb 09, 2023 7:23 pm
- Real Name: Leonhard Scarlet
In LUA,
But in python
The interesting thing is that
But settings = BS.SaveSettings() returns different for Python and LUA
I'm trying to get the same result from lua in python, because I need the following structure to make some modifications. I've been trying this for a few days, but to no avail.
- Code: Select all
settings = BS:SaveSettings()
- Code: Select all
table: 0x026ab338
table: 0x026934c0
But in python
- Code: Select all
settings = BS.SaveSettings()
- Code: Select all
{'Tools': OrderedDict([('XYPath2X', {'__ctor': 'BezierSpline', 'SplineColor': {'__flags': 256, 'Red': 255, 'Green': 77, 'Blue': 0}, 'CtrlWZoom': False, 'NameSet': True, 'KeyFrames': {0.0: {'__flags': 256, 1: 0.0, 'RH': {'__flags': 256, 1: 0.6666666666666666, 2: 0.0}, 'Flags': {'__flags': 256, 'Linear': True}}, 2.0: {'__flags': 256, 1: 0.0, 'LH': {'__flags': 256, 1: 1.3333333333333333, 2: 0.0}, 'Flags': {'__flags': 256, 'Linear': True}}}})])}
{'Tools': OrderedDict([('XYPath2Y', {'__ctor': 'BezierSpline', 'SplineColor': {'__flags': 256, 'Red': 0, 'Green': 255, 'Blue': 76}, 'CtrlWZoom': False, 'NameSet': True, 'KeyFrames': {0.0: {'__flags': 256, 1: 0.0, 'RH': {'__flags': 256, 1: 0.6666666666666666, 2: 0.0}, 'Flags': {'__flags': 256, 'Linear': True}}, 2.0: {'__flags': 256, 1: 0.0, 'LH': {'__flags': 256, 1: 1.3333333333333333, 2: 0.0}, 'Flags': {'__flags': 256, 'Linear': True}}}})])}
The interesting thing is that
- Code: Select all
print(BS)
- Code: Select all
BezierSpline (0x000001A1EAF6C100) [App: 'Resolve' on 127.0.0.1, UUID: 3fe34d2b-4d2f-4f9d-bd61-915342420437]
BezierSpline (0x000001A1EAF6D0C0) [App: 'Resolve' on 127.0.0.1, UUID: 3fe34d2b-4d2f-4f9d-bd61-915342420437]
But settings = BS.SaveSettings() returns different for Python and LUA
I'm trying to get the same result from lua in python, because I need the following structure to make some modifications. I've been trying this for a few days, but to no avail.