четверг, 14 марта 2013 г., 4:14:30 UTC+2 пользователь Justin Israel написал: > The default buffer size for the commandPort is 4096. This means you should > not expect to receive a response larger than the buffer, since maya will just > return an error in that case. > > > > data = conn.recv(4096) > > > > This will receive up to 4096 bytes. You may get less. > > > > > On Thu, Mar 14, 2013 at 2:56 PM, vux wrote: > > I use commandPort and socket\telnetlib to communicate with maya. > > My maya functions returns results with different sizes. So how to know how > many bytes i need to read from result? For example connection.recv(?) > > > > -- > > 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 [email protected]. > > To post to this group, send email to [email protected]. > > For more options, visit https://groups.google.com/groups/opt_out.
-- 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 [email protected]. To post to this group, send email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
