取消
显示结果 
搜索替代 
您的意思是: 

Why it can't work?

Even not icon view would have told you it was a U8.  It just would not have told you it was a progress bar.

0 项奖励
11 条消息(共 17 条)
866 次查看

So another question is why. The fact that a progress bar defaults to u8 must be rooted in very ancient times where memory was tight and very expensive. 😄

12 条消息(共 17 条)
861 次查看

@altenbach wrote:

So another question is why. The fact that a progress bar defaults to u8 must be rooted in very ancient times where memory was tight and very expensive. 😄


Its for the same reason most digital o-scopes are 8 bit.  They are meant for human eyeballs and 8-bits is finer than the eye can easilly distinguish.  

 

EDIT: Huh? I'm telling that to who?吃惊表情


"Should be" isn't "Is" -Jay
0 项奖励
13 条消息(共 17 条)
849 次查看
Well, I'd guess that a progress bar would be used to show 0-100.
0 项奖励
14 条消息(共 17 条)
840 次查看

@Dennis_Knutson wrote:
Well, I'd guess that a progress bar would be used to show 0-100.

Yes, but in 100% of my applications it is based on N and i of a FOR loop, so I32 would avoid a coercion and extra data copy. 😉

 

I always change the representation to I32.

 

(Here's what I typically use. For a parallel FOR loop it is a little more complicated as discussed elsewhere....;))

 

 

 

(Also a percent value is generally based on a division, so it is typically not even an integer. What if the progress bar is 300 pixels wide and shows a digital display showing the progress with two decimal digits? Now we need a DBL)

0 项奖励
15 条消息(共 17 条)
835 次查看

altenbach wrote:

 

I always change the representation to I32.

 

(Here's what I typically use. For a parallel FOR loop it is a little more complicated as discussed elsewhere....;))

 

 

 

(Also a percent value is generally based on a division, so it is typically not even an integer. What if the progress bar is 300 pixels wide and shows a digital display showing the progress with two decimal digits? Now we need a DBL)


I also normally change the representation to I32.  But I also use a property node before the FOR loop to set the maximum to N.  Inside the FOR loop, I then just wire i straight into the progress bar's terminal.  It avoids all of the extra math at the expense of writing to a property node once.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 项奖励
16 条消息(共 17 条)
784 次查看

Yes, that works if you don't show the digital display.

 

(It also won't work for parallel FOR loops because [i] will be in random order. 😉 You would still need more advanced code)

0 项奖励
17 条消息(共 17 条)
777 次查看