JacquesLucke / animation_nodes

Node based visual scripting system designed for motion graphics in Blender.
Other
2.28k stars 342 forks source link

Increasing the amount of decimals / significant digits shown in the nodes #1305

Closed stillpointx closed 4 years ago

stillpointx commented 4 years ago

Is there a way to increase the amount of decimals / significant digits shown in the nodes? I type in .003 but 0.00 is shown.

http://i.imgur.com/gfJRM38.png

gfJRM38

OmarEmaraDev commented 4 years ago

This is just a display thing, the actual value you typed is retained.

20200203-111844

stillpointx commented 4 years ago

But can we change the node to show it without adding another viewer node?

OmarEmaraDev commented 4 years ago

We can show up to 6 digits I think. But the question is if we should. It looks like this:

20200203-125218

stillpointx commented 4 years ago

If it doesn't break something why not give the user the option? Default could be two decimal places and an option to use more if desired. I'm using it to animate strange attractors / chaos theory stuff which the smallest change has large effects even 0.0031 effects things drastically over time. These images are made with very slight changes. https://ijk4de.gitlab.io/3d/ . To have .003 show up as 0.00 is very strange would be nice to have an option to change this behavior if it doesn't break something.

OmarEmaraDev commented 4 years ago

Implemented in 6d8aba6.

stillpointx commented 4 years ago

Thanks! :-)

OmarEmaraDev commented 4 years ago

I am sorry, but we had to revert this commit as we don't believe it is a good solution. However, we are exploring alternatives and we will hopefully reach a satisfactory solution.

stillpointx commented 4 years ago

Thanks for the update.