You can use the split command to get to those numbers:
[split "0.999945,-0.000000,-0.010472" ","]

If you want to get to a specific index in the resulting list you can use the "lindex" command:
[lindex [split "0.999945,-0.000000,-0.010472" ","] 2 ]


Cheers,
frank


On 16/11/16 8:23 AM, Adrian Cruceru wrote:
Hi

I got a metadata key that has a value of:
-0.514284,0.001071,0.289285,-0.001071
How can i get each of these 4 numbers in an expression?
[metadata input/key] will give me the value as a string which does not make too much sense in an expression node, i need floats, each one separated For instance I can have the camera position from a 3d render as metadata and or course it will have 3 components, x, y and z like for instance:
0.999945,-0.000000,-0.010472
How can i get one component from a metadata key that has numbers followed by comas? I need this in TCL expression if posible

Thanks

Cheers

--
Adrian Cruceru
df(x)


_______________________________________________
Nuke-users mailing list
Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users

_______________________________________________
Nuke-users mailing list
Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users

Reply via email to