Re:Shelf or hotkey shortcut for Modify/Convert tear off panel


#1

Hi guys, I’m trying to make a shelf shortcut(or assign a hotkey) so I can open the modify/convert tear off panel quickly since i seem to use it quite a bit, but the script editor isnt helping out with echo all commands, so I’m wondering how to go about this.

Thanks for your time:D

MunCH


#2

maybe make a marking menu?


#3

Thanks iconoklast, I could try that i guess, usually I just drag the code from the script editor onto my shelf, not working in the case lol.

Cheers

MunCH


#4

OK, thanks to jozvex for this one, a little rough but it works, which is what counts:thumbsup:

window -title “Convert” -menuBar true -width 200;
menu -l “Convert” -aob true;
// NURBS to Polygons
menuItem -l “NURBS to Polygons”
-c “NURBSToPolygons”
-dmc “performnurbsToPoly 2”
-annotation “NURBS to Polygons: Select NURBS surface(s)”
-image “nurbsToPolygons.xpm”
nurbsToPolyItem;
menuItem -optionBox true
-annotation “NURBS to Polygons Option Box”
-l “NURBS to Polygons Option Box”
-image “nurbsToPolygons.xpm”
-c “NURBSToPolygonsOptions”
nurbsToPolyDialogItem;
setParent -menu …;

   // NURBS to Subdivs 
             menuItem -l "NURBS to Subdiv" -ecr true  
             -command "CreateSubdivSurface" 
             -annotation "NURBS to Subdiv: Select NURBS surface(s)" 
             -dragMenuCommand "performSubdivCreate 2" 
             subdivCreateItem; 
        menuItem -optionBox 1  
             -command "CreateSubdivSurfaceOptions" 
             -annotation "Subdiv Create Option Box"  
             -l "Subdiv Create Option Box" -ecr false  
             subdivCreateOptionItem; 

setParent -menu …;

   // Poly to Subdivs (same as NURBS to Subdiv) 
        menuItem -l "Polygons to Subdiv" -ecr true  
             -command "CreateSubdivSurface" 
             -annotation "Polygons to Subdiv: Select polygon surface(s)" 
             -image subdivCreate.xpm 
             -dragMenuCommand "performSubdivCreate 2" 
             subdivCreateItem2; 
        menuItem -optionBox 1  
             -command "CreateSubdivSurfaceOptions" 
             -annotation "Subdiv Create Option Box"  
             -image subdivCreate.xpm 
             -l "Subdiv Create Option Box" -ecr false  
             subdivCreateOptionItem2; 

setParent -menu …;

   // Subdivs to Poly 
        menuItem -l "Subdiv To Polygons" -ecr true  
             -ann "Subdiv To Polygons: Select subdivision surface(s)" 
             -image subdivTessellate.xpm 
             -c "TesselateSubdivSurface"       
             subdivTessellateItem; 
        menuItem -optionBox 1  
             // need to add -i option 
             -annotation "Subdiv To Polygons Option Box"  
             -image subdivTessellate.xpm 
             -l "Subdiv Tessellate Option Box" -ecr false  
             -c "TesselateSubdivSurfaceOptions"  
             subdivTessellateOptionItem; 

setParent -menu …;

   // Subdivs to NURBS 
        menuItem -l "Subdiv to NURBS" -ecr true  
             -command "SubdivToNURBS" 
             -annotation "Create NURBS Surfaces" 
             -image subdivToNurbs.xpm 
             -dragMenuCommand "performSubdToNurbs 2" 
             subdivCreateItem3; 
        menuItem -optionBox 1  
             // need to add -i option 
             -annotation "Subdiv To NURBS Option Box"  
             -image subdivToNurbs.xpm 
             -l "Subdiv To NURBS Option Box" -ecr false  
             -c "SubdivToNURBSOptions"  
             subdivToNurbsOptionItem; 

setParent -menu …;

   // Paint Effects to Poly 
        menuItem -l "Paint Effects To Polygons" -ecr true  
             -ann "Paint Effects To Polygons: Select paint effects stroke(s)" 
             -image paintEffectsToPoly.xpm 
             -c "PaintEffectsToPoly"       
             paintEffectsToPolyItem; 
        menuItem -optionBox 1  
             -annotation "Paint Effects To Polygons Option Box"  
             -image paintEffectsToPoly.xpm 
             -l "Paint Effects To Poly Option Box" -ecr false  
             -c "PaintEffectsToPolyOptions"  
             paintEffectsToPolyOptionItem; 

setParent -menu …;

   // Displacement to Poly 
  menuItem -l "Displacement to Polygons" 
      -annotation "Displacement to Polygons: Select displacement mapped object(s)" 
      -c "DisplacementToPolygon" 
      dispPolyItem; 

             menuItem -l "Fluid To Polygons" 
                  -annotation "Fluid To Polygons: Select fluid to convert" 
                  -image "fluidtoPoly.xpm"  
                  -c "performFluids 1 FluidToPoly 0" 
                  fluidToPolygonsItem; 

setParent -m …;
showWindow;

#################

drag that lot onto your shelf and away you go.

Cheers

MunCH


#5

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.