--
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings: http://groups.google.com/group/python_inside_maya/subscribe
So I'm back to text field nightmare :)
I'm trying to learn more as to how to use it and so on. Strangely when I try to use the old part of code that work for me I cant get it to work with the new script so ehh... In any case here is what I'm trying to do...
Not sure but I cant get the Value to print what I input in to the text field...
Then once I got that to work(I broke it again somehow :( ) It wont change value in shader so awww...
Also any idea why I have to press the numeric Enter rather than standard Enter to execute?
Thanks, bye.
Now I got the print to work and so on
I just cant figure out why it cant change the setting to change :(
Thanks for reply Justin!
I did what you suggested but I still cant set attr.
I get this error:
# RuntimeError: setAttr: Error reading data element number 1: .25 #
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To post to this group, send email to python_in...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Thanks MarkJ for help ! Now this is piece of code I will scratch my head for a while... But I still cant figure out when I run this command
cmds.setAttr('%s.%s'%(materials,'diffuseColorAmount'),value)
Why I get this error
# RuntimeError: setAttr: Error reading data element number 1: 0 #
I put the txt content in to the value and then I tell it to be used when changing attr but it errors :(
Thanks, bye.
Hell yea! You totally naild it. I cant believe I didnt think of float! I was typing str(value) b4 but for some reason my mind did not connect the float option whh...
Thanks very much!
Now all works :) Yupieeee
Most Welcome
All well that's end well.
Cheerz!!!