Forum Replies Created
Ok it worked when i called the macro from the GDL object 2D script not the master script and used the end statement in the macro 2D script. I think i still have troubles understanding the “scopes” of the single scripts and in which order the are executed.August 15, 2019 at 16:11 in reply to: How to pass all parameters with some exception to macro? #18069
Thanks for the answert. This is what i was refering to with “explicitly set them”. I was just hoping there would be a possibility not to write my other 72 parameters by hand because i want to omit a single other one.
Hey Peter thanks for the answer. The macro is called from the master script of my Library object. When i place the “end _reValue” statement not in the master script of the macro but for instance in the 2D Script nothing is returned for some reason. My macro 2D Script ends with and “end” statement followed by some subroutines. Replacing the pure end statement with “end _reValue” did not work.
Awesome! I did not now that the shortcut works in the code window as well. Thanks a lot Peter!
Thanks for the help Peter! Your detailed explanation helped a lot.November 29, 2018 at 08:25 in reply to: how to pass a whole array to a geometry functions? #4356
Ok i guess it was a pretty basic question that should have a description in the docs since it is very useful. In the end i found a solution using the put and get() methods. I dump the values to the buffer using put and then the tube command looks something like this using the get() method. Like this the user can basically extrude any shape with any amount of vertices he likes just by changinge the shape in the UI.
tube num_verts, 7, 16+32, get(num_verts*3), 0 +0.2, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 1, 2, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 + 0.2, 0, 0
Edit: Thanks Peter for pointing me to the documentation on this!