Community
Hello,
I am unable to generate a Project Mapping in Projection modifier from a MaxScript file.
When I try it in MaxScript listener directly, it works. But when I run it from a MaxScript file it doesn't.
addModifier $myObj (Projection()) $myObj.modifiers[1].addObjectNode $target $myObj.modifiers[1].addRegisteredProjectionType 1 $myObj.modifiers[1].projectAll()
The projection modifier is well created, and the target object is added as Reference Geometry too.
I also tried to make a completeRedraw(), but it doesn't seem to help.
Thank for your help.
Solved! Go to Solution.
I finally found a solution, since completeRedraw doesn't affect the CommandPanel, we need to be sure to set it in modify mode and select the object with Projection modifier to work.
select $myObj if getCommandPanelTaskMode() != #modify do setCommandPanelTaskMode #modify
you can also use:
max modify mode
Can't find what you're looking for? Ask the community or share your knowledge.