User Tag List

Results 1 to 3 of 3

Thread: Python Object - Get Python Variables from MMF2

  1. #1
    Forum Moderator Multimedia Fusion 2 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    DizzyDoo's Avatar
    Join Date
    Oct 2006
    Location
    South England
    Posts
    718
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Python Object - Get Python Variables from MMF2

    Hi Mathias, I was asking you about this in Gwerdy a few days ago, but I've had little luck since.

    Here is a small .mfa that I think clearly shows what I'm trying to accomplish.

    I'm trying to access values held in Python, but can I only call global or registered functions? It'd be a shame to have to get all Java-y and write out getters/setters for all the variables, but I'm sure I'm just missing something obvious. Cheers!
    Making games at Cranktrain.
    @MattLuard on Twitter.

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleSWF Export ModuleXNA Export Module
    Fusion 2.5 (Steam)
    Mathias's Avatar
    Join Date
    Jun 2006
    Location
    Copenhagen, Denmark
    Posts
    1,083
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    You can't "call" numbers or instance attributes. To do what you're trying to do, you could use the Evaluate expression: http://*******/GetValueQuestion.mfa


  3. #3
    Forum Moderator Multimedia Fusion 2 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    DizzyDoo's Avatar
    Join Date
    Oct 2006
    Location
    South England
    Posts
    718
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Brilliant! Thanks Mathias, I now know what the Evaluate expression does.
    Making games at Cranktrain.
    @MattLuard on Twitter.

Similar Threads

  1. Python object
    By Mathias in forum Released Extensions
    Replies: 12
    Last Post: 8th August 2022, 06:54 AM
  2. MMF2.5 - Python Extension Error
    By droberson in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 9th December 2013, 01:04 AM
  3. Python not working correctly when exported (and Python with iOS)
    By iOSC in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 20th April 2013, 12:10 PM
  4. Python or Lua faster with MMF2
    By droberson in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 17th November 2012, 04:06 PM
  5. Basic Python Object Help
    By DizzyDoo in forum Python Scripting
    Replies: 1
    Last Post: 22nd May 2010, 06:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •