davestewart
05-17-2008, 02:03 PM
Hi all,
I've got a bit of a strange one here.
I'm creating macroscripts, and running them, then you'd expect max to create them automatically in the usermacros directory.
It is doing this, but a file that should be 6K is coming out at 2K, with most of the middle of the script MISSING, from the end of my interface code, right down to the couple of lines of the mcr:
macroScript TransformPresets
category:"Animation Tools"
buttonText:"Add transform presets"
tooltip:"Transform presets"
(
-------------------------------------------------------------------------------------------------------------------------------
-- CA definition
-------------------------------------------------------------------------------------------------------------------------------
if transformPresetsCA == undefined do transformPresetsCA = attributes transformPresetsAtts
(
parameters main rollout:params
(
targetTransforms type:#matrix3tab tabSize:0 tabSizeVariable:true
objectTransforms type:#matrix3tab tabSize:0 tabSizeVariable:true
listboxNames type:#stringtab tabSize:0 tabSizeVariable:true
)
rollout params "Stored Transforms"
(
-------------------------------------------------------------------------------------------------------------------------------
-- variables
-------------------------------------------------------------------------------------------------------------------------------
local obj
-------------------------------------------------------------------------------------------------------------------------------
-- interface
-------------------------------------------------------------------------------------------------------------------------------
GroupBox grpNames "Named Transforms" pos:[4,8] width:152 height:196
listbox lbxNames "
-- THE WHOLE OF THE MIDDLE OF THE SCRIPT IS MISSING!
-------------------------------------------------------------------------------------------------------------------------------
-- apply CA
-------------------------------------------------------------------------------------------------------------------------------
custAttributes.add $ transformPresetsCA baseObject:true
)
Any ideas?
Thanks,
Dave
I've got a bit of a strange one here.
I'm creating macroscripts, and running them, then you'd expect max to create them automatically in the usermacros directory.
It is doing this, but a file that should be 6K is coming out at 2K, with most of the middle of the script MISSING, from the end of my interface code, right down to the couple of lines of the mcr:
macroScript TransformPresets
category:"Animation Tools"
buttonText:"Add transform presets"
tooltip:"Transform presets"
(
-------------------------------------------------------------------------------------------------------------------------------
-- CA definition
-------------------------------------------------------------------------------------------------------------------------------
if transformPresetsCA == undefined do transformPresetsCA = attributes transformPresetsAtts
(
parameters main rollout:params
(
targetTransforms type:#matrix3tab tabSize:0 tabSizeVariable:true
objectTransforms type:#matrix3tab tabSize:0 tabSizeVariable:true
listboxNames type:#stringtab tabSize:0 tabSizeVariable:true
)
rollout params "Stored Transforms"
(
-------------------------------------------------------------------------------------------------------------------------------
-- variables
-------------------------------------------------------------------------------------------------------------------------------
local obj
-------------------------------------------------------------------------------------------------------------------------------
-- interface
-------------------------------------------------------------------------------------------------------------------------------
GroupBox grpNames "Named Transforms" pos:[4,8] width:152 height:196
listbox lbxNames "
-- THE WHOLE OF THE MIDDLE OF THE SCRIPT IS MISSING!
-------------------------------------------------------------------------------------------------------------------------------
-- apply CA
-------------------------------------------------------------------------------------------------------------------------------
custAttributes.add $ transformPresetsCA baseObject:true
)
Any ideas?
Thanks,
Dave
