Jump to content

Dynamic axis length

Varsha Kamble

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.



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.


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.






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.

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.


  • Recently Browsing   0 members

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