2022-06-16 07:59 AM
Hello,
I have a door macro as a subroutine and a door handle as another subroutine. What I'm looking after is to perform a solid operation where the handle cuts the door, is it possible?
Hope I made myself clear 😅
Juan
2022-06-16 08:24 AM
Sure you need to look at the GROUP commands.
I haven't done it with macros but I think it should work the same.
Place the door macro call in one GROUP.
The handle macro call in another GROUP
Then SUBGROUP to subtract the handle from the door.
Then PLACEGROUP for the result.
Barry.
2022-06-16 08:32 AM
Thank you, just tried but is not working for me, I'm probably doing something wrong.
GROUP "door"
GOSUB 200
ENDGROUP
PLACEGROUP "door"
GROUP "kuppi"
ADDx -0.25
ADDy 0.05
ADDz 0.01
GOSUB 420
DEL 3
ENDGROUP
PLACEGROUP "kuppi"
Result_1 = SUBGROUP("door","kuppi")
PLACEGROUP Result_1
KILLGROUP "door"
KILLGROUP "kuppi"
Juan
2022-06-16 08:57 AM - edited 2022-06-16 08:58 AM
Sorry, when you said macro, I thought you were CALLing macros.
Subroutines are fine.
What you have should work, but comment out the PLACEGROUP lines for "door" & "kuppi".
You don't need to place those, just place the result.
You are actually placing them twice.
Barry.
2022-06-16 09:01 AM
Oh yes, I'm calling the macro in the subroutine, sorry for the mess up 😅
Of course there is a END statement before the subroutines
202:
CALL door01_macro PARAMETERS all
RETURN
420:
CALL kuppi_macro PARAMETERS ALL
RETURN
Juan