@Dunhou said in Geometry Axis asset node and LoadAssets:
Hi there,
In C4D 2024, the Geometry Axis can not accessible in python anymore, how can I fix that?
from typing import Optional
import c4d
doc: c4d.documents.BaseDocument # The active document
op: Optional[c4d.BaseObject] # The active object, None if unselected
def main() -> None:
for i, (bc, descid, _) in enumerate(op.GetDescription(c4d.DESCFLAGS_DESC_0)):
name = bc[c4d.DESC_NAME]
if name == "Axis X":
print(i,descid)
print(op[descid])
if __name__ == '__main__':
main()
2024
[image: 1699255573905-832ba1ea-2683-4deb-95de-67444dbcf033-image.png]
2023
[image: 1699255607788-d37942ef-53b5-4e13-9cab-2946766c3fd6-image.png]
Cheers~
DunHou
Hi, this issue have been fixed in 2024.2 and your code is working as it was previously.
Cheers,
Maxime.