User Tag List

Results 1 to 7 of 7

Thread: select object using variable

  1. #1
    No Products Registered

    Join Date
    Aug 2010
    Posts
    343
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    select object using variable

    Is there a way to use an alterable variable to select an object?

    I have several objects - obj1 obj2 etc.

    Can I set the trigger condition something like:
    collision set ValA=2
    ValA=2 then move "obj"+ValA

    ValA=3 then obj3 etc.

    I hope this makes sense.

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

    Re: select object using variable

    You can put them all in a qualifier and give them all the an alterable value that is the Type of that object, no matter which instance it is. Then you can just compare the qualifier's alterable value to the object type you want.
    Working as fast as I can on Fusion 3

  3. #3
    No Products Registered

    Join Date
    Aug 2010
    Posts
    343
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: select object using variable

    Whoa LB - you sure do have creative solutions. I will have to play with this one for a bit to actually get clear what you mean

    Like...?

    obj1 obj2 ojj? - all set as group.friends

    val obj1 = valA=1
    val obj2 = valA=2
    etc.

    val(group.friends) = 2, then "stuff done to obj2" will happen.
    ______________
    I was specifically working with StringParser
    condition = ObjDirection(Val(listGetAt$( "Parse 2", NUM( "red" ))))
    So, I want to toggle "Parse 2"
    I have seen something like "Parse "+ValA+",
    and have tried any number of permutations along these lines. Doop.

    I wonder if the above will work for that?

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

    Re: select object using variable

    I'm not sure what you are getting at with string parser...could you elaborate?
    Working as fast as I can on Fusion 3

  5. #5
    No Products Registered

    Join Date
    Aug 2010
    Posts
    343
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: select object using variable

    Sorry if this is not clear.

    I have in fact resolved the Parser issue - now seeing that I can switch strings on the fly.

    BUT...
    the issue remains.
    How to insert a variable into an object reference in either a condition or action? I code in PHP and am used to using {$variable} or [$variable]. Can this be done in MMF?

    In the example above the object is the String Parser. I trying to use an incrementing value to switch to the next object. The principle could apply to any set of objects in numerical series - that needs to be selected specifically - not sequentially or randomly.

    I hope this makes more sense.?

    thanks

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

    Re: select object using variable

    It is not possible*. You must use the workaround I suggested.

    [size:8pt]*With Create By Name already out, perhaps Dynasoft could get Select Object Extension to select objects by name. [/size]
    Working as fast as I can on Fusion 3

  7. #7
    No Products Registered

    Join Date
    Aug 2010
    Posts
    343
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: select object using variable

    Thanks LB.
    I have another one - create object(val at...

    I will make some time to try your earlier suggestion. I am pretty slow with 'developmental' issues but... it is on the list. I am also slow exploring the full range of extensions but will have a peek at 'create by name.' thanks.

Similar Threads

  1. Select Object for iOS?
    By Sumo in forum iOS Export Module Version 2.0
    Replies: 0
    Last Post: 13th October 2012, 06:07 PM
  2. Global variable = alterable variable
    By Jibs in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 1st November 2011, 08:54 PM
  3. [Request]Select Object - Select in events?
    By LB in forum Extension Development
    Replies: 1
    Last Post: 15th July 2009, 10:55 PM
  4. TGF_MMF Notion Variable, “Système Variable”.
    By SpringUp in forum File Archive
    Replies: 2
    Last Post: 13th March 2009, 12:43 AM
  5. Select Object
    By Jeff in forum Released Extensions
    Replies: 1
    Last Post: 24th September 2006, 03:26 AM

Posting Permissions

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