Skip to content

Commit

Permalink
some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
80prozent committed Oct 19, 2014
1 parent 49e71a7 commit f9845ff
Show file tree
Hide file tree
Showing 30 changed files with 163 additions and 150 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ The current installer provides support for this versions:

## How to install Away Extensions 3dsmax ?

* For each supported 3dsmax version, a sepperate Setup-file is provided. Just run this file, and follow the instructions.
* Open 3dsmax
* Drag and drop the installer (*.mzp) into the 3dsmax-view.
* A dialog should appear, providing further instructions.
* After installation is complete, you should restart 3dsmax.

In 3dsmax, you should see following
* the MaxAWDExporter-plugin should be listet in the plugin manager.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,12 @@ rollout rl_install "About AWDExtensions3dsmax" width:306 height:300
(

bitmap bmp1 "Bitmap" pos:[3,3] width:300 height:300 fileName:"AWDAbout.bmp"
label txt_stats "" pos:[63,260] width:180 height:16 textAlign:#right
label txt_stats versionCompleteLocal pos:[63,260] width:180 height:16 textAlign:#right

)


CreateDialog rl_install 306 300 modal:false
rl_install.txt_stats.text=versionCompleteLocal
CreateDialog rl_install 306 300 modal:true
)
macroScript OpenAWDHelpFile
category:"AWDCommands"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,20 @@ macroScript AddAWDCameraModifier

if selection.count==0 then (
selected=#()
selectedObj=#()
for i in objects do(
if superclassof i==camera then(
for m in i.modifiers do(
if classof m as string=="AWDCamera" then(
appendIfUnique selected m
appendIfUnique selectedObj i
appendIfUnique selected i
)
)
)
)
if selected.count==1 then(
max modify mode
modPanel.setCurrentObject selected[1]
)
else if selected.count>1 then(
if selected.count>0 then(
answer=queryBox ("Nothing is selected.\n\n "+selected.count as string+" AWDCamera modifiers found in the scene.\n\n Select the Objects that are holding the modifiers ?")
if answer==true then(
select selectedObj
)
select selected
)
)
else messageBox ("No Object is selected.\n\n No AWDCamera modifiers found in the scene.\n\n To create a AWDCamera modifier, select one camera.")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,31 +33,18 @@ if meshes.count>=1 then (
)
else(
selected=#()
selectedObj=#()
testCnter=0
for i in objects do(
for m in i.modifiers do(
if classof m as string=="AWDAnimationSet" then(
appendIfUnique selected m
appendIfUnique selectedObj i
appendIfUnique selected i

)
)
)
if selected.count==1 then(
max modify mode
modPanel.setCurrentObject selected[1]
)
else if selected.count>1 then(
answer=queryBox ("Nothing is selected.\n\n "+selected.count as string+" AWDAnimationSets modifiers found in the scene.\n\n Select the Objects that are holding the modifiers ?")
if answer==true then(
select selectedObj
)

)
else(
messagebox ("Nothing is selected.\n\n No AWDAnimationSets found in scene")
)

answer=queryBox ("Nothing is selected.\n\n Found "+testCnter as string+" AnimationClips in the scene.\n\n Select the "+selected.count as string + " Objects that are holding the AnimationClips ?")
if answer==true then(
select selected
)
)
)
Original file line number Diff line number Diff line change
Expand Up @@ -45,31 +45,32 @@ macroScript AddAWDAnimator
else(
meshes = $*
selected=#()
selectedObj=#()
firstmod=undefined
if meshes!= undefined then (
for i in meshes do(
for oneMod in i.modifiers do(
if (classOf oneMod as string)=="AWDAnimator" then (
appendIfUnique selected m
appendIfUnique selectedObj i
appendIfUnique selected i
)
)
)
)
if selected.count==1 then(
max modify mode
modPanel.setCurrentObject selected[1]
)
else if selected.count>1 then(
answer=queryBox ("Nothing is selected.\n\n "+selected.count as string+" AWDAnimators modifiers found in the scene.\n\n Select the Objects that are holding the modifiers ?")
if selected.count>1 then(
answer=queryBox ("Nothing is selected.\n\nScene contains "+selected.count as string+" objects that have AWDAnimator-modifier applied.\n\nSelect the Objects ?")
if answer==true then(
select selectedObj
)
)
select selected
)
)
else if selected.count==1 then(
answer=queryBox ("Nothing is selected.\n\n Scene contains "+selected.count as string+" object that has AWDAnimators-modifier applied.\n\nSelect the Object ?")
if answer==true then(
select selected
)
)
else (
messagebox ("Nothing is selected.\n\n Scene contains no objects that have AWDAnimators-modifier applied.\n\n")

)
)
)

)
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,17 @@ macroScript AddAWDEffectModifier

if selection.count==0 then (
selected=#()
selectedObj=#()
for i in objects do(
for m in i.modifiers do(
if classof m as string=="AWDEffectMethod" then(
appendIfUnique selected m
appendIfUnique selectedObj i
appendIfUnique selected i
)
)
)

if selected.count==1 then(
max modify mode
modPanel.setCurrentObject selected[1]
)
else if selected.count>1 then(
if selected.count>0 then(
answer=queryBox ("Nothing is selected.\n\n "+selected.count as string+" AWDEffectMethod modifiers found in the scene.\n\n Select the Objects that are holding the modifiers ?")
if answer==true then(
select selectedObj
select selected
)
)
else messageBox ("No Object is selected.\n\n No AWDEffectMethod modifiers found in the scene.\n\n To create a AWDEffectMethod modifier, select one object.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,20 @@ macroScript AddAWDLightModifier

if selection.count==0 then (
selected=#()
selectedObj=#()
for i in objects do(
if superclassof i==light then(
for m in i.modifiers do(
if classof m as string=="AWDShadowMethod" then(
appendIfUnique selected m
appendIfUnique selectedObj i
appendIfUnique selected i
)
)
)
)

if selected.count==1 then(
max modify mode
modPanel.setCurrentObject selected[1]
)
else if selected.count>1 then(
if selected.count>0 then(
answer=queryBox ("Nothing is selected.\n\n "+selected.count as string+" AWDShadowMethod modifiers found in the scene.\n\n Select the Objects that are holding the modifiers ?")
if answer==true then(
select selectedObj
)
select selected
)
)
else messageBox ("No Object is selected.\n\n No AWDShadowMethod modifiers found in the scene.\n\n To create a AWDShadowMethod modifier, select one light.")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ macroScript addAWDMaterialSettings
mtl=undefined
--if material mode is "Compact-Mode"
if MatEditor.mode ==#basic then (
mtl = medit.GetCurMtl()
mtl = meditMaterials[activeMeditSlot]
)
--if material mode is "Slate-Mode"
else if MatEditor.mode ==#advanced then (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,25 +34,19 @@ else if meshes.count>1 then messagebox("AWDSkeleton Modifier can only be attache
--if nothing is selected we check if nodes are in the scene
else(
selected=#()
selectedObj=#()
for i in objects do(
for m in i.modifiers do(
if classof m as string=="AWDSkeleton" or classof m as string=="AWDSkeletonClone" then(
appendIfUnique selected m
appendIfUnique selectedObj m
appendIfUnique selected i
)
)
)
if selected.count==1 then(
max modify mode
modPanel.setCurrentObject selected[1]
)
else if selected.count>1 then(
answer=queryBox ("Nothing is selected.\n\n "+selected.count as string+" AWD Skeleton modifiers found in the scene.\n\n Select the Objects that are holding the modifiers ?")
if selected.count>0 then(
answer=queryBox ("Nothing is selected.\n\n Found "+selected.count as string+" AWD Skeleton modifiers found in the scene.\n\n Select the Objects that are holding the modifiers ?")
if answer==true then(
select selectedObj
)
)
select selected
)
)
else(
answer=messageBox ("No Object is selected.\n\n No AWD Skeleton modifiers found in the scene.\n\n To create a AWD skeleton modifier, select the root-bone of your rigg.")
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ macroScript addAWDTextureSettings
thisTexMap=undefined
--if material mode is "Compact-Mode"
if MatEditor.mode ==#basic then (
thisTexMap = medit.GetCurMtl()
thisTexMap = meditMaterials[activeMeditSlot]
)
--if material mode is "Slate-Mode"
else if MatEditor.mode ==#advanced then (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,26 +37,20 @@ macroScript AddAWDVertexAnimSource
else(
meshes = $*
selected=#()
selectedObj=#()
if meshes!= undefined then (
for i in meshes do(
for m in i.modifiers do(
if classof m as string=="AWDVertexAnimSource" or classof m as string=="AWDVertexAnimSourceClone" then(
appendIfUnique selected m
appendIfUnique selectedObj i
)
appendIfUnique selected i
)
)
)
if selected.count==1 then(
max modify mode
modPanel.setCurrentObject selected[1]
)
else if selected.count>1 then(
answer=queryBox ("Nothing is selected.\n\n "+selected.count as string+" AWDVertexAnimSource modifiers found in the scene.\n\n Select the Objects that are holding the modifiers ?")
if selected.count>0 then(
answer=queryBox ("Nothing is selected.\n\n "+selected.count as string+" AWDVertexAnimSource-modifier found in the scene.\n\n Select the Objects that are holding the modifiers ?")
if answer==true then(
select selectedObj
select selected
)
)
)
else(
answer=messageBox ("No Object is selected.\n\n No AWDVertexAnimSource modifiers found in the scene.\n\n To create a AWD AWDVertexAnimSource modifier, select the animated mesh.")
)
Expand Down
Binary file not shown.
Binary file modified awayextensions3dsmax/AWDExporter/maxawdexporter_2011_32.dle
Binary file not shown.
Binary file modified awayextensions3dsmax/AWDExporter/maxawdexporter_2011_64.dle
Binary file not shown.
Binary file modified awayextensions3dsmax/AWDExporter/maxawdexporter_2012_32.dle
Binary file not shown.
Binary file modified awayextensions3dsmax/AWDExporter/maxawdexporter_2012_64.dle
Binary file not shown.
Binary file modified awayextensions3dsmax/AWDExporter/maxawdexporter_2013_32.dle
Binary file not shown.
Binary file modified awayextensions3dsmax/AWDExporter/maxawdexporter_2013_64.dle
Binary file not shown.
Binary file modified awayextensions3dsmax/AWDExporter/maxawdexporter_2014_64.dle
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<?xml version="1.0" ?>
<AWDMAXVERSION Major="0" Message="several fixes / refactor for references / add AWDObjectSettings as Modifier" Minor="9" Revision="89"/>
<AWDMAXVERSION Major="0" Message="some fixes" Minor="9" Revision="90"/>
Loading

0 comments on commit f9845ff

Please sign in to comment.