Community
VRED Forum
Welcome to Autodesk’s VRED Forums. Share your knowledge, ask questions, and explore popular VRED topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to get a node center by Python

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
zhujianchen
235 Views, 2 Replies

How to get a node center by Python

Hello, all.

Could anyone tell me how to get a node center(like information in the below picture ) by Python? Thanks a lot!

 

zhujianchen_0-1731405198165.png

 

2 REPLIES 2
Message 2 of 3

Hi if you need the Object center you can use the bounding box and then use it coordinates

bBox = yourNode.getBoundingBox()
bBoxCenter = vrdBoundingBox.getCenter()

 

best

Chris 

Christian Garimberti
Technical Manager and Visualization Enthusiast
Qs Informatica S.r.l. | Qs Infor S.r.l. | My Website
Facebook | Instagram | Youtube | LinkedIn

EESignature

Message 3 of 3

Hi, Chris
Thanks a lot! That do work for me.
best

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report