First Question - All objects should have the same height

   209   2   1
User Avatar
Member
2 posts
Joined: April 2023
Offline
Hi,

this is my first question in this forum. I am a beginner and made a little sim.
but now i can not find any way to get advance.


I have a problem. All objects should have the same height, even if the size is changed, the height should always remain the same.
Please, can anyone tell me what i have to do?

the file is attached to check my sim

Attachments:
Houdini_Screenshot_a-2024-04-26.jpg (63.5 KB)
Houdini_Screenshot_b-2024-04-26.jpg (121.6 KB)
Houdini_Screenshot_c-2024-04-26.jpg (45.3 KB)
Test_sim_c1.hipnc (210.9 KB)

User Avatar
Member
397 posts
Joined: Nov. 2016
Offline
Hi! Instead of setting pscale, set scale, which is a vector with components for x, y and z.

so instead of your last line:

float myscale = fit01(ramp, chf('pscale_min'), chf('pscale_max'));
v@scale = set(myscale, 1, myscale);

Edit: Noticed your y component is probably not the one who should remain unchanged, but you get the idea.
Edited by Tanto - April 26, 2024 11:56:45
User Avatar
Member
2 posts
Joined: April 2023
Offline
Hi Tanto,

thank you very much. You made my day ;->
it worked perfect.

tnx
  • Quick Links