i have a multiparm block with two ordered menus inside that get populated from their menu scripts. Menu A, Menu B
So these becomes
Menu A1
Menu B1
Menu A2
Menu B2
...etc
Menu B# needs to reference the other and i cant figure out how to get the current instance the script should be reading from.
in the attached images - 'variation' menu script needs to reference 'plant'
Python - get multiparm index from menu script
1940 2 1-
- papsphilip
- Member
- 387 posts
- Joined: 7月 2018
- オフライン
-
- papsphilip
- Member
- 387 posts
- Joined: 7月 2018
- オフライン
-
- chibitotoro
- Member
- 8 posts
- Joined: 3月 2016
- オフライン
The solution is to get the kwargs("script_multiparm_index") which starts at 1. There is also kwargs("script_multiparm_nesting") that may be useful that also starts at 1. (note: replace the round parentheses with square brackets because the markdown text editor here is not letting me post with square brackets thinking it's shortcode)
Edited by chibitotoro - 2025年6月29日 20:32:54
-
- Quick Links