Tim Haering

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • 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 3 posts - 1 through 3 (of 3 total)