this is the code hou.node(“/obj/cam1”).worldTransform().extractTranslates()
when i type it in python shell, it works fine. but i want it apply to a obj's transform,it denied!
this is the error:
Error: Unable to evaluate expression (
Traceback (most recent call last):
File “<stdin>”, line 1, in <module>
AttributeError: ‘NoneType’ object has no attribute ‘worldTransform’
(/obj/null1/tx)).
python code in obj's tx
4048 5 1-
- luoqiulin
- Member
- 326 posts
- Joined: May 2007
- Offline
-
- symek
- Member
- 1390 posts
- Joined: July 2005
- Offline
-
- graham
- Member
- 1926 posts
- Joined: Nov. 2006
- Offline
The code works fine for me and there's no reason why it should be failing assuming your path to the node is correct. The error is a result of it not being able to find your specific node so double check your spelling I suppose. If that doesn't work maybe post a hip file.
Graham Thompson, Technical Artist @ Rockstar Games
-
- luoqiulin
- Member
- 326 posts
- Joined: May 2007
- Offline
-
- graham
- Member
- 1926 posts
- Joined: Nov. 2006
- Offline
-
- luoqiulin
- Member
- 326 posts
- Joined: May 2007
- Offline
-
- Quick Links


thank you very much!!