vbk!!! Posted February 1, 2016 Share Posted February 1, 2016 Hello, I have a node parameter with a little expression to allow me to get a list of strings.Now, in another node, I would like to write a new expression returning a specific component of the previously created list.But I can't get it to work.ch('myNodePath') : return the list len(ch('myNodePath')) : return the lengthof the listch('myNodePath')[0] : return a bracket instead of the first component Thanks for your help Quote Link to comment Share on other sites More sharing options...
fathom Posted February 1, 2016 Share Posted February 1, 2016 my guess is that your list is actually a string that looks like a list. try putting eval() around it prior to trying to pull the first index. Quote Link to comment Share on other sites More sharing options...
fsimerey Posted February 1, 2016 Share Posted February 1, 2016 my guess is that your list is actually a string that looks like a list. try putting eval() around it prior to trying to pull the first index. My guess too. Are you shure this expresion : len(ch('myNodePath')) is returning the correct length of items and not the length of string ? Quote Link to comment Share on other sites More sharing options...
vbk!!! Posted February 1, 2016 Author Share Posted February 1, 2016 of course ! your certainly right ! Thx Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.