User Tag List

Results 1 to 3 of 3

Thread: [Request] Set properties from expression

  1. #1
    Clicker Multimedia Fusion 2

    Join Date
    Sep 2006
    Location
    Britain, South Coast
    Posts
    1,030
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Request] Set properties from expression

    Hi all,

    This is beyond me, but I suspect it should be quite straightforward for someone with more object selection experience.

    I was wondering if someone could make an object that changed standard properties of another object by fixed ID in an expression. If we call the object 'imposer' for now. E.g:

    setX("Imposer", Fixed("Target Object"))

    or

    setX$("Imposer", Fixed("Target Object"))

    Would set the X position of 'Target Object' and return either 0 or an empty string.


    The reason for this object is that it could be used to make use of action-loops to process objects in ways that currently require fastloops. Action loops avoid a lot of the header and footer code involved in fast loops and are a lot quicker.

    It'd be ideal if it could impose things like X/Y position, direction, and maybe alterable values and strings? Just the most basic features which I think you can detect for in C++ with flags.

    What do you think?

  2. #2
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Re: [Request] Set properties from expression

    I'm not sure how this would do what Action Loops do if you give it only one fixed value...could you elaborate?
    Working as fast as I can on Fusion 3

  3. #3
    Clicker Multimedia Fusion 2

    Join Date
    Sep 2006
    Location
    Britain, South Coast
    Posts
    1,030
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [Request] Set properties from expression

    Well suppose I have a network of 400 Actives called 'Particle'. Each Particle is given two alterable values, 'FriendOne' and 'FriendTwo'. These contain the fixed values of two other Particles with which it becomes friends.

    Being able to set and get data from the Particle Objects by fixed value would enable me to position each Particle Object based on the positions of the particles referenced by the FriendOne and FriendTwo values. In one expression.

    Currently, this would have to be fastlooped, which incurs unnecessary header, footer, and condition code because each iteration runs an entirely new event.

    Being able to set values would also enable you to use many Actives as iterators for performing fast tasks on fewer objects.

    So if you made 20 'Iterator' Actives and just 1 'Ticker' Active with an alterable value called 'Ticks', you could do (in pseudocode):

    Code:
    Always
    -- Set an alterable value in Iterator:
          'SetAlt(               // Sets an alterable value
             "Imposer",          // The Imposer Object's working title
             Fixed("Ticker"),    // Fixed value of Ticker object
             0,                  // 0-based index for Alt A ('Ticks')
             Ticks("Ticker")+1   // Increment the ticker
             )'
    The above is a silly example, but would have 20 temporary actives for the pure purpose of kidding MMF into performing an increment 20 times in quick succession.

    If you boxed clever, you could have a string of this kind of instructions for few objects and have them iterated many times within the same event.

Similar Threads

  1. [Request] MMF2 Create Object From Expression
    By Bipolar_Games in forum Extension Development
    Replies: 95
    Last Post: 16th October 2011, 04:45 AM
  2. [Request / Idea] Expression Object
    By Dines in forum Extension Development
    Replies: 7
    Last Post: 29th October 2009, 11:43 PM
  3. Tutorial Request - Expression Editor
    By Merrie in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 24th November 2008, 02:23 PM
  4. Feature Request : "Seach for event/expression"
    By The_Alee in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 4th December 2007, 05:07 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
  •