Python errors in example scripts

Python errors in example scripts

dlincol1
Advocate Advocate
1,247 Views
2 Replies
Message 1 of 3

Python errors in example scripts

dlincol1
Advocate
Advocate

Getting python errors in versions SR1-SP1 and SP2 for example scripts: 'camera-fixed-object.py' and 'camera-fixed-object2.py'

Left image is 2015 SP1(no errors), right image is 2015 SR1-SP1

fixed_camera_example.PNG

Regards,
Dan
0 Likes
Accepted solutions (1)
1,248 Views
2 Replies
Replies (2)
Message 2 of 3

sinje_thiedemann
Autodesk
Autodesk
Accepted solution

Hi,

 

the previous version of findNodePath() also accepted only a node name instead of a node path. It returned the result of findNode then. This has changed since 2015 SR1-SP1. We'll look into that.

Workaround:

Change line

obj = findNodePath("tasse_body")

 to

obj = findNode("tasse_body")

 

Then both scripts should work again.

 

Best regards

Sinje

0 Likes
Message 3 of 3

dlincol1
Advocate
Advocate

Ok, thanks for responding.

Regards,
Dan
0 Likes