I'm able to pass a variable from my cc apps to my extension by creating an event listener. Turning the data in to a string (with .toSource() method). I then eval the data and have it back as an object (literal in my particular case).
But what about passing a variable to my app ie. - evalScript('$._ext.artistPathFunc(5)') passes 5 to the function but x = 5;evalScript('$._ext.artistPathFunc(x)')" says object undefined. I've tried evalScript('$._ext.artistPathFunc(x.toSource())') but get the same result.Solutions? Thoughts?