I use great "Pie Menu Editor" addon and in the "command" section I would like to add command that adds a primitive object to the scene, but only to the active layer.

Default code that can be copied from the "Info" window allows to specify to which layers a new object can be assigned, but does not allow to specify the currently active one.

Thank you for Your advice


right click on the add cube icon and then click Pie Menu Editor.

enter image description here

then it will ask you in which menu you want to put it.

enter image description here

by default the the arguments for layers are all False enter image description here

so unless you specify one it will always create the cube in the activate layer enter image description here

| improve this answer | |
  • $\begingroup$ Thank you this was a good suggestion from Your side. $\endgroup$ – Zyzio Nov 13 '18 at 16:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.