H18 vex array problem

   2302   3   0
User Avatar
Member
26 posts
Joined: 1月 2016
Offline
It's work when I use houdini 17.5.
Is it a Houdini 18 bug?
Edited by XiangYu - 2020年3月24日 09:59:27

Attachments:
1585048002-216557-snipaste-2020-03-24-19-06-25.jpeg (5.9 KB)

User Avatar
Member
2129 posts
Joined: 9月 2015
Offline
Not sure what your talking about/mean.

Your screen shot version:

int vec[]={0,1,2,3};
printf("%g,vec[-1]);

works as expected in any version of Houdini including H18.(It does for me)

However, your initial typed version:

int ve = {2,1};
i@a=ve;

Does not work in any version of Houdini - Here your trying to set an int with an int array.
Edited by BabaJ - 2020年3月24日 10:18:17
User Avatar
Member
77 posts
Joined: 2月 2017
Offline
QunZhu, Your Houdini may get some trouble…

Attachments:
2020-03-24_221346.png (6.0 KB)

My Youtube Channel [www.youtube.com]
User Avatar
Member
8832 posts
Joined: 7月 2007
Offline
also if you posted screenshot just because your[]were cut off
you can use code block to post code directly, it may be easier for everyone
like this:
int vec[]={0,1,2,3};
printf("%g",vec[-1]);
but yes, that code seems to be working in H18, but try newer build, I recall this coming up once before
Edited by tamte - 2020年3月24日 10:35:03
Tomas Slancik
FX Supervisor
Method Studios, NY
  • Quick Links