Jump to content

Dynamic axis length


Varsha Kamble
 Share

Recommended Posts

Hi @Deltakosh,

I am adding axis to root node of model with which i can move whole model. Currently i am adding fixed length axis. But i want it to be dynamic depending on height - width of model.

With fixed length i am facing following issue.

For some models , height (or width ) is greater that the length of axis, due to which arrow of that axis is not visible (as it is inside the model). So i am not able to drag model in axis direction.

axiserror.png.3b93de4534b26f7c71ab3cf5619aa6d1.png

 

For above model, root node is at bottom of model, so Y axis is inside the model, due to which i am not able to drag model in Y direction.

axiscube.png.454b71eac1a0c41153c596f220c78e8b.png

For this model, fixed length works fine as all axis arrows are dragable.

 

Can you please help me to get height-width of model, so that i can create axis with dynamic length.

Thanks.

 

Regards,

Varsha

 

Link to comment
Share on other sites

If the model is not changing size etc after loading you could try forming a dummy mesh by merging all the meshes of the model without deleting the model,  dis-enable the dummy so it does not appear and find and store the info from the bounding box of the dummy and then dispose of the dummy. Never tried it but it might be worth a go! 😊

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...