• Products
    • Isadora
    • Get It
    • ADD-ONS
    • IzzyCast
    • Get It
  • Forum
  • Help
  • Werkstatt
  • Newsletter
  • Impressum
  • Dsgvo
  • Press
  • Isadora
  • Get It
  • ADD-ONS
  • IzzyCast
  • Get It
  • Press
  • Dsgvo
  • Impressum

Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags

    Read text from a file : I wrote a plugin

    Troubleshooting and Bug Reports
    text files plugins isadora 2 actors
    20
    69
    56185
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Skulpture
      Skulpture Izzy Guru last edited by

      Thanks @djinoui will give it a try at some point. 

      Graham Thorne | www.grahamthorne.co.uk
      RIG 1: Custom-built PC: Windows 11. Ryzen 7 7700X, RTX3080, 32G DDR5 RAM. 2 x m.2.
      RIG 2: Laptop Dell G15: Windows 11, Intel i9 12th Gen. RTX3070ti, 16G RAM (DDR5), 2 x NVME M.2 SSD.
      RIG 3: Apple Laptop: rMBP i7, 8gig RAM 256 SSD, HD, OS X 10.12.12

      1 Reply Last reply Reply Quote 0
      • A
        amosdishon last edited by

        Hello,

        I also tried to open it on Xcode  and tried to reproduce what djinoui wrote but as Grahm it's far out of my comfort zone!!! :-)

        So I'm getting 6 errors wich I understand about the same as if it were Chinese!

        Any Ideas?

        Thanks guys for helping
        Amos
        52e079-capture-decran-2013-09-25-a-25.09-10.29.png

        MBP Retina, OSX 10.7.4, i7 2.3 GHz, 16Gb RAM

        1 Reply Last reply Reply Quote 0
        • djinoui
          djinoui last edited by

          Oh it seems that all 6 errors are related to the _stat function, which is Windows-only. Try to remove the underscores (stat instead of _stat) in faulty lines and see if it compiles.

          stat seems to be a C function, not C++, so I don't know if this will work but it's worth a try.
          Maybe you will also have to change this line:
          size_t fileSize = -1; // file size (from stat() function)
          to
          off_t fileSize = -1; // file size (from stat() function)

          Computer: Asus N76VZ PC, Windows 7x64, Intel I7, 6G RAM, Isadora v1.3.1f06
          Isadora SDK dev computer: VirtualBox PC, Windows XPx32, 2G RAM, Isadora v1.3.1f06

          1 Reply Last reply Reply Quote 0
          • A
            amosdishon last edited by

            GREAT! Thank you!!!

            It still gives an error but the plugin works anyway!
            I managed to read a file (on the old mac I tried with isadora 1.3.0f17).

            attached you can find the .izzyplug working!

            Thanks again

            Amos
            3bcb0d-capture-decran-2013-09-25-a-25.09-12.26.png 2bc1ac-readtextfromfile.izzyplug.zip

            MBP Retina, OSX 10.7.4, i7 2.3 GHz, 16Gb RAM

            1 Reply Last reply Reply Quote 0
            • Skulpture
              Skulpture Izzy Guru last edited by

              Amazing well done @amosdishon!!

              Graham Thorne | www.grahamthorne.co.uk
              RIG 1: Custom-built PC: Windows 11. Ryzen 7 7700X, RTX3080, 32G DDR5 RAM. 2 x m.2.
              RIG 2: Laptop Dell G15: Windows 11, Intel i9 12th Gen. RTX3070ti, 16G RAM (DDR5), 2 x NVME M.2 SSD.
              RIG 3: Apple Laptop: rMBP i7, 8gig RAM 256 SSD, HD, OS X 10.12.12

              1 Reply Last reply Reply Quote 0
              • djinoui
                djinoui last edited by

                Great!

                Don't know what the error is about, but if the plugin works...

                Computer: Asus N76VZ PC, Windows 7x64, Intel I7, 6G RAM, Isadora v1.3.1f06
                Isadora SDK dev computer: VirtualBox PC, Windows XPx32, 2G RAM, Isadora v1.3.1f06

                1 Reply Last reply Reply Quote 0
                • vanakaru
                  vanakaru last edited by

                  Cool pluggin and thank you both. Works on OS X 10.6.8 Isadora 1.3.1f06.

                  MBP 4.1 & MBP (Retina, Mid 2012) MBP Retina 2017

                  1 Reply Last reply Reply Quote 0
                  • particlep
                    particlep last edited by

                    great plugin, great work.

                    i downloaded it to play with and found that (i'm on a mac) the text needed to be written with text wrangler rather than text edit for the plugin to read just the text.  i wonder if i've missed something in text edit?

                    isadora v3.0.7
                    mbp 2.6ghz i7
                    mac osx 10.12.6
                    dyslexic.

                    1 Reply Last reply Reply Quote 0
                    • djinoui
                      djinoui last edited by

                      Mmmmm... My assumption is that the default line endings are different in TextEdit and TextWrangler. Could you please post a sample of each text file, one created with TextEdit and the other one with TextWrangler ? So I could check how they are formatted.

                      Computer: Asus N76VZ PC, Windows 7x64, Intel I7, 6G RAM, Isadora v1.3.1f06
                      Isadora SDK dev computer: VirtualBox PC, Windows XPx32, 2G RAM, Isadora v1.3.1f06

                      1 Reply Last reply Reply Quote 0
                      • particlep
                        particlep last edited by admin

                        sure no problem.

                        ring.txt is made in text wrangler
                        once.txt is made in text edit
                        also is attached an image file of what the actor outputs with the text edit file
                        hope this helps.

                        90e614-text_edit.tiff 5f1599-ring.txt bb9daf-once.txt

                        isadora v3.0.7
                        mbp 2.6ghz i7
                        mac osx 10.12.6
                        dyslexic.

                        1 Reply Last reply Reply Quote 0
                        • djinoui
                          djinoui last edited by

                          Apparently TextEdit wrote the file using the RTF format, not plain text. RTF stores formatting (font, color...) information along with the text. That's why you get {\rtf1\ansi\ansicpg1252....etc. Just make sure you write your file in plain text with no formatting (or use another editor, which you did).

                          About line-endings : ring.txt has no line endings, but once.txt has LF line-endings in it, which are usually used on Unix OSes. I've read that MacOSX is built upon a Unix system, so if you use this OS (and I suppose you do), you will have to select 'unix' linebreak mode, not 'mac'.

                          Computer: Asus N76VZ PC, Windows 7x64, Intel I7, 6G RAM, Isadora v1.3.1f06
                          Isadora SDK dev computer: VirtualBox PC, Windows XPx32, 2G RAM, Isadora v1.3.1f06

                          1 Reply Last reply Reply Quote 0
                          • djinoui
                            djinoui last edited by

                            Oh. It's written in your signature ^^

                            Computer: Asus N76VZ PC, Windows 7x64, Intel I7, 6G RAM, Isadora v1.3.1f06
                            Isadora SDK dev computer: VirtualBox PC, Windows XPx32, 2G RAM, Isadora v1.3.1f06

                            1 Reply Last reply Reply Quote 0
                            • DusX
                              DusX Tech Staff last edited by

                              Very useful plugin.. thank-you!

                              This is my first use of the plugin:
                              https://www.facebook.com/photo.php?v=10153251586530464
                              this example only shows one line of text being read, but so far it is working with 30 lines looping..

                              Troikatronix Technical Support

                              • New Support Ticket Link: https://support.troikatronix.com/support/tickets/new
                              • My Add-ons: https://troikatronix.com/add-ons/?u=dusx
                              • Profession Services: https://support.troikatronix.com/support/solutions/articles/13000109444-professional-services

                              Running: Win 11 64bit, i7, M.2 PCIe SSD's, 32gb DDR4, nVidia GTX 4070 | located in Ontario Canada.

                              1 Reply Last reply Reply Quote 0
                              • djinoui
                                djinoui last edited by

                                Great video DusX!

                                Computer: Asus N76VZ PC, Windows 7x64, Intel I7, 6G RAM, Isadora v1.3.1f06
                                Isadora SDK dev computer: VirtualBox PC, Windows XPx32, 2G RAM, Isadora v1.3.1f06

                                1 Reply Last reply Reply Quote 0
                                • Armando
                                  Armando Beta Gold last edited by

                                  Thank you everyone. Can someone also do a video about compiling an Isadora Plugin? I think this is a good occasion...

                                  Armando Menicacci
                                  www.studiosit.ca
                                  MacBook Pro 16-inch, 2021 Apple M1 Max, RAM 64 GB, 4TB SSD, Mac OS Sonoma 14.4.1 (23E224)

                                  1 Reply Last reply Reply Quote 0
                                  • Skulpture
                                    Skulpture Izzy Guru last edited by

                                    +1 I'm with @Armando I'd quite happily do one but I have no idea...

                                    Graham Thorne | www.grahamthorne.co.uk
                                    RIG 1: Custom-built PC: Windows 11. Ryzen 7 7700X, RTX3080, 32G DDR5 RAM. 2 x m.2.
                                    RIG 2: Laptop Dell G15: Windows 11, Intel i9 12th Gen. RTX3070ti, 16G RAM (DDR5), 2 x NVME M.2 SSD.
                                    RIG 3: Apple Laptop: rMBP i7, 8gig RAM 256 SSD, HD, OS X 10.12.12

                                    1 Reply Last reply Reply Quote 0
                                    • mark
                                      mark last edited by

                                      "Can someone also do a video about compiling an Isadora Plugin?"

                                      Sounds like a job for me. Will try to make time for this in the coming month.

                                      Best Wishes,
                                      Mark

                                      Media Artist & Creator of Isadora
                                      Macintosh SE-30, 32 Mb RAM, MacOS 7.6, Dual Floppy Drives

                                      1 Reply Last reply Reply Quote 0
                                      • Armando
                                        Armando Beta Gold last edited by

                                        That would be super, Mark...

                                        Armando Menicacci
                                        www.studiosit.ca
                                        MacBook Pro 16-inch, 2021 Apple M1 Max, RAM 64 GB, 4TB SSD, Mac OS Sonoma 14.4.1 (23E224)

                                        1 Reply Last reply Reply Quote 0
                                        • Bill Cottman
                                          Bill Cottman last edited by

                                          Yes. Please do a tutorial video someone

                                          http://www.BillCottman.com : Isadora3.0.8f09 with MBP OS X 10.11.6 in Minneapolis, MN

                                          1 Reply Last reply Reply Quote 0
                                          • crystalhorizon
                                            crystalhorizon Beta Platinum last edited by

                                            Yeah, please!

                                            Alexander Nantschev | http://www.crystalhorizon.at | located in Vienna Austria

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post