H18 vex array problem

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

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

User Avatar
Member
2127 posts
Joined: Sept. 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 - March 24, 2020 10:18:17
User Avatar
Member
77 posts
Joined: Feb. 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
8785 posts
Joined: July 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 - March 24, 2020 10:35:03
Tomas Slancik
FX Supervisor
Method Studios, NY
  • Quick Links