Jump to content

Recommended Posts

Posted

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

 

Posted

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 ............

Posted
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

Posted
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.

Posted

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

Posted (edited)

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
  • ...
Edited by Goetz
added remarks
Posted (edited)

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.

Edited by hmclay
BTW .....

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...