64bit integer attribute

   2009   3   1
User Avatar
Member
271 posts
Joined: March 2012
Offline
Hi all,
I find myself in a situation where I need to use a 64bit integer in order to create an unique id (and there is no other way around it). However, wrangle nodes and VOPs seem to be limited to 32 bit, so the question is - how do you perform calculations on 64 bit integer attributes?
I've attached a simple scene that demonstrates the problem, in which you can see that the attribute ‘a’ becomes screwed up because it exceeds a 32 bit int, even though teh variable is 64 bit.

Attachments:
Bit_id.hipnc (112.6 KB)

User Avatar
Member
173 posts
Joined: April 2014
Offline
I think it's in the vex documentation that 64 bit value will be casted to 32 bit. It's just a limitation of vex and hence vops. I really don't know if there's a work around.
User Avatar
Member
387 posts
Joined: Nov. 2008
Offline
https://www.sidefx.com/forum/topic/43740/ [sidefx.com]
User Avatar
Member
271 posts
Joined: March 2012
Offline
Hmm. Interesting. Next time I'll have to plan ahead knowing that this happens
  • Quick Links