Jump to content

Empfohlene Beiträge

Geschrieben

Hier eine demo F3B894BE-083C-4BA5-AF2D-47D96E71973F
ein generisches script mit vielen function calls,  alle script komponenten sind allgemein 
und werden nur ueber die anfaenglich intialisierten tabellen gesteuert.
das sollte die frage eigentlich beantworten denke ich, oder habe ich da etwas uebersehen ? 

gruss

Gmd

 

Geschrieben

German replies are OK ... I just use translate to English and it works well.

Have a problem only when looking at a 3D Studio programs in German ... takes a lot of analysis ... sometimes I get the idea .... sometimes not.

@gmd ... Thanks for the reply, I will look at the program structure to try and determine your methods.

Many times I'm trying to do things in 3D Studio that are possible only in script.

Currently I'm trying to pass a complete "List" to a user defined event, but I'm only getting the first Item.

Now I'm trying in script, but I'm weak on the syntax. V9 has some nice added features.

Thanks ............

Geschrieben
vor einer Stunde schrieb hmclay:

and it works well.

If you master both languages, you will see that machine translations often make errors that distort the meaning. Example: The German "Anlage" can be a layout, a construction, an attachment or a plant. Quite different things as you can see.

Kind regards

Phrontistes

Geschrieben
vor 8 Stunden schrieb hmclay:

Currently I'm trying to pass a complete "List" to a user defined event, but I'm only getting the first Item.

If you're prepared to show us how you do it (and how you read that list inside the user defined event), we can point out why you get the wrong result.
It should work equally well with the graphical EV or with Lua.

Geschrieben

I don't know how to accomplish passing a "complete" list to another event.

I'm attaching an example that's most likely incomplete. I have multiple Source and Destinations for a crane. Would like to pass the appropriate list (based on whatever) from the Main Program to a common Crane Routine.

Any help will be appreciated. I have writers block on this ... have tried several methods ... none worked.

Thanks .... 

User Defined - Passing List.mbp

Geschrieben (bearbeitet)

To pass on the entire list, please use Variable instead:

Variable.jpg.15d16d7d82fc57ff9e3ce4604a916bcd.jpg

Variable (list/table) is for a single item from a list only, (as the field "Index" below the variable name suggests.)

A variable can hold (the address of) anything:

  • a boolean
  • a string
  • a number
  • an object
  • a list or table
  • a module or event
  • ...
Bearbeitet von Goetz
added remarks
Geschrieben (bearbeitet)

Thanks for the help and the complete description of the matter. 

It would have taken me quite awhile to stumble onto that solution, for I was looking at a variable to be a single item .

Most likely because when a list of options is displayed, it has variable , list and tables,  as separate identities.

Your explanation was very helpful ... the routine is now working very well .... Thank You

BTY ... I have been struggling with that, off and on,  for quite some time.

Bearbeitet von hmclay
BTW .....

Erstelle ein Benutzerkonto oder melde dich an, um zu kommentieren

Du musst ein Benutzerkonto besitzen, um einen Kommentar verfassen zu können

Benutzerkonto erstellen

Neues Benutzerkonto für unsere Community erstellen.

Neues Benutzerkonto erstellen

Anmelden

Du hast bereits ein Benutzerkonto? Melde dich hier an.

Jetzt anmelden
×
×
  • Neu erstellen...