Tim Haering

Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • in reply to: Where to place macro return parameters? #18070

    Tim Haering
    Participant

    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.


  • Tim Haering
    Participant

    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.

  • in reply to: Where to place macro return parameters? #18068

    Tim Haering
    Participant

    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.

  • in reply to: Addon library object macro missing #4828

    Tim Haering
    Participant

    Awesome! I did not now that the shortcut works in the code window as well. Thanks a lot Peter!

  • in reply to: How to correctly pass values to UI macros? #4460

    Tim Haering
    Participant

    Thanks for the help Peter! Your detailed explanation helped a lot.

  • in reply to: how to pass a whole array to a geometry functions? #4356

    Tim Haering
    Participant

    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!

Viewing 6 posts - 1 through 6 (of 6 total)