--Thanks a lot
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 view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/1997162e-e6f0-4e1e-99b0-157368c7184c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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 view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/153edbd8-08b0-47b1-98a8-66d877b88ae2%40googlegroups.com.
On Thu, 1 Sep 2016, 7:27 AM Eric S <cloud...@gmail.com> wrote:Thanks Justin for your explination.
Whish this feature we can achive in future.
In eclipse realtime feedBack really helpfull and when the script executed feom eclipse go to maya we can undo it, when do this with sublime maya can't undo it.Can you do me a favor and log a detailed feature request to the project (or more than one if you have multiple new features) ?List what behavior you want to see. I will try to find some time to work on it.Thanks!
--
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_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/153edbd8-08b0-47b1-98a8-66d877b88ae2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA0%2BPONCdZzJaZt_Oywg4MUKZOtf%2B%3DCUE8gBnVFBUZzstw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Thanks for doing that Justin!
(from a happy user of may sublime)
On Thu, Sep 1, 2016 at 4:07 AM, Justin Israel <justin...@gmail.com> wrote:On Thu, 1 Sep 2016, 7:27 AM Eric S <cloud...@gmail.com> wrote:Thanks Justin for your explination.
Whish this feature we can achive in future.
In eclipse realtime feedBack really helpfull and when the script executed feom eclipse go to maya we can undo it, when do this with sublime maya can't undo it.Can you do me a favor and log a detailed feature request to the project (or more than one if you have multiple new features) ?List what behavior you want to see. I will try to find some time to work on it.Thanks!
--
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 view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/153edbd8-08b0-47b1-98a8-66d877b88ae2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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 view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA0%2BPONCdZzJaZt_Oywg4MUKZOtf%2B%3DCUE8gBnVFBUZzstw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
--
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 view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPaTLMQhv2CW62XfgD63uRAFyaZC75eWLTtdq_tk5%3D_novFz4g%40mail.gmail.com.
On Thu, 1 Sep 2016, 7:27 AM Eric S <cloud...@gmail.com> wrote:Thanks Justin for your explination.
Whish this feature we can achive in future.
In eclipse realtime feedBack really helpfull and when the script executed feom eclipse go to maya we can undo it, when do this with sublime maya can't undo it.Can you do me a favor and log a detailed feature request to the project (or more than one if you have multiple new features) ?List what behavior you want to see. I will try to find some time to work on it.Thanks!
--
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_maya+unsub...@googlegroups.com.
Yes i will do it, thanks a lot Justin ^____^
On Thursday, September 1, 2016 at 4:07:50 AM UTC+8, Justin Israel wrote:
On Thu, 1 Sep 2016, 7:27 AM Eric S <cloud...@gmail.com> wrote:Thanks Justin for your explination.
Whish this feature we can achive in future.
In eclipse realtime feedBack really helpfull and when the script executed feom eclipse go to maya we can undo it, when do this with sublime maya can't undo it.Can you do me a favor and log a detailed feature request to the project (or more than one if you have multiple new features) ?List what behavior you want to see. I will try to find some time to work on it.Thanks!
--
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 view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/153edbd8-08b0-47b1-98a8-66d877b88ae2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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 view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/e5e38460-5f5d-4b2d-a6ee-383d86377ee1%40googlegroups.com.
Based on your description alone, I spot a few potential problems with that approach.
1. What should the sender do when Sublime closes? How will it know that Sublime closes? Say, for example, that Sublime crashes (spoiler alert, it can't know).
2. Second, what should happen if you have multiple Sublime and/or multiple Maya's?
I get that you use UDP rather than TCP to avoid having to wait for confirmation from a potentially dead Sublime, but I'm less sure about how elegant that actually is.
Another way might be to instead of pushing updates *to* Sublime, I would pull *from* Sublime. You could let Maya build up a buffer of messages that got emptied at a regular (of on demand) basis. That would eliminate the risk of Maya pushing messages unnecessarily. The buffer could optionally include a timestamp for each message such that you could pull a particular range of dates, so as to not prevent others from receiving any, and to not receive doubles.This way worst case scenario is an endless buildup of this buffer internal to Maya that never gets emptied. To solve that, you could either periodically empty it from within Maya, or only allow a fixed number of messages in it.
For multiple concurrent sessions; I'm assuming you deal with this already, otherwise I've got an idea or two for this as well!
--
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 view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOCS_yUK_7tSEaxZCk6wgtadPwScZXoqcVVYnY02pqp7fQ%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOCS_yUK_7tSEaxZCk6wgtadPwScZXoqcVVYnY02pqp7fQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
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_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA3woEpCJWcsHTQrXSx8CKsFCz4fyRhHLEFeYk%3D%3DmUxy7g%40mail.gmail.com.
> This actually sounds a lot more complicated than using udp. I didn't only use it for the aspect of not waiting for a response. I also used it because it is connectionless and I don't have to deal with the other side disconnecting on me. Maya just sends output. If sublime is there to pick it up, then it gets displayed. I don't see the need to buffer anything really.I'm surprised you said this. :( I would have expected you to care about your software cleaning up after itself.
On 3 September 2016 at 13:04, Justin Israel <justin...@gmail.com> wrote:
Thanks for starting to look at this. Replies inline..On Sat, 3 Sep 2016, 11:40 PM Marcus Ottosson <konstr...@gmail.com> wrote:Based on your description alone, I spot a few potential problems with that approach.
1. What should the sender do when Sublime closes? How will it know that Sublime closes? Say, for example, that Sublime crashes (spoiler alert, it can't know).It won't matter if sublime closes. Maya would publish to udp and no one will receive it so it gets dropped. That was one reason for choosing udp over tcp2. Second, what should happen if you have multiple Sublime and/or multiple Maya's?In the case of multiple sublimes, each one creates a random ephemeral port and tells Maya to use that port when installing the callback. But you bring up a good point because I think I still have a clash that will happen when it saves the callback for removal. I need to namespace the callback by the port number it is given.With multiple Maya's, I am not sure it will be an issue since MayaSublime has to be configured with a port for the target Maya. So extra Maya sessions wouldn't be able to open the same command port. Basically it's only going to talk to the one it is configured to connect with.I get that you use UDP rather than TCP to avoid having to wait for confirmation from a potentially dead Sublime, but I'm less sure about how elegant that actually is.
Another way might be to instead of pushing updates *to* Sublime, I would pull *from* Sublime. You could let Maya build up a buffer of messages that got emptied at a regular (of on demand) basis. That would eliminate the risk of Maya pushing messages unnecessarily. The buffer could optionally include a timestamp for each message such that you could pull a particular range of dates, so as to not prevent others from receiving any, and to not receive doubles.This way worst case scenario is an endless buildup of this buffer internal to Maya that never gets emptied. To solve that, you could either periodically empty it from within Maya, or only allow a fixed number of messages in it.This actually sounds a lot more complicated than using udp. I didn't only use it for the aspect of not waiting for a response. I also used it because it is connectionless and I don't have to deal with the other side disconnecting on me. Maya just sends output. If sublime is there to pick it up, then it gets displayed. I don't see the need to buffer anything really.Initially before deciding to use udp, I was going to have Maya write to a text file. And then Sublime would read it. But then I wouldn't be able to use select() in case the file gets stored on nfs. And then I would have to just poll it for changes at intervals.Seems udp gives me active feedback as messages arrive.For multiple concurrent sessions; I'm assuming you deal with this already, otherwise I've got an idea or two for this as well!So far I haven't done anything to try to support multiple Maya sessions. I would have to extend MayaSublime to be able to connect to alternate commandPorts. Is that what you meant?
--
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 view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOCS_yUK_7tSEaxZCk6wgtadPwScZXoqcVVYnY02pqp7fQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
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 view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA3woEpCJWcsHTQrXSx8CKsFCz4fyRhHLEFeYk%3D%3DmUxy7g%40mail.gmail.com.
--
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 view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOC2Aikemic-M%3DuS19G1PL0DnwT5w8QJ01x6%2BPUjwjDhtw%40mail.gmail.com.
On Sun, 4 Sep 2016, 12:20 AM Marcus Ottosson <konstr...@gmail.com> wrote:> This actually sounds a lot more complicated than using udp. I didn't only use it for the aspect of not waiting for a response. I also used it because it is connectionless and I don't have to deal with the other side disconnecting on me. Maya just sends output. If sublime is there to pick it up, then it gets displayed. I don't see the need to buffer anything really.I'm surprised you said this. :( I would have expected you to care about your software cleaning up after itself.I don't understand this comment. Why are you implying that my software is not cleaning up after itself? What is the difference between Maya posting to a udp port and it buffering data in memory that someone isn't collecting? Udp should be quite low impact. It's no different than if we told Maya to write the script editor to a file that someone either tailed or didn't. Or if a plugin emits it's log output to some logging endpoint.I do have the ability to stop the publisher when Sublime shuts down. But only in ST3 because they give you a plugin unload hook. That is already added to MayaSublime.The only way I can really see to get Maya to stop publishing if Sublime goes away is to have a heartbeat. If Maya didn't see an updated timestamp in a period of time, it might disable the publish. But really I would have to profile and determine that it even matters. I have to believe sending to udp is faster than having the script editor open and seeing the output write to that widget.
Slow down. Take a moment, think about what's been said and I'll think you'll find that (a) I pointed out a problem in your program and (b) offered advice. I did that because I wanted you to succeed and because you asked for it. There's no need to get offended, I think it's a good idea.
--
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 view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOAZie34UXJc4eTdqHokN5-srtxQv5ZdfeV-51ekiMATVw%40mail.gmail.com.